This is an honest question, I'm not trying to take a dig at anyone in particular.
This is an honest question, I'm not trying to take a dig at anyone in particular.
Why? Because Amazon's search is outright broken. The number of results changes when you change sorting mode, and sometimes, sorting by a different criteria will just serve you a "no products found" error page.
I'll generally write a personal product comparison program when it becomes clear that I can't be certain that I can find the best product by hand. Often, even specialized websites that should have parametrized product search/filtering don't have their data properly indexed, so you have to scrape and parse it yourself. Another reason is to cross-reference with data from other sources. E.g. what laptop can I buy that has the best single-threaded CPU performance (within some other restrictions) [1]?
[0]: https://github.com/CyberShadow/choose-product/blob/master/am...
[1]: https://github.com/CyberShadow/choose-product/blob/master/le...
The solutions I write using homegrown utilities are both more elegant and faster than any framework or library I have ever seen posted to HN or recommended elsewhere. Not to mention smaller and more agile. IMHO.
All frameworks and libraries that I have seen will all fail given the right input i.e. fuzzing.
I think parsing and transforming the content from webpages is just viewed as work that no one wants to do because, for whatever reason, webpages are still unpredictable.