Login and get codingAnother 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!
59 out of 61 users completed this Bite.
Will you be the 60th person to crack this Bite?
Resolution time: ~85 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 5.8 on a 1-10 difficulty scale.
» Up for a challenge? 💪