Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Avoid Manual Job Tracking on Reddit with Python Automation

Описание и применение

Скрипт на Python автоматически собирает вакансии DevOps из r/devops, извлекает заголовок, сабреддит, ссылку, дату публикации и определяет удалённость, сохраняет данные в CSV.

Задача

Manual tracking of DevOps jobs on Reddit is tedious, error‑prone, and does not scale.

Результат

The script produces a structured CSV of recent DevOps job posts, eliminating manual effort and reducing errors.

Рабочий процесс

  • 1. Create Reddit API credentials (client_id, client_secret, user_agent).
  • 2. Build request headers with User‑Agent and bearer token.
  • 3. GET https://api.reddit.com/r/devops/hot to retrieve JSON of hot posts.
  • 4. Parse JSON to extract title, subreddit, url, created_utc, and detect "remote" in title.
  • 5. Write extracted fields to devops_jobs.csv using csv.DictWriter.
  • 6. Sleep 1 second between requests to respect Reddit rate limits.
  • 7. Optionally limit daily fetches and add custom filters.

Доказательства

The core idea is to use the requests library to fetch Reddit’s API and parse the JSON response.

Источник

It also checks if the word "remote" appears in the title, marking the job as remote.

Источник

time.sleep(1) # Respect Reddit's rate limits

Источник

  • Дата записи: 2026-10-02T20:40:58.033Z