Skip to content
Toutes les missions
Veille marché · Dev-to Nouvelle Publiée 18 hours ago

How to Pull Glassdoor US Jobs with Glassdoor United States Scraper

By the end of this tutorial you will have a short Python script that searches Glassdoor United States job listings and returns the results as structured rows. Each row holds the job title, t...

Entreprise most
Mode Sur site

Résumé

By the end of this tutorial you will have a short Python script that searches Glassdoor United States job listings and returns the results as structured rows. Each row holds the job title, the employer, the location, the pay text when the card shows one, and the link to the job. You do not write any scraping code yourself. Glassdoor United States Scraper (reventadata/glassdoor-scraper) is the Apify Actor built for this. You give it a job keyword, such as software engineer, and it returns one row per job card. This guide calls it from Python with the Apify client. The Actor is not affiliated with Glassdoor. It reads public job listings without a login. Prerequisites You need three things: Python 3, with the Apify client installed. A free Apify account. You can sign up on the Apify site. Your Apify API token, from your Apify account. Install the client and export the token: pip install -U "apify-client~=3.0" export APIFY_API_TOKEN="your_apify_token_here" No browser automation is needed on your side. What you'll achieve You will search for software engineer, read the rows in Python and print two lines per job. The first line holds the title, the employer and the location. The second holds the pay text and the link to the job. Because every row has the same fields, you can sort the output by employer or location afterwards, or paste it into a spreadsheet. Each row also carries a link to its job page, so every line can be opened in a browser. To search for another keyword, change one value in the script and nothing else. The script is short enough to read in one sitting. Step 1: Open Glassdoor United States Scraper Open the Glassdoor United States Scraper page on Apify Store. This tutorial calls the Actor from Python, so the name reventadata/glassdoor-scraper is all you need from that page. Step 2: Choose the search The Actor takes two input fields: query: the job keyword. Required. The README example is software engineer. maxItems: the most rows to store. It defaults to 25. The Actor ends the run with an input error if you set it below 1. Extra spaces in the keyword are collapsed. A keyword must be 1 to 100 characters long and use only letters, digits, spaces and _ - . , & + %. Step 3: Run it from Python This script starts the Actor, waits for it to finish, reads the dataset and prints two lines per job. import os from apify_client import ApifyClient # 1. Initialise the client with your token from the environment client = ApifyClient(os.environ["APIFY_API_TOKEN"]) # 2. Describe the search: one job keyword, at most 10 rows run_input = {"query": "software engineer", "maxItems": 10} # 3. Start the Actor and wait for it to finish run = client.actor("reventadata/glassdoor-scraper").call(run_input=run_input) if run is None or run.status != "SUCCEEDED": status = run.status if run else "unknown" raise SystemExit(f"Run did not succeed (status: {status}).") # 4. Read the rows from the run's default dataset items = client.dataset(run.default_dataset_id).list_items().items print(f"Retrieved {len(items)} jobs.\n") # 5. Print two lines per job for item in items: print(f"{item['title']} at {item['company']}, {item['location']}") print(f" {item.get('salary') or 'no pay shown'} - {item['url']}") Step 4: Read the output Each row is a JSON object. These are the first three rows of the example run of 2026-11-27, with the keyword software engineer and maxItems set to 10. That run returned 10 rows in total. The rows are shown whole: [ { "id": "1010263772770", "title": "Software Engineer I", "url": "https://www.glassdoor.com/job-listing/software-engineer-i-indeed-JV_IC1139761_KO0,19_KE20,26.htm?jl=1010263772770", "company": "Indeed", "location": "Austin, TX", "salary": "USD 94K - 142K (Employer provided)", "matchedQuery": "software engineer", "scrapedAt": "2026-11-27T17:18:04.064775+00:00" }, { "id": "1010322570481", "title": "Sr Embedded Systems Engineer, Audio DSP, Fauna", "url": "https://www.glassdoor.com/job-listing/sr-embedded-systems-engineer-audio-dsp-fauna-amazon-JV_IC1132348_KO0,44_KE45,51.htm?jl=1010322570481", "company": "Amazon", "location": "New York, NY", "salary": "USD 185K - 250K (Employer provided)", "matchedQuery": "software engineer", "scrapedAt": "2026-11-27T17:18:04.064775+00:00" }, { "id": "1010256916231", "title": "Senior Software Engineer - Systems Software", "url": "https://www.glassdoor.com/job-listing/senior-software-engineer-systems-software-graid-technology-inc-JV_IC1147442_KO0,41_KE42,62.htm?jl=1010256916231", "company": "GRAID Technology", "location": "Sunnyvale, CA", "salary": "USD 150K - 250K (Employer provided)", "matchedQuery": "software engineer", "scrapedAt": "2026-11-27T17:18:04.064775+00:00" } ] The fields: id: the job identifier the site publishes. title: the job title on the card. url: the link to the public job page. company: the employer on the card. It is null if the card shows none. location: the location on the card. It is null if the card shows none. salary: the pay text on the card, as published. It is null if the card shows none. matchedQuery: the keyword you searched for. scrapedAt: an ISO 8601 timestamp. Understanding your results Every row has the same eight fields, so a run is easy to load into a table. A few details help when you work with the data. Rows in one run are de-duplicated by id, so the same job does not appear twice in the dataset. The salary field is text, not a number. In the example rows it is a pay range followed by the text (Employer provided). Keep it as text, or parse it yourself if you need numbers. The matchedQuery field repeats your keyword on every row, which helps if you merge the output of several runs into one file. The scrapedAt field is when the row was collected, and url is the link back to the job on Glassdoor. The Actor returns only what the site shows on its job cards. There is no full job description. When you want to read a whole listing, open the url from the row. Treat id as the stable key for a job and url as the link you click. Pro tips and advanced usage Keep the test small. Set maxItems to a low number while you check that the script works, then raise it. The ceiling is 30 rows per run, because the Actor reads one results page per search. Search one keyword per run. To cover several keywords, call the Actor once per keyword in a loop, and use matchedQuery to tell the rows apart afterwards. Save to a file. Write the rows from Step 3 to a CSV file with encoding="utf-8": import csv with open("glassdoor-jobs.csv", "w", newline="", encoding="utf-8") as f: writer = csv.DictWriter(f, fieldnames=["id", "title", "company", "location", "salary", "url"]) writer.writeheader() for item in items: writer.writerow({k: item.get(k) for k in writer.fieldnames}) Compare runs by link. When you merge several runs, use url or id as the key, since one job can match more than one keyword. Rows inside one run are already de-duplicated by id, but two runs know nothing about each other, so the merge is your job. Keep the token safe. Read it from APIFY_API_TOKEN, as the script does, and never paste it into a file you share. Limits to know about One keyword is read per run. Put one keyword in query. query must be 1 to 100 characters, using ASCII letters, digits, spaces and _ - . , & + %. Anything else ends the run with an input error. One results page is read per search, so a run returns at most 30 rows, whatever maxItems says. A keyword with no matching results stores no rows. The Actor returns only the fields the site publishes on its job cards. There is no full job description, and salary is text, not a number. Troubleshooting common issues The run did not succeed. Open the run in the Apify Console and read its log. The script stops and prints the status, so you can see what happened. You got zero rows. The keyword may have no matching results, and the Actor stores no rows in that case. Try a shorter or more common keyword. You got fewer rows than maxItems. One results page is read per search, so 30 rows is the ceiling, whatever maxItems says. The input was rejected. Check that query is 1 to 100 characters long, uses only letters, digits, spaces and _ - . , & + %, and that maxItems is at least 1. You see an error about the token. Check that APIFY_API_TOKEN is set in the shell that runs the script, and that you copied the token whole. Next steps Save the rows to a CSV file, or load them into a spreadsheet and sort by employer. Then run the script with a second keyword and compare the two result sets by url. For current pricing and details, see the Store page. Which keyword will you search on Glassdoor? Drop a comment below. About the author: reventadata builds and publishes data extraction Actors on the Apify Store.