Your Name 3 éve
szülő
commit
01feabd08f
1 módosított fájl, 13 hozzáadás és 0 törlés
  1. 13 0
      monitor/hhh_404_manager.py

+ 13 - 0
monitor/hhh_404_manager.py

@@ -0,0 +1,13 @@
+from seleniumwire import webdriver  # Import from seleniumwire
+import time
+import requests
+import sys
+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 hcolumn_id FROM xoops._hcolumn where onoff>0 order by rand()  limit 1;')
+for c in cursor:
+    print(c['hcolumn_id'])
+