import requests from bs4 import BeautifulSoup
def fetch_hn_jobs (): url = ' https://news.ycombinator.com/jobs ' response = requests . get ( url ) soup = BeautifulSoup ( response . text , ' html.parser ' ) jobs = []
for item in soup . select ( ' .athing ' ): title = item . select_one ( ' .titleline ' ) if title : link = title . find ( ' a ' )[ ' href ' ] if title . find ( ' a ' ) else '' jobs . append ({ ' title ' : title . text . strip (), ' link ' : link }) return jobs
Enter fullscreen mode
Exit fullscreen mode
The HackerNews Job Auditor is a Python script that automates the process of filtering and scoring high-quality tech jobs from Hacker News. This tool saves developers and recruiters hours of manual work by automatically screening jobs for technical depth and relevance.…