Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

I built a free open source tool to track Nancy Pelosi's official stock trade reports

Description and use

A lightweight Python script automatically downloads, parses, and filters Nancy Pelosi’s stock trade reports, outputting a current list of PDF links without external dependencies.

Problem

The public stock trade reports for Nancy Pelosi are scattered across yearly ZIP files and PDFs, making them hard to search.

Outcome

The script provides a current, searchable list of Pelosi’s PTR filings without requiring API keys or external dependencies.

Workflow

  • Download https://disclosures-clerk.house.gov/public_disc/financial-pdfs/{year}FD.zip
  • Parse the XML and keep rows where FilingType == "P" and the name matches
  • Build the link to the original PDF: .../ptr-pdfs/{year}/{doc_id}.pdf
  • Output results in markdown or JSON
  • GitHub Actions runs the script every Monday and commits updated FILINGS.md

Evidence

The data is public, but it is spread over yearly index files and PDFs that are hard to search.

Source

Under the STOCK Act (2012), members of Congress must report stock trades above $1,000 within 45 days.

Source

The Clerk offers one ZIP file per year with an XML index of every filing.

Source

No API key, no dependencies, Python 3.8 or newer. Standard library only (urllib, zipfile, xml.etree).

Source

A GitHub Actions workflow runs the script every Monday and commits the fresh FILINGS.md, so the list in the repo stays current without anyone touching it.

Source

  • Record date: 2026-11-02T15:28:47.534Z