Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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'
 
PREVIOUS NEXT
Tagged: #website #content #beautifulsoup
ADD COMMENT
Topic
Name
9+2 =