MCPcopy Index your code
hub / github.com/arry-lee/wereader

github.com/arry-lee/wereader @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
46 symbols 122 edges 5 files 7 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

微信读书助手 wereader

作者 @arry-lee

手机浏览器打开这个链接去微读给我点个赞吧 https://weread.qq.com/review-detail?reviewid=23859891_7xVj883Yo&type=28

2022-3-16 更新日志

  1. 增加前进后退功能
  2. 增加进入书城和书架页面快捷方式
  3. 增加记住上次阅读位置,启动后直接进入阅读状态

2022-2-16 更新日志

  1. 新增带有 GUI 的客户端,也可作为微信读书的桌面客户端。
  2. 内嵌浏览器实现扫码登录后自动获取 cookie,原先的手动获取 cookie 的方法现已被移除。
  3. 接口模块 wereader.py 中的各个接口函数引入新的形参 cookie, 移除了旧的 COOKIEUSERID
  4. 移除了旧版的 settings.py 暂且保留 client.py 作为可选的命令行客户端,扫码登录之后仍然能够使用。

阅读界面如下:

image

笔记界面如下:

image

声明

本程序没有爬取任何书籍内容,只提供了一个浏览器功能,所有阅读操作和在浏览器端的操作无异,没有侵犯书籍作者版权和微信读书官方利益。

主要功能

  1. 获取书架上的书籍列表 get_bookshelf
  2. 获取某本书的详情 get_bookinfo
  3. 获取某本书的目录 get_chapters
  4. 获取某本书你的全部笔记 get_bookmarklist
  5. 获取你的所有有笔记的书单 get_notebooklist
  6. 获取某一本书的热门划线 get_bestbookmarks

具体代码见 wereader.py

新版使用方法

  1. 下载或克隆本项目
  2. 安装所需依赖 pip install -r requirements.txt
  3. 通过命令行 cd path/to/wereader 进入项目文件夹下,之后输入 python main.py 运行客户端 main.py
  4. 扫码登录后再自行探索

扫码之后也通过命令行 python client.py 运行旧版的命令行客户端 client.py(不建议使用)

本项目如对您有所帮助,请给作者个小星星,谢谢~~~ 如有什么需求和问题也可以提 issue。

Core symbols most depended-on inside this repo

get_chapters
called by 3
wereader.py
on_curBook_changed
called by 3
main.py
get_bookmarklist
called by 2
wereader.py
get_bestbookmarks
called by 2
wereader.py
update_cookies
called by 2
main.py
get_note
called by 2
main.py
read_cookie_from_path
called by 2
cookie.py
main
called by 1
client.py

Shape

Method 22
Function 21
Class 3

Languages

Python100%

Modules by API surface

main.py19 symbols
client.py13 symbols
wereader.py7 symbols
cookie.py4 symbols
ui_mainwindow.py3 symbols

For agents

$ claude mcp add wereader \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact