1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "steps": [
10 {
11 "action": "type",
12 "selector": "#email",
13 "value": "...",
14 },
15 {
16 "action": "type",
17 "selector": "#password",
18 "value": "...",
19 },
20 {
21 "action": "click",
22 "selector": "#submit",
23 },
24 ],
25 "cookieDomains": [],
26 "gotoTimeout": 30,
27 "proxyConfiguration": { "useApifyProxy": True },
28 "storageName": "SESSION_DATA",
29}
30
31
32run = client.actor("pragmaticcoders/session-login-extractor").call(run_input=run_input)
33
34
35print("๐พ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
36for item in client.dataset(run["defaultDatasetId"]).iterate_items():
37 print(item)
38
39