Live data from Hacker News

Bot written to buy random things each month from Amazon

randomshopper.tumblr.com

101–102 of 102 posts

Re: Bot written to buy random things each month from Amazon

#101
post #85
post #47

Earlier quoted context omitted.

No, the article says right there it uses search results (presumably by scraping). ECS used to be WSDL - real easy to drive from eg. PHP back in the day. I wouldn't want to be the poor sod parsing the retail website HTML (although perhaps the last redesign improved it).

I'm actually not parsing the HTML at all. Not really. I'm using PhantomJS, which is a headless web browser. Each time I load a page, I inject jQuery and just do a simple JS command like $('#whatevertheIDisfortheform').submit(); It's the equivalent of opening up your console on each page and interacting with it via jQuery rather than a mouse and keyboard.

So something has parsed the HTML - but at least you didn't have to reinvent that wheel :)

Still, you might want to look at https://affiliate-program.amazon.co.uk/gp/advertising/api/de... - the Product Advertising API looks like the latest evolution of the E-Commerce Service API and might let you do things like stop the bot from making duplicate similar purchases, or accidentally fulfilling your wishlist.

Re: Bot written to buy random things each month from Amazon

#102
post #37

you have no respect for the value of money, time and our planet. You better use your spare time write a bot to feed 80 human beings in poor country. :\ disappointed how this can get so high on HN. Srsly, you guys are loosing it.

losing, not loosing
Post reply on HN