SuperAPI AI 工具集

medium-paywall-bypass

写作与研究

查看项目

更新于 10-16 02:17

技能介绍

用途

Medium Paywall Bypass 用于在用户分享 Medium 付费墙文章链接、希望阅读全文时,通过免费镜像服务获取文章内容。它也适用于 Medium 托管的出版物文章。

主要能力

该技能按优先级依次尝试多个免费镜像服务,直到其中一个成功返回内容。

服务优先级如下:

服务 URL 模式 WebFetch curl 备注
Freedium https://freedium.cfd/{encoded_url} 是 是 最佳选项,直接返回内容
Archive.today https://archive.today/latest/{raw_url} 否 可能 通常需要验证码
RemovePaywalls https://removepaywalls.com/{raw_url} 否 否 仅重定向页面,需要浏览器
ReadMedium https://readmedium.com/en/{encoded_url} 否 否 程序化访问返回 403

其中:

  • {encoded_url} = URL 编码后的地址(斜杠变为 %2F,@ 变为 %40 等)
  • {raw_url} = 原始 URL,保持原样

对于 Claude Code:通过 WebFetch 使用 Freedium。其他服务需要浏览器交互。

使用方式

工作流程:

  1. 用户提供 Medium URL
  2. 首先通过 WebFetch 尝试 Freedium
  3. 如果被阻止或返回为空,尝试下一个服务
  4. 提取并呈现文章内容

示例用法:

给定:https://medium.com/@user/some-article-abc123

WebFetch(推荐):

URL: https://freedium.cfd/https%3A%2F%2Fmedium.com%2F%40user%2Fsome-article-abc123 Prompt: Extract the full article content

curl 备用方案:

curl -sL "https://freedium.cfd/https%3A%2F%2Fmedium.com%2F%40user%2Fsome-article-abc123"

适用场景

以下域名使用 Medium 的付费墙系统:

  • medium.com, *.medium.com
  • towardsdatascience.com
  • betterprogramming.pub
  • levelup.gitconnected.com
  • javascript.plainenglish.io
  • uxdesign.cc
  • hackernoon.com
  • codeburst.io
  • itnext.io
  • proandroiddev.com
  • infosecwriteups.com

限制与常见问题

问题 解决方案
Freedium 宕机 尝试替代镜像:freedium-mirror.cfd
文章未找到 文章可能太新,尚未被缓存
HTML 乱码 使用 WebFetch 并提示:"Extract the article text and format as markdown"
403/被阻止 尝试 curl 并设置 dangerouslyDisableSandbox: true

快速参考:

URL encoding in Python

from urllib.parse import quote encoded = quote(url, safe='')

For WebFetch tool

freedium_url = f"https://freedium.cfd/{quote(medium_url, safe='')}"