Git Product home page Git Product logo

Comments (27)

ReaJason avatar ReaJason commented on July 30, 2024 1

自动回复评论能做吗

可以的,有回复评论的接口,见 L397

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

目前正在使用 PySide6 做用户界面的爬虫操作,不过不清楚实际需要那些功能。目前考虑的主要就是上面所添加的两个接口,还没想到其他有价值的功能。

from xhs.

niostack avatar niostack commented on July 30, 2024

自动回复评论能做吗

from xhs.

niostack avatar niostack commented on July 30, 2024

自动回复评论能做吗

可以的,有回复评论的接口,见 L397

貌似可以做个机器人了,有没有办法监听到用户评论的事件的

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

貌似可以做个机器人了,有没有办法监听到用户评论的事件的

从目前已有接口来说,只能通过轮询获取所有笔记的评论与上一次获取的比较,来判断是否有新的评论产生,暂无便捷的方式。(或者有认识的小红书的员工提供一点能用的接口,hhhh)

from xhs.

Aaronchenn avatar Aaronchenn commented on July 30, 2024

大佬666.
大佬可以做一个模拟登陆么?比如获取web二维码,然后显示,扫码。获取到登录后的cookie。
现在还是要手动输入cookie

from xhs.

Aaronchenn avatar Aaronchenn commented on July 30, 2024

现在大佬知道接口请求的频次是多少么?感觉稍微快一点点,就会被检测。5s一次?

from xhs.

Aaronchenn avatar Aaronchenn commented on July 30, 2024

大佬666. 大佬可以做一个模拟登陆么?比如获取web二维码,然后显示,扫码。获取到登录后的cookie。 现在还是要手动输入cookie

噢噢噢对不起,我看到接口了,有qr code了,谢谢大佬。

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

不知道,没测过,不过好像获取评论的接口容易被检测,而获取用户笔记的接口能一直请求很多次都没事

from xhs.

a936919 avatar a936919 commented on July 30, 2024

可以加下获取批量获取用户的收藏笔记和点赞的笔记吗
感谢!

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

可以加下获取批量获取用户的收藏笔记和点赞的笔记吗
感谢!

可以的,不过好像基本没看到有用户把点赞的笔记列表展示出来的,基本都只看到一个收藏的

from xhs.

a936919 avatar a936919 commented on July 30, 2024

可以加下获取批量获取用户的收藏笔记和点赞的笔记吗
感谢!

可以的,不过好像基本没看到有用户把点赞的笔记列表展示出来的,基本都只看到一个收藏的

好像就是 点赞笔记应该只有自己的能看见 只加一个获取自己点赞的笔记的函数就行了

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

好像就是 点赞笔记应该只有自己的能看见 只加一个获取自己点赞的笔记的函数就行了

已添加,请更新一下,pip install -U xhs

from xhs.

a936919 avatar a936919 commented on July 30, 2024

获取用户全部的笔记的函数里面 好像没有返回笔记创建时间和最近更新时间 我看获取单个笔记里面有这两项返回值 大佬有时间可以把这两项加上

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

获取用户全部的笔记的函数里面 好像没有返回笔记创建时间和最近更新时间 我看获取单个笔记里面有这两项返回值 大佬有时间可以把这两项加上

已添加,请更新一下,感谢反馈🌹

from xhs.

newcworld avatar newcworld commented on July 30, 2024

调用 https://edith.xiaohongshu.com/api/sns/web/v1/login/activate 自动获取cookie
ref: http://www.lxspider.com/?p=257

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

调用 https://edith.xiaohongshu.com/api/sns/web/v1/login/activate 自动获取cookie ref: http://www.lxspider.com/?p=257

这个文章好像有访问权限。我看到过这个接口,这个接口会在退出登录的时候触发替换掉 web_session,其实返回的 web_session 是未登录状态的,也就是无法使用的。

from xhs.

newcworld avatar newcworld commented on July 30, 2024

调用 https://edith.xiaohongshu.com/api/sns/web/v1/login/activate 自动获取cookie ref: http://www.lxspider.com/?p=257

这个文章好像有访问权限。我看到过这个接口,这个接口会在退出登录的时候触发替换掉 web_session,其实返回的 web_session 是未登录状态的,也就是无法使用的。

未登录状态目前看也能获取笔记详情和用户详情

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

调用 https://edith.xiaohongshu.com/api/sns/web/v1/login/activate 自动获取cookie ref: http://www.lxspider.com/?p=257

这个接口请求需要 gid 和已签名的 a1,我发现 /api/sec/v1/shield/webprofile 的有个很长的参数很难解密的亚子

from xhs.

big-thousand avatar big-thousand commented on July 30, 2024

图片链接可以替换为无水印的链接

https://ci.xiaohongshu.com/${traceId}

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

图片链接可以替换为无水印的链接

https://ci.xiaohongshu.com/${traceId}

目前已经是无水印的啦,#L95

from xhs.

Bit-sjw avatar Bit-sjw commented on July 30, 2024

获取某个用户所有笔记的函数,有时候会因为碰到一些有问题的笔记而中断,好像报错是笔记内容异常,对于这种情况能设置跳过异常的笔记吗。或许是0.1.5还没有这个功能?今天看到楼主升级到0.1.8了

from xhs.

Bit-sjw avatar Bit-sjw commented on July 30, 2024

不知道,没测过,不过好像获取评论的接口容易被检测,而获取用户笔记的接口能一直请求很多次都没事

获取用户所有笔记也需要设置3~5s的间隔吧大佬。我没有设置间隔每次都被封IP了

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

获取某个用户所有笔记的函数,有时候会因为碰到一些有问题的笔记而中断,好像报错是笔记内容异常,对于这种情况能设置跳过异常的笔记吗。或许是0.1.5还没有这个功能?今天看到楼主升级到0.1.8了

目前还没有设置那个跳过异常的笔记

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

不知道,没测过,不过好像获取评论的接口容易被检测,而获取用户笔记的接口能一直请求很多次都没事

获取用户所有笔记也需要设置3~5s的间隔吧大佬。我没有设置间隔每次都被封IP了

间隔好像没用,我测试固定获取到 100 个左右会被封三到六分钟,只能等待解封

from xhs.

ReaJason avatar ReaJason commented on July 30, 2024

获取某个用户所有笔记的函数,有时候会因为碰到一些有问题的笔记而中断,好像报错是笔记内容异常,对于这种情况能设置跳过异常的笔记吗。或许是0.1.5还没有这个功能?今天看到楼主升级到0.1.8了

最新 0.2.0 支持跳过异常笔记了

from xhs.

ibananas avatar ibananas commented on July 30, 2024

非常感谢大佬的开源😊

from xhs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.