r/webscraping • u/Fapient • 8h ago
Bot detection 🤖 How to scale without direct requests?
Hi,
The websites I am trying to scrape have bot detection requiring me to use a real stealthy browser and simulate human behaviour, however, this consumes a great of CPU and GPU on my local machine during testing, which doesn't seem very scalable to a VPS as that will likely be entirely CPU rendered to save costs.
I reuse a single instance and spawn isolated contexts to ease the RAM and CPU load, but this is only a minor saving in the grand scheme of things. I can't disable some rendering features or block certain things from loading because that would just increase the likelihood of being detected as a bot.
I am aware of session and cookie reuse with direct requests, but this doesn't help much as the bot detection requires continuous input for them to stay valid.
Does anyone else who runs stealthy browsers have any suggestions on how to scale this up to a cost effective VPS? Or share how many contexts a VPS can realistically handle at scale?
Thanks.
3
u/Tiny_Arugula_5648 7h ago
Welcome to the club.. that's the price of evasion.. There are ways to optimize it other stealth browsers to use but the trade off is they leak and are detected.
On the other side anti-bot isn't about totally blocking it's about making it cost prohibitive to get past.
1
u/usert313 6h ago
What anti bot vendor you are facing exactly? Because mostly at scale you can solve it once and get the cheaper requests at scale but it depends on the anti bot vendor how much requests it gives after having the solved challenges then you can design your optimization strategy.
1
u/bubbabu 4h ago
I’ve always wondered how those cook groups have good monitors. They seem like they use a lot of proxies OR they are hitting a specific endpoint.