avatar Bite 182. Parse a bunch of quotes from HTML

Let's get some inspiration. Below you find the simplified HTML of Richard Branson's My top 10 quotes on living life better.

Parse out the quotes and return a dict where the keys are authors and values quotes:

>>> from pprint import pprint as pp
>>> from quotes import extract_quotes
>>> pp(extract_quotes())
{'B.B King': 'The beautiful thing about learning is nobody can take it away '
             'from you.',
...
'Zig Ziglar': 'Success means doing the best we can with what we have. Success '
              'is the doing, not the getting; in the trying, not the triumph. '
              'Success is a personal standard, reaching for the highest that '
              'is in us, becoming all that we can be.'}

Good luck and keep calm and code in Python!

Login and get coding
go back Intermediate level
Bitecoin 3X

212 out of 214 users completed this Bite.
Will you be the 213th person to crack this Bite?
Resolution time: ~36 min. (avg. submissions of 5-240 min.)
Our community rates this Bite 3.62 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help