A Python tool for extracting and processing Politico Playbook newsletters.
politico_playbook/
├── src/ # Source code
├── data/ # Extracted newsletter data
├── logs/ # Log files
└── tests/ # Test files
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies:
pip install -r requirements.txt- Create a
.envfile with your configuration (see.env.example)
Run the main script:
python src/main.py- Automated newsletter collection
- Data extraction and processing
- Error logging
- Test coverage
- Format code:
black src/ - Lint code:
flake8 src/ - Run tests:
pytest tests/