Endo2Atom - An Endomondo ATOM/RSS feed to post your activities via tools like IFTTT #OpenData

#“Endo2Atom - An Endomondo ATOM/RSS feed to post your activities via tools like IFTTT #OpenData”

I was very disappointed to realise that Endomondo has no API. The best they can do for pushing your activities elsewhere is built-in Facebook/Twitter and some widgets. When will companies learn that lock-in is not how you keep customers?

I’d like to be able to push my activities to sites like App.net, Tumblr or anywhere really. The best way to do that is with ATOM/RSS and great tools like IFTTT and dlvr.it.

A bit of poking around last night led me to good old screen-scraping. Their widgets are publicly accessible so it wasn’t too hard to scrape one of them and generate an ATOM feed. I used it as an opportunity to try out Bottle. If you need to build a simple web-app fast, with minimal overhead and you use Python, I think you’ll like it. For kicks and giggles I decided to put it up on Heroku - my first time to do so properly. That’s a very nice deployment flow indeed.

marathon

So here you go. If you want the ATOM feed of your public Endomondo activities, just grab your numeric user ID from your profile page and tack it onto http://endo2atom.conoroneill.com

For example, my Endomondo profile is http://www.endomondo.com/profile/8922951 so my ATOM feed is http://endo2atom.conoroneill.com/8922951

Code, as ever, ison GitHub.

I have also created a simple IFTTT Recipe for auto-posting those activities to App.Net. I’ll try some other targets over the weekend.

It has only been tested on treadmill running, treadmill walking and road running. There is no error checking so it may fall over on non-distance-based activities. Let me know if it does and I’ll improve. The code is also limited to the first page of activities and doesn’t crawl backwards on the other pages. That should be easy enough to add.

Hope you find it useful.

Conor O'Neill

Tech guy who likes running slowly

Bandon, Cork, Ireland https://conoroneill.net