Analysing @pythonbytes rss feed
Level: Advanced (score: 4)
Another feedparser exercise! In this Bite we're going to analyze the Python Bytes Podcast feed a bit completing the PythonBytes
class:
- Use
feedparser
to load the passed in feed URL intoself.entries
- Next complete the stubbed out methods following the docstrings:
get_episode_numbers_for_mentioned_domain
,get_most_mentioned_domain_names
,number_episodes_with_special_guest
, andget_average_duration_episode_in_seconds
.
We added some type hinting and left the modules we used in the import
s at the top. Also check out the tests, we use the full and partial feeds so hardcoded answers won't pass ;)
We were not sure to rate this intermediate or advanced, but this deserves 4 points for sure, so we kept it Advanced.
If you get stuck you can ask help on our Slack -> #codechallenges channel, just don't give any solutions away.
Good luck and keep calm and code in Python!