Weather Scraper

Once your Pi is connected to the Internet, it can reach out and do things on the Internet, like looking at webpages and reporting what it finds there.

When a website or service provides data already formatted for you—as a commas-separated value (CSV) file or as a JavaScript Object Notation (JSON) file—they often do so via a formal Application Programming Interface (API).

But you can also just go out, get a webpage off their website, and start looking through it.

This project is a simple Python file that gets a copy of the weather forecast for Pasadena, hunts through looking for the current temperature, and then prints that information out in the terminal.

Try it out! Get a copy of the file, put it onto the server (via scp or by copy-pasting the sourcecode into a file you're editing on the server using nano), and then run it.

weather_scraper.py