#!/usr/bin/python import urllib2, re from BeautifulSoup import BeautifulSoup weatherUri = 'http://www.arso.gov.si/podro~cja/vreme_in_podnebje/napovedi_in_podatki/vreme_si.html' content = urllib2.urlopen(weatherUri).read() soup = BeautifulSoup(content) (dateItem) = str(soup('p',{'class':'datum'})[0]) (item) = str(soup('table', {'class':'online'})[0])