get website content with beautifulsoup

from bs4 import BeautifulSoup
import requests
    
URL = 'https://google.com/'
content = requests.get(URL)
soup = BeautifulSoup(content.text, 'html.parser')

print(soup.text)

#This code will print the website content of google
#You can change the website by editing the URL inside the variable named 'URL'

Here is what the above code is Doing:
1. It is importing the BeautifulSoup and requests libraries.
2. It is creating a variable named URL and assigning the value ‘https://google.com/’ to it.
3. It is creating a variable named content and assigning the value of the website content to it.
4. It is creating a variable named soup and assigning the value of the parsed content to it.
5. It is printing the parsed content.