|
@@ -52,10 +52,10 @@ class XhsBrowser(BaseBrowser):
|
|
|
return xhs_client_obj
|
|
|
|
|
|
def login(self):
|
|
|
- with sync_playwright() as playwright:
|
|
|
- self.__init_browser__()
|
|
|
-
|
|
|
- self.page.wait_for_timeout(60_000)
|
|
|
+ self.__init_browser__()
|
|
|
+
|
|
|
+ self.page.wait_for_timeout(60_000)
|
|
|
+ self.playwright.stop()
|
|
|
|
|
|
def polish_huitun_note(self, huitun_notes: []):
|
|
|
"""
|