2 ms·
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 q
by invalidname 4y ago
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-production-using-lightrun 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.