Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- from bs4 import BeautifulSoup
- # Define your target URL
- url = 'https://scrapingclub.com/exercise/list_infinite_scroll/'
- # Send an HTTP GET request and fetch the HTML content
- response = requests.get(url)
- # Fetch the HTML content
- html_content = response.text
- # Parse the HTML content using Beautiful Soup
- soup = BeautifulSoup(html_content, 'html.parser')
- # Print formatted HTML content
- print(soup.prettify())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement