Skip to main content

👻 Dexscraper

Real-time DexScreener market data in one CLI/SDK.

CI PyPI Release License Python

Install Dexscraper

Install with `pip` or `uv`
# pip install
pip install dexscraper

# or uv install
uv pip install dexscraper
Alternative: Development install
# download and install from main branch
git clone https://github.com/vincentkoc/dexscraper.git
cd dexscraper
pip install -e .[dev]
Optional: Cloudflare bypass enhancements (cloudscraper v3)
# Recommended when using --cloudflare-bypass in interactive or --once modes
pip install "cloudscraper @ git+https://github.com/VeNoMouS/cloudscraper.git@3.0.0"
  • dexscraper auto-detects cloudscraper major version at runtime.
  • If <3 is detected, bypass still works in compatibility mode and the CLI prints a one-time warning in non-streaming flows with the install command above.

Why Dexscraper?

DexScreener data is useful, but scraping it consistently is painful: protocol changes, Cloudflare behavior, reconnect logic, and export formatting. Dexscraper gives you one stable interface for real-time extraction, filtering, and export, both from CLI and Python code.

What You Get

  • Real-time streaming of webSocket extraction
  • Multi-chain and multi-DEX filtering
  • Trending/top/gainers/new presets
  • Structured token profiles and OHLC/OHLCVT output for tools like Metatrader
  • Optional Cloudflare bypass flow (with runtime v3 feature detection)
  • Typed Python SDK + CLI

Commands

dexscraper                                                                    # streaming json
dexscraper interactive                                                        # gui mode
dexscraper trending --chain solana --limit 10 --once                          # trending
dexscraper top --chain ethereum --min-liquidity 50000 --once                  # top
dexscraper trending --chain solana --format json --output pairs.json --once   # trending to file
dexscraper --mode trending --chain solana --format rich                       # gui mode

Python SDK

import asyncio
from dexscraper import DexScraper, ScrapingConfig, Filters, Chain, RankBy, Timeframe

config = ScrapingConfig(
    timeframe=Timeframe.H1,
    rank_by=RankBy.VOLUME,
    filters=Filters(chain_ids=[Chain.SOLANA], liquidity_min=50_000),
)

async def main():
    scraper = DexScraper(config=config, use_cloudflare_bypass=True)
    batch = await scraper.extract_token_data()
    for token in batch.get_top_tokens(10):
        if token.price is not None:
            print(token.get_display_name(), token.price)

asyncio.run(main())

Contributing

Contributions are welcome. See CONTRIBUTING.md.

Open an issue for bugs, start a discussion for questions, and star the repo if it helps.


Made with 💙 by Vincent Koc · GPL-3.0

Metadata

Release files for dexscraper 1.1.0

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

Source distribution (sdist)

Source distribution for dexscraper 1.1.0
File Size Uploaded
dexscraper-1.1.0.tar.gz 94.6 kB Details

Built distribution (wheel)

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

Total release size: 158.1 kB

Release files / dexscraper-1.1.0.tar.gz

Download URL dexscraper-1.1.0.tar.gz
Size 94.6 kB
Tags Source
SHA-256 checksum
How to use checksums
14d2a277c84a7ea3cd81dafc85f6f53ce1e4a43df395218f9e437e6559602ca5
BLAKE2b-256 checksum
How to use checksums
86418558f720aa9ce6c1f18ebe2483f007ccb36666d78e71482161f8b88ed844
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 9, 2026.

Transparency log

Release files / dexscraper-1.1.0-py3-none-any.whl

Download URL dexscraper-1.1.0-py3-none-any.whl
Size 63.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
715ab5df6f22855b650ce408ae50beb4cfd17e5ef6963bf297521df8ca6d192d
BLAKE2b-256 checksum
How to use checksums
bb06fb1e209667b0db0df474a052404f06bb116de2b565d3928f547bec281735
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Feb 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.2

2 release files

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