-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.js
More file actions
30 lines (27 loc) · 813 Bytes
/
Copy pathrun.js
File metadata and controls
30 lines (27 loc) · 813 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
26
27
28
29
30
/**
* dexscreener-scraper — JavaScript example.
*
* npm install apify-client
* export APIFY_TOKEN=... # https://console.apify.com/account/integrations
* node run.js
*
* Docs: https://apify.com/bovi/dexscreener-scraper
*/
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const input = {
"mode": "search",
"queries": [
"PEPE",
"bitcoin"
],
"pairAddresses": [
"ethereum/0x0d4a11d5EEaaC28EC3F61d100daF4d40471f1852"
],
"maxItems": 100,
"minLiquidityUsd": 0,
"minVolumeUsd24h": 0
};
const run = await client.actor('bovi/dexscreener-scraper').call(input);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item);