gen_webp.py 363 B

123456789101112
  1. import time
  2. import os
  3. import dataset
  4. db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57.cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/xoops?charset=utf8mb4')
  5. cursor = db.query("SELECT adid,adlogo_mobile FROM xoops._had where length(adlogo_mobile_webp)<5 order by adid desc limit 100;")
  6. for c in cursor:
  7. print(c['adid'])
  8. print('test')