How to scrape a website HTML using requests
• 1 minThe requests library is probably one of the simplest library to use when you want to execute an HTTP call from Python script.
Asking for raw HTML
Some website will give you raw HTML only, because they are not supposed to give you a JSON back. It is the example with facebook.com
And if you print the response.text it will print out the html content that your call retrieved.
In order to properly work with your data you will need now to parse the HTML.
You can do that using Beautiful Soup library in Python