diff --git a/cogeco.py b/cogeco.py index 1c1f88a..ffb5e07 100644 --- a/cogeco.py +++ b/cogeco.py @@ -1,5 +1,6 @@ import urllib, urllib2, re from cookies import Cookies +from HTMLParser import HTMLParser class Cogeco: """ @@ -37,7 +38,8 @@ def authorize(streamProvider, username, password): return None Cookies.saveCookieJar(jar) - html = resp.read() + h = HTMLParser() + html = h.unescape(resp.read()) # TODO: this could be made a function to to parse and return the value based on an expression action = re.search('