Real-time DexScreener WebSocket scraper for cryptocurrency data
Project description
👻 Dexscraper
Real-time DexScreener market data in one CLI/SDK.
[!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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7786b84b0f7cc4ce3837276f103e23347b31c0584e3921169473913d8507c6d7
|
|
| MD5 |
b018b1f6b4b6dfdda3a0a64d262bfed8
|
|
| BLAKE2b-256 |
4c8919d6686978d153fe6ac674907a02b9f504cd0ae8b96e742e056d5461b7e9
|
Provenance
The following attestation bundles were made for dexscraper-1.0.2.tar.gz:
Publisher:
release.yml on vincentkoc/dexscraper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dexscraper-1.0.2.tar.gz -
Subject digest:
7786b84b0f7cc4ce3837276f103e23347b31c0584e3921169473913d8507c6d7 - Sigstore transparency entry: 934163661
- Sigstore integration time:
-
Permalink:
vincentkoc/dexscraper@02286748ba194530015c9bfd4938205db1ef07a4 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/vincentkoc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@02286748ba194530015c9bfd4938205db1ef07a4 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8fc3459f32572ba2faaae809ff0e34220a4ab8dc6c99f7aa01e3c98b8a66371
|
|
| MD5 |
e2f7eb55873d0047546431ef3d82ad15
|
|
| BLAKE2b-256 |
f416e0cf99e9bde7f2524bfba94c2625ad5c09bbc6dcb4f73d60b9307013079d
|
Provenance
The following attestation bundles were made for dexscraper-1.0.2-py3-none-any.whl:
Publisher:
release.yml on vincentkoc/dexscraper
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dexscraper-1.0.2-py3-none-any.whl -
Subject digest:
f8fc3459f32572ba2faaae809ff0e34220a4ab8dc6c99f7aa01e3c98b8a66371 - Sigstore transparency entry: 934163715
- Sigstore integration time:
-
Permalink:
vincentkoc/dexscraper@02286748ba194530015c9bfd4938205db1ef07a4 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/vincentkoc
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@02286748ba194530015c9bfd4938205db1ef07a4 -
Trigger Event:
push
-
Statement type: