Quellcode durchsuchen

feat: 热门标签文章需要获取原文图片

wuwenyi vor 1 Monat
Ursprung
Commit
ef8b6ca82e
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      api/search.py

+ 2 - 0
api/search.py

@@ -37,6 +37,8 @@ def search_hot_tag_note():
     playwright = sync_playwright().start()
     browser = HuiTunBrowser(lock_util.get_idle_phone('huitun'), playwright)
     result = browser.search_note_by_hot_tag(int(request_body.get('searchLimit')))
+    xhs_browser = XhsBrowser(lock_util.get_idle_phone('xhs'), playwright)
+    xhs_browser.polish_huitun_note(result.get('tagNotes').values())
     playwright.stop()
     return api.success(result)