News for hackers. Stuff that matters.
Re:Avoiding bot detection: How to scrape the web without get... by xnyan on Sunday October 31, 2021 @10:09PM (#29062408)
Unfortunately, the days of reliable non-JavaScript capable scraping are over.

Fortunately there are plenty of tools to handle this, and at a hobby level not particularly resource intensive. Something like this is simple and reliable in many cases: https://github.com/berstend/puppeteer-extra/tree/master/pack...

Re:Avoiding bot detection: How to scrape the web without get... by IceWreck on Monday November 01, 2021 @12:56AM (#29063132)
> Unfortunately, the days of reliable non-JavaScript capable scraping are over.

Not really. In a lot of cases websites use JavaScript to call some API along with some on the fly generated token to prevent abuse.

As long as that token isn't captcha you can reverse engineer the site to do scraping without javascript and that is so much faster than browser based scraping.

Re:Avoiding bot detection: How to scrape the web without get... by kingcharles on Monday November 01, 2021 @01:41AM (#29063353)
I agree with this. This is what I see on a lot of sites I scrape. Reverse engineering the JS to figure out how the fuck the token was generated is a bitch though.
Re:Avoiding bot detection: How to scrape the web without get... by shapefrog on Monday November 01, 2021 @05:19AM (#29064500)
So then you use headless browsers to render the js and that is even hackier, but totally worth it to hit another full webpage request to get the token, so you can go back to plain requests.
Re:Avoiding bot detection: How to scrape the web without get... by cute_boi on Monday November 01, 2021 @02:09AM (#29063491)
I don't think token is only the thing it comes to play here. If the company wants they can use various other techniques like fingerprinting, tls fingerprinting and lot of thing.

Its just a cat and mouse game. After few year I think hardware attention etc will come to play which can mitigate bot issue somewhat.

Re:Avoiding bot detection: How to scrape the web without get... by Mister_Snuggles on Sunday October 31, 2021 @10:46PM (#29062566)
I will take a look at this - thank you!