Hey, im trying to retrieve the 64 from this <a> tag.Could anyone tell me how to use the soup.find function in regards to finding a href and a class(in this case the "temp" class )
"<a href="THELINKWOULDGOHEREBUTICANTPOSTIT">London, United Kingdom<span class="temp">64°</span><span class="icon i-33-s"></span></a>
"
Heres what ive tried:
data1 = [link['href'] for link in soup.findAll("a", {"class": "temp"})]
data1= soup.find('a', attrs={'class' : 'temp'}).find('a', href=True)
"<a href="THELINKWOULDGOHEREBUTICANTPOSTIT">London, United Kingdom<span class="temp">64°</span><span class="icon i-33-s"></span></a>
"
Heres what ive tried:
data1 = [link['href'] for link in soup.findAll("a", {"class": "temp"})]
data1= soup.find('a', attrs={'class' : 'temp'}).find('a', href=True)



