4
osmarks
7y

I wanted to get the latest NASA APOD photo with Python. Easy, right? Nope! Firstly, their RSS feed is partly HTML, so feedparser doesn't understand it. Secondly, feedparser doesn't even get the titles of entries correctly.

Which is why I'm trying to parse it in a horrible way using Python regexp. NASA can put humans on Luna but not even get their RSS feeds to parse properly.

Comments
  • 3
    I actually done that before with Python. They do have an API that returns a pretty friendly json.
  • 3
    @DeepSpace Sadly, you've told me this AFTER I've written the regexes.
Add Comment