import requests from bs4 import BeautifulSoup url = 'http://thefuckingweather.com/Where/10468' url_get = requests.get(url) soup = BeautifulSoup(html, 'html.parser') print(soup.select('temperature jsMainTemp').text.strip())I'm trying to get the temperature data from any weather website. I can't seem to get it working due to a error saying AttributeError: 'list' object has no attribute 'text'
Web Scraping help
Users browsing this thread: 2 Guest(s)