Login and get coding
In this Bite, we want you to scrape PyCon 2019 data.
The provided source via
_get_pycon_datacontains data for years other than 2019 and conferences other than PyCon, so you have to be selective.
get_pycon_eventsfunction by scraping the required data from the source. The data is contained in a
application/ld+jsondata structure, which can be parsed with the json module after retrieving the content. Extract the data required for the given PyCon
namedtuplewhich is the name of the PyCon, the city it takes place, the country the start date, the end date and the homepage url. Make sure to parse the start date and the end date as
After retrieving all PyCon events complete the
filter_pyconsfunction. The function takes a list of PyCon
namedtumples, a year and a continent as parameters. Based on the year and continent, return a list of all PyCons that meet the requirements. To make it a bit easier for you, we provide a
get_continent(country)function which takes a country name as a string and returns the continent of the country as a string.
Check the tests and docstrings for additional information.
Good luck and keep calm and code in Python!
88 out of 93 users completed this Bite.
Will you be Pythonista #89 to crack this Bite?
Resolution time: ~91 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 5.0 on a 1-10 difficulty scale.
» Up for a challenge? 💪