News for hackers. Stuff that matters.
Re:Amazon Price-Tracker with Alerts by crazygringo on Thursday October 15, 2020 @07:48PM (#24795759)
Honestly I'd prefer if the process didn't even have to "know" sites.

Let me just supply the URL and the price string... and let it automatically figure out the right <div> or class or id or surrounding text it can be extracted from. And if it ever breaks (can't be found, or returns something in a different numeric format) then just notify me to visit it and see what's up.

Command-line is one way to do it (can be the canonical version), but then a browser extension makes it even easier. You'll need a headless browser even from the command-line in any case, since the product info isn't always in the HTML at all.

There are no comments on this comment yet.