BeautifulSoup how to

Python beautiful soup is really nice to do web scraping, I find it easy and simple enough.
Also the Pandas library is awesome! Python shows all its powerfull and easy to use when it comes
to tasks like web scraping.

After making sure the script works I added to my crontab like:


#get forecast for genova and rapallo for the next 3 days to http://felipeferreira.net/forecast/forecast-rapallo.html
0 */6 * * * /var/www/wordpress/forecast/forecast.py genova
0 */6 * * * /var/www/wordpress/forecast/forecast.py rapallo

There is a great tutorial here: web-scraping-tutorial-python

This is the script I wrote to get last 3 days forecast for the Liguria Region using this site:
genovapost.com

The code result is this URL:
http://felipeferreira.net/forecast/forecast-genova.html

Here is the code:


VAMOVE *

*