Jul-29-2017, 11:35 PM
you second code is the one that should work.
However is there an outer HTML tag that this is nested in, to grab each span element?
Quote:soup.findAll('span', {'class': ['warm','hot']}):Work your way backwards. Instead of printing out link.string, see what link actually contains. If link is empty then work you way backwards even more.
However is there an outer HTML tag that this is nested in, to grab each span element?
Recommended Tutorials: