1from apify_client import ApifyClient
2
3
4
5client = ApifyClient("<YOUR_API_TOKEN>")
6
7
8run_input = {
9 "jobs": [{
10 "jobUrl": "https://www.upwork.com/nx/proposals/job/~xxxxxxxxxxxxxxxxxxxx/apply/",
11 "coverLetter": """Hi there,
12
13I am excited to apply for this position. I have extensive experience in...
14
15Best regards,
16[Your Name]""",
17 }],
18 "applicationPreferences": {
19 "profileMapping": [{
20 "tokenKeywords": [
21 "full stack",
22 "backend",
23 "frontend",
24 ],
25 "profileIndex": 1,
26 }],
27 "defaultProfileIndex": 0,
28 "fixedPricePreferences": {
29 "projectDuration": "1 to 3 months",
30 "raiseFrequency": "Never",
31 "raiseAmount": "10%",
32 },
33 "skipBiddingOnly": True,
34 "genericScreeningResponse": "I would be happy to discuss this in detail. Let us jump on a call to go over your specific requirements.",
35 },
36 "browserPersistence": {
37 "enabled": True,
38 "sessionTimeout": 24,
39 "autoSave": True,
40 "fallbackToManual": True,
41 "closeAfterRun": False,
42 },
43}
44
45
46run = client.actor("philberhane/upwork-auto-applier").call(run_input=run_input)
47
48
49print("πΎ Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
50for item in client.dataset(run["defaultDatasetId"]).iterate_items():
51 print(item)
52
53