Live data from Hacker News

The State of Web Scraping in 2021

mihaisplace.blog

11–20 of 132 posts

Re: The State of Web Scraping in 2021

#11
> Crawl at off-peak traffic times. If a news service has most of its users present between 9 am and 10 pm – then it might be good to crawl around 11 pm or in the wee hours of the morning.

How do you know this if it is not your website?

Also, the internet has no time zone.

Re: The State of Web Scraping in 2021

#12
I tried Python/ BeautifulSoup and Node/Puppeteer recently. It may be because my Python is poor, but puppeteer seemed more natural to me. Injecting functionality into a properly formed web page felt quite powerful and started me thinking about what you could do with it.

Re: The State of Web Scraping in 2021

#13
post #11

> Crawl at off-peak traffic times. If a news service has most of its users present between 9 am and 10 pm – then it might be good to crawl around 11 pm or in the wee hours of the morning. How do you know this if it is not your website? Also, the internet has no time zone.

For sites where there is a peak usage time, it's probably obvious what that peak usage time is. A news service (their example) presumably primarily serves a country or a region - then off-peak traffic times are likely at night.

The Internet has no time zone, but its human users all do.

Re: The State of Web Scraping in 2021

#15
post #2

Nowadays is more and more common for websites to have some kind of rate limiting middleware such as rack attack for ruby. It would be interesting to explore the strategies to deal with it.

Same as always - proxy farms, random popular UAs with random delays etc.

so will Google's freezing of the UA lead to less ability to web scrape for the non big company scrapers out there?

Re: The State of Web Scraping in 2021

#18
post #14

What kind of stuff are people needing to scrape?

Scraping saved untold lives this past spring when large healthcare providers (i.e. Walgreens & CVS) opted to hide their vaccination appointments behind redundant survey questions. This made it more difficult to quickly ascertain when an appointment slot would become available. The elderly were less likely to look more than once a day, delaying vaccines for those that needed it the most.

GoodRX built a scraping system that tapped into all the major providers. Thats what a group of vaccine hunters in my state used to get appointments for folks that had tried but were unable to.

Re: The State of Web Scraping in 2021

#19

Earlier quoted context omitted.

Same as always - proxy farms, random popular UAs with random delays etc.

so will Google's freezing of the UA lead to less ability to web scrape for the non big company scrapers out there?

Sorry can you please elaborate what is Google doing?

Re: The State of Web Scraping in 2021

#20
post #2

Nowadays is more and more common for websites to have some kind of rate limiting middleware such as rack attack for ruby. It would be interesting to explore the strategies to deal with it.

Fundamentally, what most scrapers learn is that the more their scraper can behave like a human browsing the site, the less likely they are to get detected and blocked. This does put limits on how quickly they can crawl, of course, but scrapers find ways around it like changing ip and user agent (ip is probably the main one, bec you can then pretend that you are multiple humans browsing the site normally).

Yeah, there are services that give you a range of IPs for a certain time.
Post reply on HN