job-classification / job-search.py
Robzy's picture
final
b2d71fe
raw
history blame contribute delete
830 Bytes
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"
},
...
]
}