jyhl 5 years ago
parent
commit
9e10b9e28f
  1. 8
      selenium_demo.py

8
selenium_demo.py

@ -11,11 +11,11 @@ from selenium.webdriver.support.ui import WebDriverWait
class GenCookies(object):
USER_AGENT = open('useragents.txt').readlines()
PROXY_HOST = 'u1.5.tn.16yun.cn' # rotating proxy or host
# 亿牛云代理配置
PROXY_HOST = 't.16yun.cn' # rotating proxy or host
PROXY_PORT = 6441 # port
PROXY_USER = '16ZJZYVL' # username
PROXY_PASS = '123413' # password
PROXY_USER = 'username' # username
PROXY_PASS = 'password' # password
@classmethod
def get_chromedriver(cls, use_proxy=False, user_agent=None):

Loading…
Cancel
Save