Try:
cur.execute(
"UPDATE posts SET html = ? WHERE id = ?", (html ,temp[i][1]))
, sqlite3 . ( SQL-.)
Error: html unicode, string. URL-:
response=urllib2.urlopen(str(temp[i][4]))
:
content_type=response.headers.getheader('Content-Type')
print(content_type)
-
'text/html; charset=utf-8'
html utf-8:
html = response.read().decode('utf-8')
html unicode () ProgrammingError.