V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cooder
V2EX  ›  分享发现

免费、开源的微信公众号订阅方式,支持私有化部署、微信公众号 RSS 生成

  •  3
     
  •   cooder · 58 天前 · 7774 次点击
    这是一个创建于 58 天前的主题,其中的信息可能已经有所发展或是发生改变。

    WeWe RSS - 更好的微信公众号订阅方式。

    主界面

    GitHub 地址

    https://github.com/cooderl/wewe-rss

    文档还在完善中,各位老铁如果觉得不错,点点关注,点点赞~

    第 1 条附言  ·  58 天前
    支持 docker compose 部署了!

    version: '3.9'

    services:
    db:
    image: mysql:latest
    command: --default-authentication-plugin=mysql_native_password
    environment:
    # 请修改为自己的密码
    MYSQL_ROOT_PASSWORD: 123456
    TZ: 'Asia/Shanghai'
    MYSQL_DATABASE: 'wewe-rss'
    # ports:
    # - 13306:3306
    volumes:
    - db_data:/var/lib/mysql
    healthcheck:
    test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
    timeout: 45s
    interval: 10s
    retries: 10

    server:
    image: cooderl/wewe-rss-server:latest
    ports:
    - 4000:4000
    depends_on:
    db:
    condition: service_healthy
    environment:
    # 数据库连接地址
    - DATABASE_URL=mysql://root:123456@db:3306/wewe-rss?schema=public&connect_timeout=30&pool_timeout=30&socket_timeout=30
    # 服务接口请求授权码
    - AUTH_CODE="123567"
    # 服务接口请求限制,每分钟请求次数
    - MAX_REQUEST_PER_MINUTE=60
    # 外网访问时,需设置为服务器的公网 IP 或者域名地址
    - SERVER_ORIGIN_URL=http://localhost:4000

    web:
    image: cooderl/wewe-rss-web:latest
    ports:
    - 3000:3000
    environment:
    # 同 SERVER_ORIGIN_URL
    - NEXT_PUBLIC_SERVER_ORIGIN_URL=http://localhost:4000

    networks:
    wewe-rss:

    volumes:
    db_data:
    29 条回复    2024-03-23 08:31:52 +08:00
    LeslieLeung
        1
    LeslieLeung  
       58 天前
    看起来后期能支持全文阅读的样子,已经 star 支持。

    话说之前有过很多,例如基于爬虫,基于安卓采集器这些的方法,最后好像都避免不了失效。
    cooder
        2
    cooder  
    OP
       58 天前
    @LeslieLeung 感谢支持。这个基于微信读书同步公众号文章,我自己稳定使用几年了
    cue
        3
    cue  
       58 天前 via iPhone
    等 docker
    zsanshao
        4
    zsanshao  
       58 天前
    已 star ,希望尽早上 docker
    shuxhan
        5
    shuxhan  
       58 天前
    已 star ,等一个 docker 部署命令
    s0nd9r
        6
    s0nd9r  
       58 天前
    看着不错,本地搭个玩玩
    cooder
        7
    cooder  
    OP
       58 天前
    @cue
    @zsanshao
    @shuxhan

    docker 加上了
    july1995
        8
    july1995  
       58 天前
    支持一下 已 star
    barfi1316
        9
    barfi1316  
       57 天前
    clone 已经在本地跑起来了,生成的 rss 导入到 NetNewsWire 里,文章列表是空的呀。
    jeanz
        10
    jeanz  
       57 天前 via Android
    后续能支持把 MySQL 换成 sqllite 吗
    cooder
        11
    cooder  
    OP
       57 天前
    @jeanz 可以的,我抽空改一下打个镜像
    cooder
        12
    cooder  
    OP
       57 天前
    @barfi1316 这..我看看咋回事
    cooder
        13
    cooder  
    OP
       57 天前
    @barfi1316 拉一下最新代码试试
    Alethea
        14
    Alethea  
       57 天前
    看了一下 server 的代码,好像是转发了 https://weread.111965.xyz 的请求,考虑开源一下服务器的这个代码吗?
    barfi1316
        15
    barfi1316  
       56 天前
    @cooder 更新了,还是没有。
    @Alethea 同问。
    xiaozhubin
        16
    xiaozhubin  
       56 天前
    以前直接用过微信读书订阅公众号,好像公众号文章更新不是实时的?
    不过,既然都用 rss 了,实不实时也无所谓了。周末试一下。
    ahsuia
        17
    ahsuia  
       56 天前
    docker compose 部署的时候出现 werss-web-1 出现如下问题:

    > [email protected] start
    > next start
    ▲ Next.js 14.1.0
    - Local: http://localhost:3000
    Error: Specified basePath has to start with a /, found "'/'"
    at assignDefaults (/app/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/config.js:308:19)
    at loadConfig (/app/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/config.js:768:32)
    at async initialize (/app/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js:51:20)
    at async Server.<anonymous> (/app/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/lib/start-server.js:246:36)
    Error: Specified basePath has to start with a /, found "'/'"
    at assignDefaults (/app/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/config.js:308:19)
    at loadConfig (/app/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/config.js:768:32)
    at async initialize (/app/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/lib/router-server.js:51:20)
    at async Server.<anonymous> (/app/web/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/next/dist/server/lib/start-server.js:246:36)
    ahsuia
        18
    ahsuia  
       56 天前
    @ahsuia 按楼主 docker-compose.yml 的文件部署就行,github 上拉下来的 docker-compose.yml 里有个 base_path: '/',这一行注释掉。运行正常。
    另,领主可否考虑加一个打标签功能,用来分类不同的公众号
    balancircle
        19
    balancircle  
       56 天前
    可以粘个正确格式的吗?想要小手一粘就能用的那种 😁
    cooder
        20
    cooder  
    OP
       56 天前
    @ahsuia nextjs 打包的镜像问题太多,去掉了。换了新的镜像,看一下 readme
    cooder
        21
    cooder  
    OP
       56 天前
    @balancircle

    ```yaml
    version: '3.9'

    services:
    db:
    image: mysql:latest
    command: --default-authentication-plugin=mysql_native_password
    environment:
    # 请修改为自己的密码
    MYSQL_ROOT_PASSWORD: 123456
    TZ: 'Asia/Shanghai'
    MYSQL_DATABASE: 'wewe-rss'
    # ports:
    # - 13306:3306
    volumes:
    - db_data:/var/lib/mysql
    healthcheck:
    test: ['CMD', 'mysqladmin', 'ping', '-h', 'localhost']
    timeout: 45s
    interval: 10s
    retries: 10

    server:
    image: cooderl/wewe-rss:latest
    ports:
    - 4000:4000
    depends_on:
    db:
    condition: service_healthy
    environment:
    # 数据库连接地址
    - DATABASE_URL=mysql://root:123456@db:3306/wewe-rss?schema=public&connect_timeout=30&pool_timeout=30&socket_timeout=30
    # 服务接口请求授权码
    - AUTH_CODE=123567
    # 提取全文内容模式
    # - FEED_MODE=fulltext
    # 服务接口请求限制,每分钟请求次数
    - MAX_REQUEST_PER_MINUTE=60
    # 外网访问时,需设置为服务器的公网 IP 或者域名地址
    - SERVER_ORIGIN_URL=http://localhost:4000

    networks:
    wewe-rss:

    volumes:
    db_data:

    ```
    vicat
        22
    vicat  
       52 天前
    你做的好啊 op ,你做的太好了
    JohnChang
        23
    JohnChang  
       49 天前
    请教 OP

    1 、在 Github 分叉。
    2 、直接在 zeabur 选择自己的分叉部署。

    显示部署成功,但是访问 url 显示
    502 : SERVICE_UNAVAILABLE
    Code: SERVICE_UNAVAILABLE
    ID: hkg1::6501b857-bec6-4140-8de5-b8e425c9043a


    是需要什么额外的设置吗?

    感觉很实用但是没法使用有点抓耳挠腮。
    JohnChang
        24
    JohnChang  
       49 天前
    用 docker 部署成功了,估计是因为 zeabur 没有 mysql ?
    toyqiu
        25
    toyqiu  
       49 天前
    @JohnChang 部署成功,可以登陆账号吗?
    JohnChang
        26
    JohnChang  
       49 天前
    @toyqiu #25 可以呀
    icecream
        27
    icecream  
       38 天前
    id(237051097): WeReadError401
    icecream
        28
    icecream  
       38 天前
    点了立即更新,也不会拉取最新的文章是什么原因
    dvbs2000
        29
    dvbs2000  
       35 天前
    建议 op 做一个 online 缓存中心,把用户的更新需求缓存起来,用户申请更新的时候如果缓存里有,就不必从服务器申请,直接推给用户
    这样可以大幅减少被 ban 的概率
    可以有更好的用户体验

    另外,缓存库也是有价值的。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2877 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 07:15 · PVG 15:15 · LAX 00:15 · JFK 03:15
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.