Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def my_job_tool(arg1: str)-> dict: #it's import to specify the return type
|
|
19 |
url = "https://fresh-linkedin-profile-data.p.rapidapi.com/search-jobs"
|
20 |
|
21 |
payload = {
|
22 |
-
"keywords":arg1,
|
23 |
"geo_code": 105015875,
|
24 |
"date_posted": "Any time",
|
25 |
"experience_levels": [],
|
@@ -42,7 +42,7 @@ def my_job_tool(arg1: str)-> dict: #it's import to specify the return type
|
|
42 |
}
|
43 |
|
44 |
response = requests.post(url, json=payload, headers=headers)
|
45 |
-
return response.
|
46 |
|
47 |
except Exception as e:
|
48 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
|
|
19 |
url = "https://fresh-linkedin-profile-data.p.rapidapi.com/search-jobs"
|
20 |
|
21 |
payload = {
|
22 |
+
"keywords": arg1,
|
23 |
"geo_code": 105015875,
|
24 |
"date_posted": "Any time",
|
25 |
"experience_levels": [],
|
|
|
42 |
}
|
43 |
|
44 |
response = requests.post(url, json=payload, headers=headers)
|
45 |
+
return response.json()
|
46 |
|
47 |
except Exception as e:
|
48 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|