1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "urls": ["https://apify.com/louisdeconinck/ai-gpt-scraper"],
10 "fields": [
11 {
12 "name": "name",
13 "description": "The name/title of the scraper tool",
14 "type": "string",
15 },
16 {
17 "name": "price",
18 "description": "The price per 1000 results, only the number",
19 "type": "number",
20 },
21 {
22 "name": "author",
23 "description": "The author or maintainer of the scraper",
24 "type": "string",
25 },
26 ],
27 "cssSelector": "main",
28 "predefinedModel": "google/gemini-2.0-flash-001",
29 "useCustomModel": False,
30 "proxyConfiguration": { "useApifyProxy": True },
31}
32
33
34run = client.actor("louisdeconinck/ai-gpt-scraper").call(run_input=run_input)
35
36
37print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
38for item in client.dataset(run["defaultDatasetId"]).iterate_items():
39 print(item)
40
41