浏览器一直转圈,无法爬取,解决办法
#浏览器一直转圈,无法爬取,解决办法 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 when loading page') browser.execute_script('window.stop()')#time.sleep(3)强制休眠