Answers for "how to convert response to beautifulsoup object"

0

how to convert response to beautifulsoup object

import requests
from bs4 import BeautifulSoup

url = 'https://www.google.com'

response = requests.get(url)

html_file = BeautifulSoup(response.text, "html.parser")

print(html_file.prettify())
Posted by: Guest on July-13-2020

Code answers related to "how to convert response to beautifulsoup object"

Python Answers by Framework

Browse Popular Code Answers by Language