Spaces:
Sleeping
Sleeping
| import requests | |
| url = "https://jobsearch.api.jobtechdev.se/search" | |
| response = requests.get(url) | |
| if response.status_code == 200: | |
| data = response.json() | |
| print(data) | |
| else: | |
| print(f"Failed to retrieve data: {response.status_code}") | |
| { | |
| "hits": [ | |
| { | |
| "id": "1", | |
| "headline": "Data Scientist", | |
| "description": {"text": "We are looking for a data scientist to join our team.", | |
| "text-formatted": "text_formatted"}, | |
| "location": "Stockholm", | |
| "company": "Company A" | |
| }, | |
| { | |
| "id": "2", | |
| "headline": "Software Engineer", | |
| "description": {"text": "We are looking for a data scientist to join our team.", | |
| "text-formatted": "text_formatted"}, | |
| "location": "Gothenburg", | |
| "company": "Company B" | |
| }, | |
| ... | |
| ] | |
| } |