I wrote following python code:
from bs4 import BeautifulSoup import urllib2 url= \'http://www.example.com\' page = urllib2.urlopen(url) soup = BeautifulSoup
You're missing a tiny bit of code:
from bs4 import BeautifulSoup import urllib2 url= 'http://www.example.com' page = urllib2.urlopen(url) soup = BeautifulSoup(page.read(), 'html.parser') freq = soup.find('div', attrs={'id':'frequenz'}) print freq.string # Added .string