This project generates a PDF report for a specified county using GeoJSON data and infographics. The report includes a map highlighting the county and a bar chart with sample data.
geopandas
matplotlib
jinja2
pandas
pdfkit
flask
wkhtmltopdf
git clone https://github.com/yourusername/report-generator.git
cd report-generator
Create a virtual environment and activate it:
python -m venv venv
source venv/bin/activate
Install the required packages:
pip install -r requirements.txt
wkhtmltopdf
:
sudo apt-get install wkhtmltopdf
brew install wkhtmltopdf
wkhtmltopdf --version
.Run the script:
python python main.py build
• python main.py build -t extremeheat
• python main.py build -t airpollution
• python main.py build
(or -t all
) to generate both.
Make sure geckodriver is up to date and in your PATH. You can download it from here.