Your Name 3 سال پیش
کامیت
a61595bd44
1فایلهای تغییر یافته به همراه14 افزوده شده و 0 حذف شده
  1. 14 0
      process_webp_from_db.py

+ 14 - 0
process_webp_from_db.py

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