I get the following error at the end of my execution of the script. It does, however, successfully store everything in the SQLite db.
Continuing without psyco JIT compilation!
Traceback (most recent call last):
File "/Users/sam/bin/pycrawler", line 210, in
threader().run()
File "/Users/sam/bin/pycrawler", line 97, in run
self.crawl(crawling)
File "/Users/sam/bin/pycrawler", line 170, in crawl
self.queue_links(url, links, cid, curdepth)
File "/Users/sam/bin/pycrawler", line 184, in queue_links
cursor.execute("SELECT url FROM queue WHERE url=?", [link])
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
I get the following error at the end of my execution of the script. It does, however, successfully store everything in the SQLite db.
Continuing without psyco JIT compilation! Traceback (most recent call last): File "/Users/sam/bin/pycrawler", line 210, in
threader().run()
File "/Users/sam/bin/pycrawler", line 97, in run
self.crawl(crawling)
File "/Users/sam/bin/pycrawler", line 170, in crawl
self.queue_links(url, links, cid, curdepth)
File "/Users/sam/bin/pycrawler", line 184, in queue_links
cursor.execute("SELECT url FROM queue WHERE url=?", [link])
sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.