Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

bbc weather webscraping python beautifulsoup

short_descs = [sd.get_text() for sd in seven_day.select(".tombstone-container .short-desc")]
temps = [t.get_text() for t in seven_day.select(".tombstone-container .temp")]
descs = [d["title"] for d in seven_day.select(".tombstone-container img")]print(short_descs)print(temps)print(descs)
Source by www.dataquest.io #
 
PREVIOUS NEXT
Tagged: #bbc #weather #webscraping #python #beautifulsoup
ADD COMMENT
Topic
Name
1+3 =