p. 31 DOES NOT WORK:
p. 32 DOES NOT WORK:
from BeautifulSoup import BeautifulSoup
from bs4 import BeautifulSoup
p. 33 FURTHER EXPLANATION:
After you have found that the value you want (maximum temperature, which is 26°F) is enclosed by span tags with class=”nobr”, you need to know how to find out WHICH class=”nobr” you will be scraping. Nathan tells you it’s nobrs … but how can you find that number (5) for yourself? (I will assume you know how arrays work.)
Memo to self: Journalism students are not likely to understand what an array is and how it works.
*You may see the temperatures in °C, depending on which country you’re in.