Replies: 1 comment 1 reply
-
just paste the full python file so i can just copy and paste and help quicker |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
"Hi, I'm just trying to understand how it works and want to build a static GraphQL query for Berlin, Germany. This is what I have:"
some how I did not get any results but if i use
location: {where: "San Francisco, CA", radius: 50, radiusUnit: MILES} than it works.
Maybe someone have an idea what should be changed ?
this is what I have:
`
Define the URL for Indeed GraphQL API
url = 'https://apis.indeed.com/graphql'
Define the headers for the request
headers = {
'content-type': 'application/json',
'indeed-api-key': '161092c2017b5bbab13edb12461a62d5a833871e7cad6d9d475304573de67ac8',
'accept': 'application/json',
'indeed-locale': 'en-US',
'accept-language': 'en-US,en;q=0.9',
'user-agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Indeed App 193.1',
'indeed-app-info': 'appv=193.1; appid=com.indeed.jobsearch; osv=16.6.1; os=ios; dtype=phone'
}
Static GraphQL query for Berlin, Germany
query = """
query GetJobData {
jobSearch(
what: "software engineer"
location: {where: "Berlin, Germany", radius: 50, radiusUnit: KILOMETERS}
limit: 10
sort: RELEVANCE
) {
pageInfo {
nextCursor
}
results {
trackingKey
job {
source { name }
key
title
datePublished
dateOnIndeed
description { html }
location {
countryName
countryCode
admin1Code
city
postalCode
streetAddress
formatted { short long }
}
compensation {
estimated {
currencyCode
baseSalary {
unitOfWork
range {
... on Range { min max }
}
}
}
baseSalary {
unitOfWork
range {
... on Range { min max }
}
}
currencyCode
}
attributes { key label }
employer {
relativeCompanyPageUrl
name
dossier {
employerDetails {
addresses
industry
employeesLocalizedLabel
revenueLocalizedLabel
briefDescription
}
images {
headerImageUrl
squareLogoUrl
}
links { corporateWebsite }
}
}
recruit {
viewJobUrl
detailedSalary
workSchedule
}
}
}
}
}
"""
`
Beta Was this translation helpful? Give feedback.
All reactions