1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [
10 "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf",
11 "https://people.sc.fsu.edu/~jburkardt/data/csv/addresses.csv",
12 "https://www.w3.org/Icons/w3c_main.png",
13 "https://jsonplaceholder.typicode.com/todos/1",
14 ],
15 "blockedExtensions": [
16 "exe",
17 "msi",
18 "bat",
19 "cmd",
20 "com",
21 "scr",
22 "ps1",
23 "sh",
24 "dll",
25 "jar",
26 "vbs",
27 "hta",
28 "js",
29 "mjs",
30 "html",
31 "htm",
32 "xhtml",
33 "shtml",
34 "apk",
35 "dmg",
36 "pkg",
37 "deb",
38 "rpm",
39 ],
40 "zip": True,
41}
42
43
44run = client.actor("data-done-right/bulk-file-downloader").call(run_input=run_input)
45
46
47print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
48for item in client.dataset(run.default_dataset_id).iterate_items():
49 print(item)
50
51