|
|
@ -11,11 +11,11 @@ from selenium.webdriver.support.ui import WebDriverWait |
|
|
|
|
|
|
|
|
|
|
|
class GenCookies(object): |
|
|
|
class GenCookies(object): |
|
|
|
USER_AGENT = open('useragents.txt').readlines() |
|
|
|
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_PORT = 6441 # port |
|
|
|
PROXY_USER = '16ZJZYVL' # username |
|
|
|
PROXY_USER = 'username' # username |
|
|
|
PROXY_PASS = '123413' # password |
|
|
|
PROXY_PASS = 'password' # password |
|
|
|
|
|
|
|
|
|
|
|
@classmethod |
|
|
|
@classmethod |
|
|
|
def get_chromedriver(cls, use_proxy=False, user_agent=None): |
|
|
|
def get_chromedriver(cls, use_proxy=False, user_agent=None): |
|
|
|