Better HN
topnewbestaskshowjobs
Log inSign up

maltz

105 karma · joined Jan 20, 2015 (11y ago) · 13 submissions

Submissions

1.

Mastering Web Scraping in Python: Scaling to Distributed Crawling(zenrows.com ↗)

7 points · by maltz · 5y ago · discuss

comment 5y ago · link · parent

You should probably take a look at this.

https://www.zenrows.com/blog/stealth-web-scraping-in-python-...

comment 5y ago · link · parent

YouTube has "var ytInitialData" & "var ytInitialPlayerResponse" params hardcoded in HTML. No need to run JS!

comment 5y ago · link · parent

Yep, seems so. https://www.zenrows.com/pricing

comment 5y ago · link · parent

If pages are constructed client-side, the content you are looking for is either hardcoded as JSON in the HTML or loaded via XHR request. Scrape that.

comment 5y ago · link · parent

Playwright. It can be easily used with JS, Python, Go, Java, etc.

comment 5y ago · link · parent

It's part of a series of blog posts that talks explicitly about crawling. There are indeed other links that do better explaining advanced extraction techniques.

Extraction => https://www.zenrows.com/blog/mastering-web-scraping-in-pytho...

Avoid blocking => https://www.zenrows.com/blog/stealth-web-scraping-in-python-...

8.

Mastering Web Scraping in Python: Crawling from Scratch(zenrows.com ↗)

233 points · by maltz · 5y ago · 81 comments

9.

Stealth Web Scraping in Python: Avoid Blocking Like a Ninja(zenrows.com ↗)

2 points · by maltz · 5y ago · discuss

10.

Mastering Web Scraping in Python: From Zero to Hero(zenrows.com ↗)

6 points · by maltz · 5y ago · discuss