Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests, json, hmac, pickle, hashlib, time
- import sqlite3 as db
- comm = db.connect(database="gorzdrav", check_same_thread = False)
- cur = comm.cursor()
- try:
- cur.execute("""SELECT * FROM cards""")
- for row in cur.fetchall():
- print('https://barcode.tec-it.com/barcode.ashx?data=' + row[0] + '&code=EAN13')
- except db.DatabaseError as x:
- print ("Ошибка: ", x)
- else:
- comm.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement