News for hackers. Stuff that matters.

lwthiker

Re:Ask HN: What are the best tools for web scraping in 2022? on Wednesday August 10, 2022 @08:28AM (#32410792)
curl-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.

[1] https://github.com/lwthiker/curl-impersonate

For a while now I can't even access WhatsApp Web [1] through Firefox. It gets stuck on the loading page and keeps refreshing itself forever. I have to resort to Chrome whenever I need WhatsApp on my laptop.

[1] https://web.whatsapp.com

I think they have different plans and configurations for their anti-bot service [1]. I'm not sure though because I'm not using their services.

[1] https://developers.cloudflare.com/bots/get-started/

They don't block you completely, just present you with a JS challenge that delays your access to the site. A browser, even if behind a MITM proxy, would be able to solve this challenge.
I hope to do so in the future, for now the implementation is extremely hacky so I doubt it can get accepted into curl.
I will try to impersonate Chrome next, However, I suspect this is going to be more challenging. Chrome uses BoringSSL, which curl does not support. So it means either enforcing curl to compile with BoringSSL or modifying NSS to look like BoringSSL.
Thanks for the suggestion, I had no idea ESR was a thing. I've just added support for Firefox ESR 91 (it was pretty similar and required adding one cipher to the cipher list and changing the user agent).

Show HN: Pumbaa – A portfolio simulation tool for passive, index investments

https://pumbaa.app/

Hi HN,About a year ago I wrote a few scripts and spreadsheets to calculate the historical performance of various passive investment portfolios. There is portfoliovisualizer.com but if you are not from the US it's less relevant because everything is calculated with respect to the US dollar, and you cannot combine funds from other countries (say from the EU).In the past month I managed to...

( Read More... | no comments | 4 points | on HN )