News for hackers. Stuff that matters.
Re:Web scraping via JavaScript runtime heap snapshots by invalidname on Friday April 29, 2022 @03:13PM (#31209477)
Scraping is inherently fragile due to all the small changes that can happen to the data model as a website evolves. The important thing is to fix these things quickly. This article discusses a related approach of debugging such failures directly on the server: https://talktotheduck.dev/debugging-jsoup-java-code-in-produ...

It's in Java (using JSoup) but the approach will work for Node, Python, Kotlin etc. The core concept is to discover the cause of the regression instantly on the server and deploy a fix fast. There are also user specific regressions in scraping that are again very hard to debug.

There are no comments on this comment yet.