|
@@ -0,0 +1,21 @@
|
|
|
+#!/usr/bin/python3
|
|
|
+import os
|
|
|
+import codecs
|
|
|
+import dataset
|
|
|
+
|
|
|
+
|
|
|
+db = dataset.connect('mysql://hhh7796hhh:lYmWsu^ujcA1@hhh-v57-cluster.cluster-cmab1ctkglka.ap-northeast-2.rds.amazonaws.com:3306/xoops?charset=utf8mb4')
|
|
|
+cursor=db.query('SELECT hdesigner_id FROM xoops._hdesigner where onoff=1; ')
|
|
|
+for c in cursor:
|
|
|
+ print(c['hdesigner_id'])
|
|
|
+
|
|
|
+
|
|
|
+#dir_prefix='/var/www/jared-faq/'
|
|
|
+
|
|
|
+#for l in lst:
|
|
|
+# curdir=dir_prefix+l
|
|
|
+# if not os.path.exists(curdir):
|
|
|
+# os.mkdir(curdir)
|
|
|
+# os.chdir(curdir)
|
|
|
+# os.system('curl https://hhh.com.tw/columns/detail/'+l+'/ > index.html')
|
|
|
+
|