pyBegin / projects / scrap-ycombinator
📰

Scrape Y Combinator

Scrapes article titles and links from the Hacker News (Y Combinator) front page and writes them to ycombinatornews.csv.

28 lines🖥 Desktop only

Scrape Y Combinator

Scrapes article titles and links from the Hacker News (Y Combinator) front page and writes them to ycombinatornews.csv.

Example

$ python main.py
Done

After running, a file ycombinatornews.csv is created in the same directory containing two columns — ARTICLE TITLE and ARTICLE LINKS — with one row per story scraped from the Hacker News front page.

How to run on localhost

pip install requests beautifulsoup4 lxml
python main.py

Dependencies