Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # https://pastebin.com/u/TTpocToXaKep
- import requests
- from bs4 import BeautifulSoup
- # Make a get request to fetch the raw HTML content
- html_content = requests.get('https://www.python.org/').text
- # Parse the html content
- soup = BeautifulSoup(html_content, "lxml")
- # Print the parsed data of html
- print(soup.prettify()) # print the parsed data of html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement