wangkun 1 年之前
父節點
當前提交
6ade522dac
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      shipinhao/shipinhao_search/shipinhao_search.py
  2. 1 0
      xigua/xigua_search/xigua_search_scheduling.py

+ 1 - 1
shipinhao/shipinhao_search/shipinhao_search.py

@@ -391,7 +391,7 @@ class ShipinhaoSearch:
         driver.switch_to.context('NATIVE_APP')
 
         # 点赞
-        like_id = driver.find_element(By.ID, 'com.tencent.mm:id/k04')
+        like_id = driver.find_element(By.ID, 'com.tencent.mm:id/k04')  # 微信版本 8.0.30
         like_cnt = like_id.get_attribute('name')
         if like_cnt == "" or like_cnt == "喜欢" or like_cnt == "火" or cls.is_contain_chinese(like_cnt) is True:
             like_cnt = 0

+ 1 - 0
xigua/xigua_search/xigua_search_scheduling.py

@@ -609,6 +609,7 @@ class XiguasearchScheduling:
                         Common.logging(log_type, crawler, env, '到底啦~\n')
                         driver.quit()
                         return
+                    driver.find_elements(By.XPATH, '//*[@class="HorizontalFeedCard searchPageV2__card"]')
                     num += 1
                     Common.logger(log_type, crawler).info(f'拖动"视频"列表第{num}个至屏幕中间')
                     Common.logging(log_type, crawler, env, f'拖动"视频"列表第{num}个至屏幕中间')