Scrape ProductHunt in 30 seconds

Gabin Desserprit
Jan 30, 2017 · 3 min read
Image for post
Image for post
I feel Produchunt should add some color.

I’m about to walk you through the process at light speed to actually run the 10 magical lines of code in about 30s.

Content to scrape

Structure the data

Add the selectors

Image for post
Image for post
Looking at the HTML code Elements to pick the right selectors

Setup the request to PH

Scrape the list of products

Well done! 🎇🎉🚀

We’ve done it in 30 seconds! Humm…

Oh well, I guess I needed a bit more time to get you properly through the steps 😉

Neat, right ?


Data Hunter’s Blog

Javascript, Scraping, Web Automation

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store