Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What does the requests library in Python do?
Think about how we interact with web services.
What is JSON?
It's commonly used in APIs.
What method is commonly used to retrieve data from an API?
Remember the basic HTTP methods.
True or False: BeautifulSoup can only parse JSON.
Think about the different formats BeautifulSoup can handle.
Create a Python function that accepts a URL and returns all titles (h1 tags) from that webpage.
You will need both requests and BeautifulSoup to achieve this.
Using the requests library, show how you would handle timeouts when making a request.
Think about proper error handling when you make requests.
5 more questions in this section. Enroll free to practise them all.
Enroll free