Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- self.connection = pymysql.connect(host='localhost',
- user='root',
- password='s3cr3tp@ssw0rd',
- db='scrapper',
- charset='utf8',
- cursorclass=pymysql.cursors.DictCursor, autocommit=True)
- sql2 = "SELECT * FROM `linksparsed`"
- try:
- cursor.execute(sql2)
- #self.connection.commit()
- except Exception as ex:
- print(ex)
- result = cursor.fetchall()
- totalLength = len(result)
- for row in cursor:
- self.parsedLinks.append(row)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement