This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*-coding:utf8-*- | |
# 需要的模块 | |
import os | |
import urllib | |
from urllib import request, parse | |
import urllib.request | |
import time | |
import json | |
import xlwt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*-coding:utf8-*- | |
# 需要的模块 | |
import os | |
import urllib | |
from urllib import request, parse | |
import urllib.request | |
import time | |
import json | |
import xlwt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*-coding:utf8-*- | |
# 需要的模块 | |
import os | |
import urllib | |
from urllib import request, parse | |
import urllib.request | |
import time | |
import json | |
import xlwt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
import time | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
options = Options() | |
options.add_argument('--no-sandbox') # 解决DevToolsActivePort文件不存在的报错 | |
options.add_argument('window-size=1920x3000') # 指定浏览器分辨率 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
import time | |
from selenium.webdriver.chrome.options import Options | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
options = Options() | |
options.add_argument('--no-sandbox') # 解决DevToolsActivePort文件不存在的报错 | |
options.add_argument('window-size=1920x3000') # 指定浏览器分辨率 |