Ask HN: What are the best tools for web scraping in 2022?
1–10 of 160 posts
Last time this question was asked on HN was in 2017 (https://news.ycombinator.com/item?id=15694118), a lot has changed in the last 5 years in the world of web scraping (legal landscape, antibot unblockers, data type specific APIs, etc), so I thought it may be a good idea to refresh this question and see what are the most popular tools used by the HN community these days.
Re: Ask HN: What are the best tools for web scraping in 2022?
#2powershell
Re: Ask HN: What are the best tools for web scraping in 2022?
#3In the world of SPA (single page applications), headless browser API is super helpful, playwright[1] and puppeteer[2] are very good choices.
Re: Ask HN: What are the best tools for web scraping in 2022?
#4powershell
Can you expand on this? I’ve always found powershell hard to do right.
Re: Ask HN: What are the best tools for web scraping in 2022?
#5Re: Ask HN: What are the best tools for web scraping in 2022?
#6curl-impersonate[1] is a curl fork that I maintain and which lets you fetch sites while impersonating a browser. Unfortunately, the practice of TLS and HTTP fingerprinting of web clients has become extremely common in the past ~1 year, which means a regular curl request will often return some JS challenge and not the real content. curl-impersonate helps with that.
Re: Ask HN: What are the best tools for web scraping in 2022?
#7As someone that has built and maintained a few scraper tools in my career: hand-written logic and patience because your scraper will break any time upstream changes their HTML. It's an infinite game of whack-a-mole outside your control.
Scrapers are very simple, effective and probably one of the least fun things to build.
Re: Ask HN: What are the best tools for web scraping in 2022?
#8The polite package using R is intended to be a friendly way of scraping content from the owner. "The three pillars of a polite session are seeking permission, taking slowly and never asking twice."
Re: Ask HN: What are the best tools for web scraping in 2022?
#9In the world of SPA (single page applications), headless browser API is super helpful, playwright[1] and puppeteer[2] are very good choices. [1] https://github.com/microsoft/playwright [2] https://github.com/puppeteer/puppeteer
Also is the ability to open the Networks panel, to snoop on requests and find the exact API call that you might need to perform your task, instead of having to pull in all of HTML/JS/CSS crap. As a lot of SPAs have essentially pushed everything behind JSON APIs, all information is usually one (authenticated) API call away.
Re: Ask HN: What are the best tools for web scraping in 2022?
#10I've thought https://www.scrapingbee.com/ looked great, especially their auto rotation of IP addresses.