Skip to main content

CapitolScraper

A web scraper for capitoltrades, a website dedicated to tracking Congress stock trades.

Quickstart

Install from PyPi using pip install capitolscraper

from capitolscraper import Trades

scraper = Trades()
print(scraper.trades)

Configuring requests

capitoltrades rate limits aggressive clients, so requests are throttled by default. Pass a RequestConfig to tune headers, timeouts, retries, concurrency, and delays:

from capitolscraper import RequestConfig, Trades

config = RequestConfig(max_concurrency=2, delay=1.0, timeout=20)
scraper = Trades(page_count=5, config=config)

Testing

uv run poe test runs the offline test suite. Tests that hit capitoltrades.com are marked live and only run with uv run poe test-live. To run every test, use uv run poe test-all.

Authors

Metadata

Release files for capitolscraper 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for capitolscraper 0.1.1
File Size Uploaded Provenance
capitolscraper-0.1.1.tar.gz 61.9 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for capitolscraper 0.1.1
File Interpreter ABI Platform
capitolscraper-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 70.4 kB

Release files / capitolscraper-0.1.1.tar.gz

Download URL capitolscraper-0.1.1.tar.gz
Size 61.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d5968446a006862e655417ec2f3636cf1c7b8a11ca1d3c79611e3f4a75254dad
BLAKE2b-256 checksum
How to use checksums
865d0c247946c77926483db672fb6a0de7d195f6eb8b93f4b6b5242b7c49f657
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Release files / capitolscraper-0.1.1-py3-none-any.whl

Download URL capitolscraper-0.1.1-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9423dab578d592e7e9c557cc836c803a4686fdae8980e34164cbb4f8e1357fe5
BLAKE2b-256 checksum
How to use checksums
ccd1791d28c0a40d6008e58f607b0d763f8c8729716c23dec2a144eae101b350
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

Security for capitolscraper 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for capitolscraper-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page