1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": [
10 "https://example.com",
11 "https://quotes.toscrape.com",
12 ],
13 "jsonStructure": {
14 "title": "title",
15 "quotes": "div.quote span.text",
16 },
17 "tables": { "products": "#products-table" },
18 "headers": {},
19 "cache": {
20 "enabled": False,
21 "ttl": 3600,
22 },
23 "unblocker": {
24 "provider": "",
25 "apiKey": "",
26 "zone": "",
27 },
28 "promoCode": "",
29}
30
31
32run = client.actor("enheartening_loam/stealth-scraper-md").call(run_input=run_input)
33
34
35print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
36for item in client.dataset(run.default_dataset_id).iterate_items():
37 print(item)
38
39