Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fsniper committed May 17, 2017
1 parent d5cd722 commit 509d7ee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scraper.py
Expand Up @@ -4,7 +4,12 @@

import scraperwiki
import lxml.html
import html
try:
from HTMLParser import HTMLParser
except ImportError:
from html.parser import HTMLParser

h = HTMLParser()

from lxml.etree import tostring

Expand All @@ -23,7 +28,7 @@

output = ""
for t in d:
output = output + html.unescape(tostring(t)) + "\n"
output = output + h.unescape(tostring(t)) + "\n"

#
# # Write out to the sqlite database using scraperwiki library
Expand Down

0 comments on commit 509d7ee

Please sign in to comment.