Collection of Python utility scripts for working with BTC Map API data.
- 2025-11-06: Added
fetch-communities.pyscript to fetch community data from BTC Map API and generate markdown files
Fetches community data from the BTC Map API for a given range of area IDs and generates a Markdown file with formatted links.
Usage:
cd utility-scripts
python3 fetch-communities.py <start_id> <end_id> [output_file]Example:
python3 fetch-communities.py 900 950 communities.mdOutput format:
- Generates a Markdown file with bulleted list
- Each entry:
- [Community Name](https://btcmap.org/community/url-alias) - Automatically filters out IDs that don't have valid community data
Features:
- Handles HTTP errors gracefully
- Respects API rate limits with small delays between requests
- Shows progress during fetching
- Provides summary of results
See requirements.txt for Python package dependencies.