A Python script to scrape and archive Executive Orders from whitehouse.gov/presidential-actions.
- Automatically detects new Executive Orders
- Saves data to CSV with timestamps
- Color-coded command line output
- Error handling with retries
- Tracks progress and final statistics
- Install Python (3.6 or newer required)
- Install dependencies:
pip install requests beautifulsoup4 newspaper4k colorama python-dateutil
python eo-scraper.py- First run: Creates
executive_orders.csv - Subsequent runs: Only adds new Executive Orders
- Output includes:
- EO titles and dates
- Full text (preserves formatting)
- Verification status (TRUE/FALSE)
- Scraped timestamps
MIT License. Free to use and modify. Include license notice if redistributed.
See LICENSE for details.