Commit Graph

308 Commits

Author SHA1 Message Date
zy
a7b778620a docs: 添加2025年12月18日赞赏记录 (#341)
- 新增赞赏:来自于微信群的小爷,29.99 RMB,微信红包
- 更新累计收到赞赏:649.75 → 679.74
- 更新12月收到赞赏合计:219.87 → 249.86
- 同步更新 README.md 和 README_EN.md 徽章数值
2025-12-18 23:27:20 +08:00
zy
8916dacdab publish: check title/content max length
检查 “标题”/“正文” 是否超出小红书要求的最大长度
2025-12-17 00:19:11 +08:00
allcontributors[bot]
6d43aea139 docs: add Infinityay as a contributor for code (#336)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-12-16 22:53:46 +08:00
Yuhang Lu
c530f00faa docs: 更新 API 文档 (#328) 2025-12-16 22:52:48 +08:00
zy
6331b632ad Update WeChat group QR code in README 2025-12-16 04:07:33 +08:00
zy
7af855733c docs: 添加2025年12月11日赞赏记录 (#332)
* docs: 添加2025年12月11日赞赏记录

- 新增赞赏:matheasyer,10 RMB,支付宝
- 更新累计收到赞赏:639.75 → 649.75
- 更新12月收到赞赏合计:209.87 → 219.87
- 同步更新 README.md 和 README_EN.md 徽章数值

* docs: 修正最近更新时间为12月15日
2025-12-15 00:39:36 +08:00
zy
e2af06e4df docs: 添加2025年12月10日赞赏记录 (#329)
- 新增赞赏:许掌柜,100 RMB,微信红包
- 更新累计收到赞赏:539.75 → 639.75
- 更新12月收到赞赏合计:109.87 → 209.87
- 同步更新 README.md 和 README_EN.md 徽章数值
2025-12-10 23:22:00 +08:00
haikow
486cfa0e68 修复绑定滑动评论区事件及添加使用说明 (#324)
* fix: 修复滑动绑定事件评论

* fix: fix

* fix: fix

* fix: 修复没有评论的场景

* fix

* fix: fix

---------

Co-authored-by: chekayo <9827969+chekayo@user.noreply.gitee.com>
2025-12-09 23:44:07 +08:00
zy
d4b1830613 docs: 添加2025年12月8日赞赏记录 (#325)
- 新增:来自于微信群的小爷 +29.99,无名大侠 +9.99
- 修正描述:微信一群的小爷 → 来自于微信群的小爷
- 累计收到赞赏更新为 ¥539.75

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-09 02:10:16 +08:00
zy
a375a74edd Merge pull request #322 from haikow/feature/comment-feed-logic
Feature/comment feed logic
2025-12-07 18:02:39 +08:00
chekayo
484ab31d8e fix: fix 2025-12-07 17:42:28 +08:00
chekayo
047fa7cb6f fix: fix 2025-12-07 17:11:11 +08:00
chekayo
aa8a64dbaf fix:fix 2025-12-07 17:06:41 +08:00
zy
9f1eeed925 Merge pull request #321 from xpzouying/docs/update-donations-dec-2025
docs: 更新12月赞赏记录及徽章文案
2025-12-07 16:56:24 +08:00
zy
96c4d51476 docs: 更新12月赞赏记录及徽章文案 2025-12-07 16:53:16 +08:00
zy
3f36e7b42e docs: 添加阿里云镜像源使用说明 (#320)
- README 新增阿里云镜像源拉取章节
- README 添加 Docker Compose 切换镜像源提示
- docker-compose.yml 添加阿里云镜像注释

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-07 16:38:58 +08:00
zy
02cd8a7488 feat: 添加阿里云容器镜像推送 workflow (#319)
- 新增 aliyun-docker-release.yml workflow
- 支持 AMD64 和 ARM64 架构镜像推送
- 使用 workflow_dispatch 手动触发

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-07 16:06:35 +08:00
chekayo
35890c780e Merge branch 'main' of https://github.com/xpzouying/xiaohongshu-mcp into feature/comment-feed-logic 2025-12-07 15:58:50 +08:00
chekayo
8f01632f59 fix: fix 2025-12-07 15:35:30 +08:00
haikow
13ac2e39c3 修复完善笔记详情内容加载 (#301)
* feat: add like and favorite functionality for feeds

- Implemented handleLikeFeed and handleFavoriteFeed methods in mcp_handlers.go to manage liking and favoriting feeds.
- Added LikeFavoriteArgs struct in mcp_server.go for handling parameters.
- Registered new MCP tools for liking and favoriting feeds in registerTools function.
- Introduced LikeFeed and FavoriteFeed methods in XiaohongshuService to interact with the respective actions.
- Created LikeFavoriteAction in a new file to encapsulate the logic for liking and favoriting feeds on the Xiaohongshu platform.

* "优化评论反馈逻辑:简化回复按钮查找和点击流程

* "Fix-build-errors"

* refactor: streamline like and favorite actions in LikeFavoriteAction

- Introduced a generic method `performInteractAction` to handle both liking and favoriting feeds, reducing code duplication.
- Updated logging to reflect the action type being performed (like or favorite).
- Enhanced state verification after interaction to ensure accurate feedback on success or failure.
- Removed the `clickLastMatch` function, simplifying the interaction logic.

* "Add-unlike-and-unfavorite-functionality"

* "Refactor-performInteractAction-function"

* "Refactor-split-LikeFavoriteAction-into-separate-actions"

* "Add-content-length-validation-for-publish"

* refactor: improve comment posting logic with enhanced error handling and stability checks

- Updated the PostComment method to include error handling for navigation and element interactions.
- Replaced sleep calls with more reliable wait mechanisms to ensure page stability.
- Added checks for the presence of input elements and improved logging for better debugging.

* feat: add reply comment functionality for Xiaohongshu feeds

- Implemented handleReplyComment method in mcp_handlers.go to manage replying to comments on feeds.
- Introduced ReplyCommentArgs struct in mcp_server.go for handling parameters related to comment replies.
- Registered a new MCP tool for replying to comments in the registerTools function.
- Added ReplyCommentToFeed method in service.go to interact with the Xiaohongshu platform for comment replies.
- Enhanced error handling for missing parameters in the reply process.

* refactor: enhance reply comment functionality with improved error handling and response structure

- Simplified error handling in handleReplyComment to check for both comment_id and user_id simultaneously.
- Updated response message to include both Comment ID and User ID upon successful reply.
- Modified ReplyCommentArgs struct to make comment_id and user_id optional.
- Renamed MCP tool for replying to comments for clarity.

* feat(feed): Migrate loadAllComments feature for GetFeedDetail

* fix

* fix

* fix

* fix

* fix: 添加更多自定义选项操作

* fix

* fix:优化代码结构

* chore: update dependencies and implement retry logic for page interactions

---------

Co-authored-by: chekayo <9827969+chekayo@user.noreply.gitee.com>
2025-12-07 15:04:14 +08:00
chekayo
9f4418059f fix: 补充说明 2025-12-07 15:00:40 +08:00
chekayo
3b6d211d09 fix: 补充说明 2025-12-07 14:50:32 +08:00
chekayo
cbbec86000 fix: 自定义修复,优化代码 2025-12-04 01:10:40 +08:00
zy
6bef535002 docs: 添加2025年11月/12月赞赏记录 (#314)
* docs: 添加2025年11月/12月赞赏记录

- 11月新增:一虎君 +10.00,Sijin Yang +99.99
- 12月新增:源 +39.90
- 累计收到赞赏更新为 ¥469.78

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update donation summary and total amount

* docs: 更新累计捐赠金额至 ¥600

- 11月捐赠 ¥400 给香港大浦火灾善款
- 累计捐赠:¥200 → ¥600
- 更新日期:2025-12-04

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-12-04 00:14:50 +08:00
zy
61903692b9 Update WeChat QR code in README 2025-12-03 23:31:24 +08:00
chekayo
9b15339ef0 fix: 详情增加自定义加载数量 2025-12-03 02:42:50 +08:00
chekayo
c5fa30bd3e fix 2025-11-27 02:25:59 +08:00
chekayo
3947509479 fix: 修复滚动滑动回复问题 2025-11-24 02:05:30 +08:00
zy
f92cbb69aa Update WeChat group QR code in README 2025-11-24 00:45:48 +08:00
zy
5f4267791d Merge pull request #303 from xpzouying/feature/november-donations
docs: 添加2025年11月赞赏记录
2025-11-24 00:36:47 +08:00
zy
1e2659646d docs: 添加2025年11月赞赏记录
- 新增3笔赞赏:勇敢的心(9.99)、Sijin Yang(99.99)、cym(29.99)
- 累计收到赞赏更新为 ¥319.89
- 更新 README 徽章数据

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-24 00:34:58 +08:00
allcontributors[bot]
c7b1d90f7d docs: add flippancy as a contributor for code (#299)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-11-16 23:59:12 +08:00
flippancy
2f8aa1d7ee 修复不同类型图片提交的情况下排序的问题 (#294)
* 修复不同类型图片提交的情况下排序的问题

* fix:去掉索引,按顺序检查图片下载然后加入新的数组
2025-11-16 23:57:47 +08:00
zy
7dc1a731c7 Update README.md 2025-11-16 23:54:36 +08:00
chekayo
c47ef233aa 增加更多评论详情内容 2025-11-15 14:58:54 +08:00
Angiin
40fa09538f 增加 #2.5 常见问题答疑部分。 (#295)
为文档增加了 常见问题大一部分(后续会接着更新)
2025-11-12 00:57:43 +08:00
zy
869541b117 docs: 更新 CLAUDE.md,增加代码设计和注释要求 (#290)
- 新增关于代码设计的简洁性要求
- 强调使用中文注释的清晰性和专业性
2025-11-08 20:17:36 +08:00
zy
ad2495bbfe docs: 更新英文版 README 与中文版保持同步 (#285)
- 更新贡献者徽章:6 → 17
- 新增捐赠和 Docker Pulls 徽章
- 添加疑难杂症链接和 x-mcp 工具推荐
- 添加赞赏支持章节
- 更新基础运营知识(正文1000字限制、Tags支持状态)
- 更新教程列表(Claude Code + Kimi K2、AnythingLLM)
- 更新社区群信息(飞书3群、微信10群)
- 扩展贡献者列表至17人
2025-11-06 00:17:11 +08:00
zy
2397e5ffb2 docs: 添加 Docker Pulls 徽章到 README (#284)
在 README 顶部添加 Docker Hub 下载次数徽章,方便用户查看项目热度。

徽章特性:
- 使用 flat-square 风格与现有徽章保持一致
- 添加 Docker logo 图标
- 点击可跳转到 Docker Hub 仓库
- 自动显示镜像总下载次数

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-05 23:49:07 +08:00
zy
19471706ad feat: 添加 ARM64 架构的 Docker 镜像支持 (#282)
新增 Dockerfile.arm64 用于构建 ARM64 架构镜像,与现有 amd64 镜像互不影响。

主要变更:
- 新建 Dockerfile.arm64,使用 Chromium 替代 Google Chrome
- 移除 GOARCH 硬编码,支持多架构构建
- 更新 GitHub Actions 工作流,添加独立的 ARM64 构建步骤
- ARM64 镜像使用独立标签:version-arm64 和 latest-arm64

技术说明:
- Google Chrome 不支持 Linux ARM64
- go-rod 会自动从 Playwright CDN 下载 ARM64 版 Chromium
- 两个架构的镜像构建相互独立,失败风险隔离

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-11-05 23:27:40 +08:00
zy
fb7c94e36c Update WeChat group QR code in README 2025-11-02 19:08:03 +08:00
allcontributors[bot]
4dbb01811e docs: add ctrlz526 as a contributor for code (#277)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-11-02 19:04:14 +08:00
Ctrlz
11a937b84f feat: add delete cookies functionality for login reset (#275) 2025-11-02 19:01:48 +08:00
chekayo
19b0f8545d refactor(feed_detail): optimize comment loading logic in GetFeedDetail
- Replaced the previous comment loading JavaScript with a more efficient scrolling and collection mechanism.
- Improved the logic for determining scroll targets and handling comment counts.
- Enhanced error handling and logging for comment loading failures.
- Removed deprecated code related to the old comment loading approach.
2025-11-01 21:21:47 +08:00
chekayo
6484e58ade feat(feed_detail): add loadAllComments parameter to GetFeedDetail functionality
- Enhanced GetFeedDetail method to support loading all comments based on the new loadAllComments parameter.
- Updated related handlers and request structures to accommodate the new parameter.
- Improved logging to reflect the loading of all comments during feed detail retrieval.
- Implemented JavaScript logic to scroll and collect comments when loadAllComments is true.
2025-11-01 20:55:51 +08:00
chekayo
a169db603b refactor(comment_feed): streamline comment reply process and enhance error handling
- Removed redundant waiting times and improved the logic for finding comment elements and reply buttons.
- Simplified the reply button search by consolidating selectors and enhancing error messages.
- Improved the overall readability of the code by removing unnecessary comments and whitespace.
- Ensured better handling of potential errors during the comment reply process.
2025-10-28 02:02:08 +08:00
chekayo
4d01a362a9 feat(feeds): Enhance search functionality with additional filter options
- Added support for sorting, note type, time range, search scope, and location distance in the search feeds functionality.
- Updated SearchFeedsArgs struct to include new parameters for filtering.
- Modified handleSearchFeeds method to process and apply filters during feed search.
- Improved logging to include the number of applied filters.
2025-10-28 02:01:42 +08:00
zy
7cf35fc4ae Add donation badges to README
Added donation badges to README for transparency.
2025-10-26 21:45:29 +08:00
zy
adbfc4321a 增加捐赠名单 (#269)
* 增加捐赠名单

* update docs: add intro header

* Update donation amounts and summary in DONATIONS.md
2025-10-26 21:36:07 +08:00
allcontributors[bot]
04803b2de4 docs: add hrz394943230 as a contributor for code (#261)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-10-23 23:53:16 +08:00