摘要:
#浏览器一直转圈,无法爬取,解决办法 browser.set_page_load_timeout(10) try: browser.get('https://yq.aliyun.com/articles/490268?tdsourcetag=s_pcqq_aiomsg') except TimeoutError: print('time out after 30 seconds ... 阅读全文
摘要:
#切换到新窗口 import time from selenium import webdriver from selenium.webdriver.firefox.options import Options as FOptions options=FOptions() browser=webdriver.Firefox(executable_path="/Users/mac126/g... 阅读全文
摘要:
#动作链进阶 import time from selenium import webdriver from selenium.webdriver.firefox.options import Options as FOptions options=FOptions() browser=webdriver.Firefox(executable_path="/Users/mac126/ge... 阅读全文
摘要:
#鼠标模拟悬停并点击 import time from selenium import webdriver from selenium.webdriver.firefox.options import Options as FOptions options=FOptions() browser=webdriver.Firefox(executable_path="/Users/mac12... 阅读全文
摘要:
import time from selenium import webdriver from selenium.webdriver.firefox.options import Options as FOptions options=FOptions() browser=webdriver.Firefox(executable_path="/Users/mac126/geckodrive... 阅读全文