|
@@ -0,0 +1,49 @@
|
|
|
+import requests
|
|
|
+from xml.etree import ElementTree
|
|
|
+import xmltodict
|
|
|
+import random
|
|
|
+import datetime
|
|
|
+import dataset
|
|
|
+import requests
|
|
|
+import time
|
|
|
+import redis
|
|
|
+import time
|
|
|
+import sys
|
|
|
+
|
|
|
+headers = {
|
|
|
+ "Authorization": "Bearer " + "Uh4C9XRxUsxLVZKaZSVS4Os8HAnbsoZlvb2DPMfjIPU",
|
|
|
+ "Content-Type": "application/x-www-form-urlencoded"
|
|
|
+}
|
|
|
+
|
|
|
+def send_msg(kw):
|
|
|
+ params = {"message":kw}
|
|
|
+ r = requests.post("https://notify-api.line.me/api/notify",headers=headers, params=params)
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+allurls=[
|
|
|
+ 'https://hhh.com.tw/',
|
|
|
+ 'https://event.hhh.com.tw/2021-Most-Favorite-Designers/index.php',
|
|
|
+ 'https://m.hhh.com.tw',
|
|
|
+ 'http://athens-space.com/',
|
|
|
+ 'https://stage.hhh.com.tw/',
|
|
|
+ 'http://deco.hhh.com.tw',
|
|
|
+ 'https://admin.hhh.com.tw/login.php',
|
|
|
+ 'http://gstv.com.tw/',
|
|
|
+ 'http://www.liyang-design.com/',
|
|
|
+ 'http://www.keidesign.com.tw'
|
|
|
+]
|
|
|
+
|
|
|
+for url in allurls:
|
|
|
+ try:
|
|
|
+ response = requests.get(url)
|
|
|
+ maxval=None
|
|
|
+ except:
|
|
|
+ send_msg('網站有問題failed:'+url)
|
|
|
+ print(url)
|
|
|
+ print(maxval)
|
|
|
+
|
|
|
+#send_msg('測試')
|
|
|
+
|
|
|
+sys.exit()
|
|
|
+
|