Injecting configuration and compiling...
Injecting scraper and running...
Traceback (most recent call last):
{<Element a at 0x7fd907a132b8>: 'http://foo.com/'}
File "scraper.py", line 21, in <module>
scraperwiki.sqlite.save(unique_keys=['i'], data=record)
{<Element a at 0x7fd907a13310>: 'http://foo.com/digimedia_privacy_policy.html', <Element a at 0x7fd907a132b8>: 'http://foo.com/'}
File "/app/.heroku/src/scraperwiki/scraperwiki/sqlite.py", line 31, in save
dt.create_table(data, table_name = table_name, error_if_exists = False)
File "/app/.heroku/python/lib/python2.7/site-packages/dumptruck/dumptruck.py", line 202, in create_table
converted_data = convert(data)
File "/app/.heroku/python/lib/python2.7/site-packages/dumptruck/convert.py", line 56, in convert
checkdata(row)
File "/app/.heroku/python/lib/python2.7/site-packages/dumptruck/convert.py", line 98, in checkdata
raise ValueError(u'The column name must be of unicode or str type. The column name ("%s") is of type %s. If this error doesn\'t make sense, try "unicode(\'%s\')".' % (key, type(key), key))
ValueError: The column name must be of unicode or str type. The column name ("<Element a at 0x7fd907a13310>") is of type <class 'lxml.html.HtmlElement'>. If this error doesn't make sense, try "unicode('<Element a at 0x7fd907a13310>')".