Commit 9a049ab8 by haojie

1

parent a13b4b2c
...@@ -3,7 +3,6 @@ import time ...@@ -3,7 +3,6 @@ import time
from selenium import webdriver from selenium import webdriver
from Helper import RedisCon from Helper import RedisCon
import random import random
from config.env import binary_location
class Dune: class Dune:
...@@ -132,9 +131,6 @@ class Dune: ...@@ -132,9 +131,6 @@ 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") "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') 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) driver = webdriver.Chrome(options=options)
# 控制浏览器访问url地址 # 控制浏览器访问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