downloadhandlers.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:NetEaseMusicCrawler 作者: yaochao 项目源码 文件源码
def _wait_and_switch(self, driver):
        try:
            # wait
            element = WebDriverWait(driver=driver, timeout=10).until(
                expected_conditions.presence_of_element_located((By.ID, 'date_views')))
            # switch
            driver.switch_to.window(driver.current_window_handle)
        except:
            logger.error('timeout but ajax until not completed')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号