#浏览器一直转圈,无法爬取,解决办法
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)强制休眠

 

相关文章:

  • 2021-11-25
  • 2021-10-02
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-04-15
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-12-21
  • 2022-12-23
相关资源
相似解决方案