Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to extract data from website using beautifulsoup

from bs4 import BeautifulSoup
import requests
url="URL_HERE"
response=requests.get(url)
soup=BeautifulSoup(response.content)
spans=soup.find_all('span',"_class_here")
for span in spans:
  print(span.text)
 
PREVIOUS NEXT
Tagged: #extract #data #website #beautifulsoup
ADD COMMENT
Topic
Name
6+9 =