|
@@ -80,7 +80,7 @@ class ZhiqingtiantiankanRecommend:
|
|
|
'browserName': ''
|
|
|
}
|
|
|
driver = webdriver.Remote("http://localhost:4723/wd/hub", caps)
|
|
|
- driver.implicitly_wait(20)
|
|
|
+ driver.implicitly_wait(30)
|
|
|
# 向下滑动页面,展示出小程序选择面板
|
|
|
for i in range(120):
|
|
|
try:
|
|
@@ -105,7 +105,7 @@ class ZhiqingtiantiankanRecommend:
|
|
|
driver.find_elements(By.XPATH, '//*[@text="知青天天看"]')[-1].click()
|
|
|
|
|
|
# 获取视频信息
|
|
|
- time.sleep(5)
|
|
|
+ time.sleep(10)
|
|
|
cls.get_videoList(log_type, crawler, driver, env)
|
|
|
|
|
|
# 退出微信
|
|
@@ -222,6 +222,7 @@ class ZhiqingtiantiankanRecommend:
|
|
|
|
|
|
@classmethod
|
|
|
def get_videoList(cls, log_type, crawler, driver: WebDriver, env):
|
|
|
+ driver.implicitly_wait(20)
|
|
|
# 关闭广告
|
|
|
cls.close_native_ad(log_type, crawler, driver)
|
|
|
# 切换到小程序
|