Your Name 3 年之前
父节点
当前提交
e59b91ad59
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      monitor/hhh_404.py

+ 4 - 0
monitor/hhh_404.py

@@ -4,6 +4,7 @@ import requests
 import sys
 # Create a new instance of the Chrome driver
 
+
 headers = {
         "Authorization": "Bearer " + "Vt5YH5YvMwfz2m5KSpFMLLnJXoAM4uR7Ls5EQ68fw3l",
         "Content-Type": "application/x-www-form-urlencoded"
@@ -18,7 +19,10 @@ def send_msg(kw,original_url):
 #original_url='https://hhh.com.tw/columns/detail/4300/'
 #original_url='https://www.hhh.com.tw/'
 original_url='https://m.hhh.com.tw/hhh-home-mb/index.html'
+if len(sys.argv)>=2:
+    original_url=sys.argv[1]
 
+print(original_url)
 
 options = webdriver.ChromeOptions()
 options.add_argument('--headless')