1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "startUrls": [
12 {
13 "url": "https://onlyfans.com/oftv"
14 }
15 ],
16 "dev_custom_headers": [
17 {
18 "key": "user-agent",
19 "value": ""
20 },
21 {
22 "key": "x-bc",
23 "value": ""
24 }
25 ],
26 "dev_custom_cookies": [
27 {
28 "key": "sess",
29 "value": ""
30 }
31 ],
32 "proxyConfiguration": {
33 "useApifyProxy": false
34 }
35};
36
37
38const run = await client.actor("pintxuki/onlyfans-scrapper").call(input);
39
40
41console.log('Results from dataset');
42console.log(`๐พ Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
43const { items } = await client.dataset(run.defaultDatasetId).listItems();
44items.forEach((item) => {
45 console.dir(item);
46});
47
48