import requests
from bs4 import BeautifulSoup
# Reddit API endpoint for job listings
url = 'https://www.reddit.com/r/learnpython/search.json?q=jobs&sort=top&t=week'
headers = {'User-Agent': 'RedditJobExporter/1.0 (by u/yourusername)'}
response = requests.get(url, headers=headers)
data = response.json()
# Extract job titles and links
jobs = []
for post in data['data']['children']:
title = post['data']['title']
link = post['data']['url']
upvotes = post['data']['score']
jobs.append({'title': title, 'link': link, 'upvotes': upvotes})
# Save to CSV
import csv
with open('reddit_jobs.csv', 'w', newline='', encoding='utf-8') as f:
writer = csv.DictWriter(f, fieldnames=['title', 'link', 'upvotes'])
writer.writeheader()
writer.writerows(jobs)
Tracking jobs on Reddit manually is tedious. The Reddit Job Exporter automates this process, saving you hours weekly by avoiding manual scrolling. This tool is designed for Python developers and job seekers who want to track relevant job postings without effort. It automates the extraction of job data from Reddit’s r/learnpython and r/python communities, filtering by upvotes and relevance.
The Reddit Job Exporter is a lightweight Python script that runs in minutes. It uses the Reddit API to fetch job listings and exports them to a clean CSV file, making it easy to analyze and track your progress. With just a single click, you can save time and focus on what matters: applying for jobs.
The script includes a strong focus on upvote filtering, ensuring that only the most relevant and popular job postings are included. This helps you track the best opportunities without sifting through low-quality content. The exporter also supports real-time updates, so you’re always working with the latest data.
To use the Reddit Job Exporter, simply download the script and follow the setup instructions in the README.txt file. The tool requires Python 3.7+ and the installation of two dependencies: requests and beautifulsoup4. With one pip install command, you’ll have everything you need to start automating your job tracking.
Here’s an example of how the script processes data and generates a CSV file:
import csv
# Sample data from Reddit API
sample_jobs = [
{'title': 'Python Developer', 'link': 'https://example.com/job1', 'upvotes': 1500},
{'title': 'Data Scientist', 'link': 'https://example.com/job2', 'upvotes': 2500},
{'title': 'Machine Learning Engineer', 'link': 'https://example.com/job3', 'upvotes': 3000}
]
# Write sample data to CSV
with open('sample_output.csv', 'w', newline='', encoding='utf-8') as f:
writer = csv.DictWriter(f, fieldnames=['title', 'link', 'upvotes'])
writer.writeheader()
writer.writerows(sample_jobs)
This script produces a CSV file with columns for title, link, and upvotes, making it easy to analyze and track your job search. The Reddit Job Exporter includes a sample output file that demonstrates the exact format of the exported data.
If you're looking for a productivity tool that automates job tracking on Reddit, the Reddit Job Exporter is the perfect solution. It’s designed to help Python devs and job seekers stay updated with real-time job data while saving time and effort. You can find the tool at https://intellitools.gumroad.com/l/reddit-job-exporter.
Top comments (0)