linux中安装selenium+chrome遇到问题
登录界面出现乱码问题
需要安装linux 字体
出现以下情况代理问题
try: if not check_url: url_list = [ # "https://www.google.com", # "https://www.youtube.com/", "https://www.baidu.com/", # "https://www.360.cn/", # "http://ip.3322.org/" # "https://www.lazada.co.id" ] check_url = random.choice(url_list) headers = { # ‘User-Agent‘: random.choice(pc_user_agent_list) ‘User-Agent‘: ‘Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36‘ } response = requests.get(check_url, headers=headers, proxies=proxies, timeout=3) if response.status_code == 200: # print(response.status_code) return True except Exception as e: return False ```
相关推荐
farwang 2020-11-25
星愿心愿 2020-11-24
tianhuak 2020-11-24
zhjn0 2020-11-24
昭君出塞 2020-11-23
bluecarrot 2020-11-23
linuxwcj 2020-10-21
以梦为马不负韶华 2020-10-20
彼岸随笔 2020-10-20
yutou0 2020-10-17
applecarelte 2020-10-16
ourtimes 2020-10-16
waterhorse 2020-09-19
MRFENGG 2020-11-11
rainandtear 2020-10-30
kyssfanhui 2020-10-20
liuhangtiant 2020-10-20