New to Python, has a simple situational question:
Trying to use BeautifulSoup to parse a series of pages.
from bs4 import BeautifulSoup import urllib.request BeautifulSoup(urllib.request.urlopen('http://bit.ly/'))
Traceback ...
html.parser.HTMLParseError: expected name token at '<!=KN\x01...
Working with the 64-bit version of Windows 7 with Python 3.2.
Do I need to mechanize? (which will entail Python 2.X)
source share