https://citycouncil.atlantaga.gov/ is the authoritative source for Atlanta City Council information.
This repository scrapes council member info into JSON for consumption by apps and APIs.
Scraping is done at 11am daily via Github Actions using the script in .github/workflows/run-scraper.yml. Neat technique.1
Get the most recent scraped data here. View update history.
For self-hosting you have two options:
docker run abriedev/atl-council-scraper scrape
Save output to a .json file in your root folder
docker run abriedev/atl-council-scraper scrape > name-of-output-file.json
If you get "Cannot connect to the Docker daemon", install the Docker Toolbox, which includes the Docker Machine. https://github.com/docker/machine/releases
Requires Python 3.8
Create a virtual environment (OSX / Linux / Windows):
python3 -m venv venv
OSX / Linux:
source venv/bin/activate
Windows:
\venv\Scripts\activate.bat
Running make dependencies
will install BeautifulSoup4
make dependencies
make test
python3 -m app scrape > scraped/atl-citycouncil.json