Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

音视频资源将不再使用代理下载了,将由前端直接进行下载(配合浏览器插件) #25

Closed
jooooock opened this issue Oct 20, 2024 · 1 comment
Labels

Comments

@jooooock
Copy link
Owner

jooooock commented Oct 20, 2024

随着使用人数的增多,免费下载流量额度已经完全不够用了,因此进行了重新思考:

当初引入代理的主要目的是为了前端下载资源时避免出现跨域问题,但是解决跨域还有其他方式,比如用浏览器插件等,这样服务器的流量会大大降低(只需要获取文章列表等数据接口的流量,不需要考虑资源下载的流量,视频也将可以下载高清视频)

基于以上考虑,后续音视频资源将不再使用代理服务来下载,而是配合浏览器插件解决跨域问题

这里推荐 https://modheader.com 插件,添加2条规则和一个过滤器:

img

@jooooock jooooock pinned this issue Oct 20, 2024
@jooooock
Copy link
Owner Author

jooooock commented Oct 21, 2024

插件配置如下,可直接进行导入使用

[
  {
    "headers": [
      {
        "appendMode": false,
        "enabled": true,
        "name": "Referer",
        "value": "https://mp.weixin.qq.com/"
      }
    ],
    "initiatorDomainFilters": [
      {
        "domain": "wechat-article-exporter.deno.dev",
        "enabled": true
      },
      {
        "domain": "localhost",
        "enabled": true
      }
    ],
    "respHeaders": [
      {
        "appendMode": false,
        "enabled": true,
        "name": "Access-Control-Allow-Origin",
        "value": "*"
      }
    ],
    "shortTitle": "1",
    "title": "公众号文章导出",
    "version": 2
  }
]

@jooooock jooooock changed the title 注意!后续将不再使用代理下载资源了,资源将由前端直接进行下载(配合浏览器插件) 音视频资源将不再使用代理下载了,将由前端直接进行下载(配合浏览器插件) Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant