1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "siteUrl": "https://danluu.com",
10 "gscCsvText": """Query,Page,Clicks,Impressions,CTR,Position
11how to hire a programmer,https://danluu.com/hiring-lemons/,0,5200,0%,41.3
12programmer interview questions,https://danluu.com/algorithms-interviews/,3,3100,0.1%,27.8
13why are software projects late,https://danluu.com/slow-projects/,2,1400,0.14%,18.2
14dan luu,https://danluu.com/,950,1200,79.2%,1.1""",
15}
16
17
18run = client.actor("apizilla/seo-ranking").call(run_input=run_input)
19
20
21print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
22for item in client.dataset(run.default_dataset_id).iterate_items():
23 print(item)
24
25