mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-10 15:34:57 -05:00
[GH-ISSUE #1025] Adding Support for xiaohongshu.com Website #6523
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Springshen on GitHub (Dec 29, 2024).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/1025
describe the feature you'd like to see
With a monthly visitation of 300 million in China, and the expectation of even more traffic in the future, support for this site is of great importance.
additional context
https://www.xiaohongshu.com/
@KwiatekMiki commented on GitHub (Dec 29, 2024):
https://github.com/imputnet/cobalt/issues/new?assignees=&labels=service+request&projects=&template=service-request.yml&title=add+support+for+%5Bservice+name%5D
@dumbmoron commented on GitHub (Dec 29, 2024):
@Springshen please add some example links
@dumbmoron commented on GitHub (Jan 15, 2025):
from #1055:
@tizu69 commented on GitHub (Jan 16, 2025):
I just now noticed og:video tag contains the full video link lol
@Podter commented on GitHub (Jan 19, 2025):
Once you fetch the HTML page from xiaohongshu.com, the data is stored in the
window.__INITIAL_STATE__object after page load, you can get everything you need.window.__INITIAL_STATE__.note.noteDetailMap["note_id"].note.imageListis an image array for image noteswindow.__INITIAL_STATE__.note.noteDetailMap["note_id"].note.video.media.streamis the video URLs for video notesHere is how it look like for image notes:
And here is how it look like for video notes:
You can try it on your browser console!
Reference: JoeanAmier/XHS-Downloader
@lostdusty commented on GitHub (Jan 20, 2025):
thanks, will make a pr tomorrow (at my time)
@wukko commented on GitHub (Jan 21, 2025):
we added support for xiaohongshu in 10.6! it's already available on https://cobalt.tools, go try it!