-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.py
More file actions
25 lines (19 loc) · 707 Bytes
/
Copy pathrun.py
File metadata and controls
25 lines (19 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""
dexscreener-scraper — Python example.
pip install apify-client
export APIFY_TOKEN=... # https://console.apify.com/account/integrations
python run.py
Docs: https://apify.com/bovi/dexscreener-scraper
"""
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run_input = { 'mode': 'search',
'queries': ['PEPE', 'bitcoin'],
'pairAddresses': ['ethereum/0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852'],
'maxItems': 100,
'minLiquidityUsd': 0,
'minVolumeUsd24h': 0}
run = client.actor("bovi/dexscreener-scraper").call(run_input=run_input)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)