Hello all, hope we have some patience for a beginner this morning.
I've written a weather scraper and it runs without any errors. My problem is one class_ has a variable of either high or low. My if statement returns a None value and I can't seem to figure it out. Any advice would be greatly appreciated.
I've written a weather scraper and it runs without any errors. My problem is one class_ has a variable of either high or low. My if statement returns a None value and I can't seem to figure it out. Any advice would be greatly appreciated.
time = current.find(class_='period-name').text short_desc = current.find(class_='short-desc').text temp = current.find(class_='temp temp-()') if temp == ('low'): find(class_='temp temp-low').text if temp == ('high'): find(class_='temp temp-high').text weather.append(time) weather.append(short_desc) weather.append(temp)~b4iknew