Question : import beautifulsoup
Answered by : watsoncodes
from requests import get
from bs4 import BeautifulSoup as bs
page = get("http://website.url/goes-here")
soup = bs(page.content, 'html.parser')
Source : | Last Update : Wed, 07 Apr 21
Question : beautifulsoup4 install
Answered by : hurt-hornet-p888dh2rv05w
pip install beautifulsoup4
Source : | Last Update : Sat, 11 Jul 20
Question : python bs4 install
Answered by : aneesh-yr
pip install bs4 #this'll do the work
Source : | Last Update : Sun, 06 Sep 20
Question : use beautifulsoup
Answered by : joe-apiwit
#start
from bs4 import BeautifulSoup
import requests
req = requests.get('https://www.slickcharts.com/sp500')
soup = BeautifulSoup(req.text, 'html.parser')
Source : | Last Update : Thu, 07 May 20
Question : python import beautifulsoup
Answered by : herker
from bs4 import BeautifulSoup
import requests
Source : | Last Update : Thu, 11 Feb 21
Question : beautiful soup 4
Answered by : arkyyadav001
from bs4 import BeautifulSoup
with open("index.html") as fp: soup = BeautifulSoup(fp)
soup = BeautifulSoup("<html>a web page</html>")
Source : https://www.crummy.com/software/BeautifulSoup/bs4/doc/ | Last Update : Wed, 10 Jun 20
Question : children beautiful soup
Answered by : long-lyrebird
li = soup.find('li', {'class': 'text'})
children = li.findChildren("a" , recursive=False)
for child in children: print child
Source : https://stackoverflow.com/questions/6287529/how-to-find-children-of-nodes-using-beautifulsoup | Last Update : Sun, 23 Feb 20
Question : beautifulsoup import
Answered by : outrageous-octopus-8omm37np7qut
from requests import get
from bs4 import BeautifulSoup as bs
page = get("http://dataquestio.github.io/web-scraping-pages/simple.html")
soup = bs(page.content, 'html.parser')
Source : https://www.dataquest.io/blog/web-scraping-tutorial-python/ | Last Update : Mon, 15 Mar 21