Mastering Web Scraping in Python: Scaling to Distributed Crawlingzenrows.com7 ポイント·投稿者 maltz·5 年前·0 コメント
maltz·5 年前·議論You should probably take a look at this.https://www.zenrows.com/blog/stealth-web-scraping-in-python-...
maltz·5 年前·議論YouTube has "var ytInitialData" & "var ytInitialPlayerResponse" params hardcoded in HTML. No need to run JS!
maltz·5 年前·議論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.
maltz·5 年前·議論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-...
https://www.zenrows.com/blog/stealth-web-scraping-in-python-...