Commit a13b4b2c by haojie

1

parent 6c302952
......@@ -9,3 +9,6 @@ task_api = ''
# redis
redis_host = '127.0.0.1'
redis_password = ''
# 浏览器位置
binary_location = r''
......@@ -3,6 +3,7 @@ import time
from selenium import webdriver
from Helper import RedisCon
import random
from config.env import binary_location
class Dune:
......@@ -131,6 +132,9 @@ class Dune:
"user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36")
options.add_argument('window-size=1920x1080')
# /www/wwwroot/inscription-trade-py/chromedriver.exe
if binary_location:
options.binary_location = binary_location
driver = webdriver.Chrome(options=options)
# 控制浏览器访问url地址
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment