Browse Source

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

wuwenyi 1 month ago
parent
commit
ef8b6ca82e
1 changed files with 2 additions and 0 deletions
  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)