top | item 1882203

Implementing the auto-buying bot from xkcd #576

333 points| bensummers | 15 years ago |bieh.net | reply

82 comments

order
[+] niyazpk|15 years ago|reply
I am tempted to write a bot to submit $1 items that his bot is likely to buy.
[+] qjz|15 years ago|reply
How about a $1 bill priced at $2 w/free shipping? From every angle, it would be an interesting experiment. From the consumer's standpoint, it challenges the notion of free shipping. From a seller's standpoint, it challenges the notion of easy money (would you really want to stuff a thousand envelopes if the item sold well?). From the middleman's standpoint, it might help to identify bots (or possibly even money laundering).
[+] JonnieCache|15 years ago|reply
Let's start a new monetarist paradigm: low frequency trading.
[+] xenophanes|15 years ago|reply
This will be tricky. Soon people will copy your bot. Then neither of you will make sales because he searches for rare items.

Maybe then you start putting bizarre titles and explain what you're selling in a field his bot doesn't worry about.

And don't forget you can calculate how much money the bot has available from its Twitter feed, so you can price accordingly!

[+] nayanshah|15 years ago|reply
Good luck for that. Time for battle of the bots ...
[+] mike-cardwell|15 years ago|reply
A neat bot would be one which automatically buys and then resells things with a markup. It would figure out the usual price an item goes for on a website like Ebay, and purchase it if the price is set far enough below.
[+] albertsun|15 years ago|reply
Many people do this in the World of Warcraft auction house using a tool called Auctioneer. Was one of my favorite parts of the game back when I played.
[+] stygianguest|15 years ago|reply
A classic case of arbitrage. But it seems to me that it would be quite hard to achieve on ebay. You need to have very little overhead, mailing stuff isn't usually that cheap. Drop shipping --send things directly from seller to buyer-- is allowed on ebay but has many restrictions.

It would be very interesting to see if you could get some heuristics that choose products that are at least moderately useful instead of screen protectors and (exploding) batteries for various mobile phones.

[+] cosmicray|15 years ago|reply
Why bother. Just front-run Amazon with your own affiliate code. Then you could collect the spiff on everything that goes thru your portal.

and, oh BTW, people are already doing this ;_;

[+] templaedhel|15 years ago|reply
I have always wanted to try something like this with stocks or commodities. Make a bot watch the market, and buy and sell. I even got far enough to imagine some sort of genetic filtering, aka give the master bot 10k, then it distributes it to 10 bots, all which are slightly different, they spend it, the master takes any profit above 1k and invests it in another bot that is a combination of the best 2. Etc. That way your max loss would be 10k, and you might make some money.
[+] Robin_Message|15 years ago|reply
Especially if you delay sending the seller a postal address long enough to find a buyer.
[+] bieh|15 years ago|reply
Heh, cool - I was going to submit this myself after it bought a few more items, but I guess I was beaten to it.

Any questions, or suggestions for smarter ways to select items to buy, feel free :)

[+] bieh|15 years ago|reply
Of course the server would choose to die /right now/. I've fixed it, the link should work again now :)
[+] tcdent|15 years ago|reply
Instead of running it once per day, you could run it hourly. Rank the items with the same algorithm, but take into account time left on the auction. An item expiring soon that scores really high could be purchased early so it doesn't get away. Items expiring later could be watched and dumped if the price goes too high, or determined to be worth the extra expense, if the amount is available in savings, so the more expensive good items don't get away either.
[+] xenophanes|15 years ago|reply
Scan the item description field and buy items with lots of long words!
[+] dkokelley|15 years ago|reply
How do you make sure you order tangible items? Lots of intangible items sell on eBay, like ebooks and other digital goods. Wouldn't this undermine the goal of receiving packages?
[+] jimfl|15 years ago|reply
XKCD has likely inspired more code than any other comic strip.
[+] heyrhett|15 years ago|reply
There is clearly some confusion in this thread.

He didn't actually make the $1-buying ebay bot from xkcd.

He made a completely different buying bot for some new zealand auction site: trademe.

[+] spectre|15 years ago|reply
trademe is pretty much just the New Zealand version of ebay (albeit with a better reputation and more engaged community). They are also impressive because they cloned ebays business model early enough to prevent ebay from dominating the New Zealand online auction sector (as ebay did in Australia with ebay.com.au) and sold in 2006 for $700 million (NZD) ($550m in USD).
[+] vog|15 years ago|reply
Just a small announce on HN, and the site is down.

Why does most blog software fail at simple tasks like delivering static content? Apart from comments and quick corrections, blog articles _are_ nothing more than static content. And I'd be happy to not see any comments due to high server load, as long as I can read the article.

[+] drusenko|15 years ago|reply
The Wordpress default install is horribly slow out of the box. The sad reality is that most blog software is not tuned to serve any reasonable number of pageviews by default.

It's one reason why letting someone manage all that for you makes sense. (Shameless plug) At Weebly we spent a lot of time making sure that our blogging engine is very optimized. We have free users -- they don't pay us any money, we don't place any ads on their site, and they even use their own domain -- hit the front page of Digg/Reddit/HN all the time, and we can easily handle it in stride.

[+] bieh|15 years ago|reply
It's working again now. Although I had to lower the number of maxworkers to get it stable, so it may be slow.

And yeah, I'll be investigating why it's so slow tomorrow after the heat dies down. I think this is the first time that wordpress instance has served more than a few hits per day, so I'm kinda not surprised it's gone horribly wrong.

Mirror at http://bieh.net.nyud.net/2010/11/08/xkcd-576/

[+] happybuy|15 years ago|reply
Very similar to some of the automated logic I needed to create for price tracking & prediction for my new startup www.happybuy.com.

What I found was that the biggest savings list:

http://www.happybuy.com/search//by-savings/

Needs to be quite intelligent to filter out a lot of product noise.

A lot of this is due to pricing manipulation whereby a price is low but the shipping is high. Also a lot of the products with the biggest savings aren't that useful :)

We've managed to improve the value of the list but are constantly tweaking it to get a good balance of savings and useful products listed.

Its especially important as we use a bot to auto-tweet the best saving of the day through twitter & facebook. Trying to get a bot to do this sometimes produces unintended (and often interesting) results.

[+] danio|15 years ago|reply
Why just restrict the search to buy-now items? In my experience more of the esoteric stuff seems to go on straight auctions and buy-now is used mainly by commerical retailers.
[+] bieh|15 years ago|reply
Yes, I plan to support things other than buy-now. This was just the simplest way to get something running.

My plan is to have it wake up every hour, check if it's won something in the last 24h, and if not then do a search for items to bid on that are closing in the next hour.

[+] patrickk|15 years ago|reply
In the book "Webbots, Spiders and Screen Scrapers" by Michael Schrenk, there's a topic that deals with automatic procurement and 'sniping' for those who are interested in reading further.

See #19 on the section list for a description:

http://www.schrenk.com/nostarch/webbots/DSP_inside.php

(Not affiliated in any way.)

[+] ryanjmo|15 years ago|reply
I would pay $20 to have this set up for two weeks for me. That would give you $6 you could keep for yourself. I'm sure I'm not the only one. Business here possibly?
[+] qq66|15 years ago|reply
The more people who sign up, the less interesting the results will be...
[+] hallmark|15 years ago|reply
If the Apple App Store had an API, I would be tempted to write a bot to buy me a highly rated app every ~3 days.

Didn't try very hard, but I was unable to determine whether the Android Market has an API for purchasing paid apps. In that case, the Android phone could be the bot! "Bzzzzztt. I bought this app for you. Hope you like it."

[+] Seth_Kriticos|15 years ago|reply
Silent prayer for your soul, only $1, no shipping cost!

No, seriously, I like his crazy optimistic attitude. Probably get some fun stuff out of it. Non the less, there are really people selling this kind of enlightened service on eBay, not for $1 though.

[+] trotsky|15 years ago|reply
Considering the environmental impact of door to door shipping and the low chance the items will get any significant use, it's almost like the program is optimized to promote global warming over any other goals.
[+] known|15 years ago|reply
Imports goods from China. Refurbish those goods and export them back to China.
[+] gokhan|15 years ago|reply
The script has 341 followers on Twitter. I love technology :)
[+] cahit|15 years ago|reply
This would be much more interesting if he spent the money on auction items, instead of "Buy Now" stuff where the value is not much more than the price.