|
@@ -1,14 +1,17 @@
|
|
|
import time
|
|
|
import random
|
|
|
import dataset
|
|
|
+import os
|
|
|
|
|
|
|
|
|
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'])
|
|
|
-
|
|
|
+# print(c['adid'])
|
|
|
+ mobile_h=c['adlogo_mobile'].replace('https://images.hhh.com.tw/','/home/hhh-images/')
|
|
|
+ print(mobile_h)
|
|
|
+ print(os.path.exists(mobile_h))
|
|
|
+
|
|
|
|
|
|
|