librefm-bugs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-bugs] [bug #32936] lastscrape: BeautifulSoup fails to parse las


From: Stephen Niedzielski
Subject: [Librefm-bugs] [bug #32936] lastscrape: BeautifulSoup fails to parse last.fm pages
Date: Sun, 09 Oct 2011 08:39:07 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.202 Safari/535.1

Follow-up Comment #2, bug #32936 (project librefm):

  I was getting the following error using the patch:
"UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 238:
ordinal not in range(128)"
  So I replaced the following line:
    contents = contents.replace(u'<!–[if IE]><![endif]–>', '')
With:
    contents = contents.replace('<!–[if IE]><![endif]–>', '')


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32936>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]