1import { ApifyClient } from 'apify-client';
2
3
4
5const client = new ApifyClient({
6 token: '<YOUR_API_TOKEN>',
7});
8
9
10const input = {
11 "mode": "search",
12 "mediaType": "ANIME",
13 "searchTerms": [
14 "frieren"
15 ],
16 "chartKind": "TRENDING",
17 "urls": [
18 "https://anilist.co/anime/154587"
19 ],
20 "maxMedia": 25,
21 "maxPages": 0,
22 "includeAdult": false,
23 "incrementalMode": false,
24 "emitUnchanged": false,
25 "emitExpired": false,
26 "maxNotifyListings": 50,
27 "proxyConfiguration": {
28 "useApifyProxy": true
29 }
30};
31
32
33const run = await client.actor("abotapi/anilist-anime-manga-scraper").call(input);
34
35
36console.log('Results from dataset');
37console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
38const { items } = await client.dataset(run.defaultDatasetId).listItems();
39items.forEach((item) => {
40 console.dir(item);
41});
42
43