Scrape the US Congressional trading data: get transactions from both the House and the Senate.
The most efficient, reliable, and developer-friendly Google Jobs search scraper
- Python 3.7 or higher
- An Apify account and API key
-
Clone the repository
git clone https://github.com/johnisanerd/Apify-Congressional-Trading-Data-Scraper.git cd Apify-Congressional-Trading-Data-Scraper
-
Create a virtual environment (recommended)
# Using venv (Python 3.3+) python -m venv venv # Activate the virtual environment # On macOS/Linux: source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
# Install from requirements.txt pip install -r requirements.txt
-
Configure your API key
# Copy the example environment file cp .env.example .env # Edit .env and add your Apify API key # Get your API key from: https://apify.com?fpr=9n7kx3
-
Run the example
python congress-stock-trades-scraper.py
If you prefer not to use a .env
file, you can set the environment variable directly:
export APIFY_API_TOKEN="your_api_key_here"
python congress-stock-trades-scraper.py
You can see more documentation on how to use the Congressional stock tradesscraper here.
Transform your search automation with the most reliable and efficient Congressional stock trades scraper on the market. Last Updated: 2025.10.18