> For the complete documentation index, see [llms.txt](https://870167019.gitbook.io/blockchainspider/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://870167019.gitbook.io/blockchainspider/extractors/local-community.md).

# Local community

Local community detection to construct a small-scale local community from the graph crawled by the *transaction subgraph spiders*. For a particular source address, the importance rank of the addresses within the local community is significantly higher than the external addresses, making it easy for further auditing or visualization.

> **Note**: the local community extractor is only used for **APPR** or **TTR** transactionn subgraphs.

You can run on this command in the console for extracting local communities:

```bash
python extract.py localcomm\
-i /path/of/raw/data \
-o /path/of/output/data
```

Parameter Description:

* `-i`: the input directory of raw data.
* `-o`: the output directory of local communities.
