def get_note_by_id(self, note_id: str):
"""
:param note_id: note_id you want to fetch
:type note_id: str
:rtype: dict
"""
data = {"source_note_id": note_id, "image_scenes": ["CRD_WM_WEBP"]}
uri = "/api/sns/web/v1/feed"
res = self.post(uri, data)
return res["items"][0]["note_card"]
def get_note_by_id_from_html(self, note_id: str):
"""get note info from "https://www.xiaohongshu.com/explore/" + note_id,
and the return obj is equal to get_note_by_id
:param note_id: note_id you want to fetch
:type note_id: str
"""