|
@@ -92,9 +92,9 @@ class XhsBrowser(BaseBrowser):
|
|
|
# note = self.xhs_client.get_note_by_id(note_id=note_id)
|
|
|
url = f'{XHS_URL}/explore/{note_id}'
|
|
|
self.page.goto(url)
|
|
|
+ self.rotate_ident.handle_rotate()
|
|
|
if self.page.url != url:
|
|
|
self.page.locator('.note-item').nth(0).click()
|
|
|
self.page.goto(url)
|
|
|
- self.rotate_ident.handle_rotate()
|
|
|
data = self.page.evaluate('noteId => window.__INITIAL_STATE__ && JSON.stringify(window.__INITIAL_STATE__.note.noteDetailMap[noteId].note)', note_id)
|
|
|
return json.loads(data)
|