Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. import requests, json, hmac, pickle, hashlib, time
  2. import sqlite3 as db
  3.  
  4. comm = db.connect(database="gorzdrav", check_same_thread = False)
  5. cur = comm.cursor()
  6.  
  7.  
  8. try:
  9. cur.execute("""SELECT * FROM cards""")
  10. for row in cur.fetchall():
  11. print('https://barcode.tec-it.com/barcode.ashx?data=' + row[0] + '&code=EAN13')
  12.  
  13. except db.DatabaseError as x:
  14. print ("Ошибка: ", x)
  15. else:
  16. comm.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement