Python crawl data is written to mysql error pymysql.err.ProgrammingError: Cursor closed

clipboard.png

for loop write crawl to crawl data, and then write mysql, to look at the database, the write is successful, but reported an error, may I ask why?

Jul.27,2021

cursor is closed. There is too little information, and I speculate that some operations may automatically close the cursor, and then you use this cursor. Or do you close the cursor and you don't know it?

Menu