News for hackers. Stuff that matters.
Re:After 10 Years, Yelp Gave My App 4 Days by reddalo on Thursday August 01, 2024 @03:34AM (#41126942)
But they can quickly change the "structure" of that API.
Re:After 10 Years, Yelp Gave My App 4 Days by vladstudio on Thursday August 01, 2024 @04:14AM (#41127128)
I believe this is where smarter tools like Kadoa [0] can be of help. It detects data structure changes for existing workflows, and adapts to them.

[0] https://www.kadoa.com/

Re:After 10 Years, Yelp Gave My App 4 Days by account42 on Thursday August 01, 2024 @05:58AM (#41127562)
A small problem compared to not having an API key and being stonewalled as to why.
Re:After 10 Years, Yelp Gave My App 4 Days by michaelcampbell on Thursday August 01, 2024 @08:33AM (#41128488)
I worked for a very early billpay company where you could pay your bills online to vendors, even if the vendor didn't support it. We used API's where we could, but where we couldn't...

We had a whole team dedicated to keeping up the changes vendors would make to their websites that we scraped for info. The team was called, of course, "Scrape and P(r)ay".

Re:After 10 Years, Yelp Gave My App 4 Days by xeromal on Thursday August 01, 2024 @12:38PM (#41130949)
Isn't that similar to deleting your API key except you can at least fix the structure of the selenium one.
Re:After 10 Years, Yelp Gave My App 4 Days by chillfox on Saturday August 03, 2024 @08:57PM (#41150397)
If you build your scraper to find data on the page based on the shape of the data itself instead of the structure of the page then it will be resilient to most changes that don't materially change what data is displayed on the page.

So, prefer regex over css selectors, and css selectors over xpath, where possible. And don't select based on nesting or position if possible.