Skip to content

Repository files navigation

White House Executive Order Scraper

By Nasser Eledroos

A Python script to scrape and archive Executive Orders from whitehouse.gov/presidential-actions.

Features

  • 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

Installation

  1. Install Python (3.6 or newer required)
  2. Install dependencies:
    pip install requests beautifulsoup4 newspaper4k colorama python-dateutil

Usage

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

License

MIT License. Free to use and modify. Include license notice if redistributed.
See LICENSE for details.

About

A simple web scraper that checks WhiteHouse.gov to see if a new Executive Order has been posted, and if so, add it to a CSV file.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages