January 18, 2016

How to Scrape r/dailyprogrammer

I greatly enjoy brainteasers. Thus, I follow the dailyprogrammer subreddit and do most of their challenges. The task is to mine and categorize the challenges. Formatting according to the spec is an exercise left to the reader, this will just get the posts into groups that isolate the necessary parts. The code above is a function that accomplishes the narrow task of isolating the date, the level, and the title of the challenge from the subreddit's rss feed utilising feedparser.

No comments:

Post a Comment