Skip to main content

Real-time DexScreener WebSocket scraper for cryptocurrency data

Project description

👻 Dexscraper

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

CI PyPI Release License Python

[!IMPORTANT] This project is independent and not affiliated with DexScreener.
Use at your own risk for research purposes only and comply with DexScreener terms.

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]

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
  • 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dexscraper-1.0.2.tar.gz (92.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dexscraper-1.0.2-py3-none-any.whl (62.4 kB view details)

Uploaded Python 3

File details

Details for the file dexscraper-1.0.2.tar.gz.

File metadata

  • Download URL: dexscraper-1.0.2.tar.gz
  • Upload date:
  • Size: 92.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dexscraper-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7786b84b0f7cc4ce3837276f103e23347b31c0584e3921169473913d8507c6d7
MD5 b018b1f6b4b6dfdda3a0a64d262bfed8
BLAKE2b-256 4c8919d6686978d153fe6ac674907a02b9f504cd0ae8b96e742e056d5461b7e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for dexscraper-1.0.2.tar.gz:

Publisher: release.yml on vincentkoc/dexscraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dexscraper-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: dexscraper-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 62.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dexscraper-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f8fc3459f32572ba2faaae809ff0e34220a4ab8dc6c99f7aa01e3c98b8a66371
MD5 e2f7eb55873d0047546431ef3d82ad15
BLAKE2b-256 f416e0cf99e9bde7f2524bfba94c2625ad5c09bbc6dcb4f73d60b9307013079d

See more details on using hashes here.

Provenance

The following attestation bundles were made for dexscraper-1.0.2-py3-none-any.whl:

Publisher: release.yml on vincentkoc/dexscraper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page