Created
September 23, 2014 02:30
-
-
Save newbiethetest/9d11981b5ca518c9f2d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def process_item(self,item,spider): | |
try: | |
#self.cursors.execute("select version()") | |
self.cursors.execute('''INSERT INTO `niaoyunTable` (title, href) | |
VALUES (%s, %s)'''%(item['title'],item['href'])) | |
self.connect.commit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment