Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Krysaya/weread_to_notion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

将微信读书划线和笔记同步到Notion

本项目通过Github Action每天定时同步微信读书划线到Notion。

预览效果:https://book.malinkang.com

注意:请不要在Page里面添加自己的笔记,有新的笔记的时候会删除原笔记重新添加。

1.微信读书的数据更新是根据项目运行时间来的,比如9:00运行这个项目,今天9:00到明天9:00之间的数据会在第二天9:00之后更新。

2.notion数据库新增字段之后,需要删除所有数据才能更新新添加的字段的值。

##关于本人修改的部分 1.数据库新增开始阅读时间 2.时间循环,根据本读书时间,每天10.30,22.30点各执行一次。

使用

  1. star本项目

  2. fork这个工程

  3. 获取微信读书的Cookie

    • 浏览器打开 https://weread.qq.com/
    • 微信扫码登录确认,提示没有权限忽略即可
    • 按F12进入开发者模式,依次点 Network -> Doc -> Headers-> cookie。复制 Cookie 字符串;
  4. 获取NotionToken

  5. 复制这个Notion模板,删掉所有的数据,并点击右上角设置,Connections添加你创建的Integration。

  6. 获取NotionDatabaseID

  7. 在Github的Secrets中添加以下变量

    • 打开你fork的工程,点击Settings->Secrets and variables->New repository secret
    • 添加以下变量
      • WEREAD_COOKIE
      • NOTION_TOKEN
      • NOTION_DATABASE_ID

About

将微信读书划线同步到Notion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%