UPDATE: OK, so there were a couple of minor teething troubles, mostly to do with me breaking the buy-now option. That’s now fixed, I hope. I did some more work on the parser, and it should work properly for Property, Motors, and kinda sorta works for Jobs. TMJobs doesn’t look like it was made by the same people as the rest of it, so the names and everything are different, causing it not to play nice with the rest of my system.
Original Post: Today I got annoyed at my local auction site Trademe for not offering RSS feeds of anything. What I wanted was feeds notifying me of new search results and listings in categories – yes, TM offer email notifications for both these cases, but I spend a lot more time in Google Reader than I do in my email client. That, and their email only comes once a day, whereas RSS can be updated a lot more frequently.
I also wanted to (optionally) only be notified when a buy-now was available below some amount. Basically I want to see cheap stuff before anyone else has a chance to notice it, but I don’t want to do any of the work normally associated with that (ie: hitting F5 a lot)
Trademe do have a fairly limited public API. However, the closest I could find to what I wanted was this post, which wasn’t quite what I was after.
So I wrote a small script that downloads a trademe URL and extract the relevant information into a simple computer-readable format. Then I wrote another one that reads that format and renders it to RSS. After that I made it into a CGI. Then I needed a simple way of building up the URLs to the script with the correct escaping and parameters so I ran up a quick webpage for it. Then people complained that the webpage looked awful and kept asking the same questions, so I made the page a bit more complicated. It was a bit of a slippery slope, if I’m to be honest…
Anyway, I’ve put up a copy of it on this server to act as a stable and theoretically usable version. If anyone wants to use it, it’s here:
Trademe RSS Generator
I’m quite happy with the end result. By using feeds like this one, I automatically get notified of cheap PS3 games, for example
If anyone has any other suggestions as to what I could do with live machine-readable data of TM listings, feel free to leave a comment below.
What are the odds on how long it takes before TradeMe send you a cease and desist order? Before Friday is my guess.
heh, yeah. It’ll be interesting to see what they do.
In my defense though, it’s conceptually quite similar to what Google do – an automated system to retrieve a page and display it in a different format on another host – and to the best of my knowledge, they don’t seem to have had any problems.
In the worst case though, I write off the couple hours I spent on it (stuck at home waiting for a TM courier delivery). Not that big a deal
EDIT: Of course, if any Trademe people are reading this and are considering suing or whatever, feel free to contact me at paul@(NOSPAM)bieh.net and I’ll take the system down
[...] Archives « Trademe RSS feeds [...]
Hey, it’s Friday and I haven’t had a C&D
Hi Paul – this is EXACTLY what I’ve been looking for! But it apparently doesn’t work anymore…?
For example, the PS3 games link you mention at the bottom of your post here doesn’t work any more. I’m trying to use a similar feed, based on the “mcat=” query (properties for rent).
Many thanks for your hard work on this!
Hey there,
This is so exactly what I would love to use, but I see it is broken – any chance it could be resurrected?
Or can you give us some hints as to how you put it together?
I currently have an ebay database linked from http://www.adslgeek.com/dslmodem, and that works sweet, but it is just so hard to something like that in NZ.
Cheers,
aDSLgeek