Skip to main content

免费机场/VPN 订阅自动获取工具 - Clash / V2Ray / Trojan / SSR 订阅链接自动抓取

Project description

✈️ get_subscribe

免费机场 / 免费 VPN — 自动获取 Clash / V2Ray / Trojan / SSR 订阅链接,间隔 12 小时持续更新

PyPI Python License


⚠️ 免责声明

  • 链接来自网络,仅供学习研究使用
  • 使用前请务必遵守当地法律法规
  • 本项目不对任何使用后果负责

🌟 功能特性

  • 自动抓取:从公开 RSS 源定时抓取最新免费订阅
  • 多协议支持:Clash 配置(.yml)、V2Ray 文本(.txt
  • 变更检测:仅在内容实际变化时记录日志,避免重复通知
  • 灵活使用:pip 安装 CLI 一键运行,或作为 Python 库集成
  • 日志记录:按月自动归档运行日志,便于排查问题

🚀 快速上手

pip 安装(推荐)

pip install get-subscribe
get-subscribe          # 一键运行

或从源码安装

git clone https://github.com/adminlove520/get_subscribe.git
cd get_subscribe
pip install -e .
get-subscribe

Python API

from get_subscribe import GetSubscribe

fetcher = GetSubscribe(subscribe_dir="./my_subs")
results = fetcher.run()
# results = {'v2ray': 200, 'clash': 200}

📁 输出文件

运行后保存在 subscribe/ 目录:

文件 协议 说明
clash.yml Clash.Meta 适用于 Clash Verge / Clash for Windows / ClashX
v2ray.txt VLESS / VMess 适用于 v2rayN / Qv2ray / Shadowrocket

快速订阅地址

Clash 订阅:https://git.io/emzclash
V2Ray 订阅:https://git.io/emzv2ray

GitHub Actions 每 12 小时自动更新,点击即可复制使用。


📱 各平台客户端配置

Windows

macOS

Android

iOS


⚙️ 配置与自定义

自定义订阅目录

fetcher = GetSubscribe(subscribe_dir="/path/to/your/subs")
fetcher.run()

仅检查(不保存文件)

fetcher = GetSubscribe(check_only=True)
fetcher.run()

与 cron 配合(Linux/macOS)定时运行

# 每 12 小时自动更新
crontab -e
# 添加:
0 */12 * * * /usr/local/bin/get-subscribe >> /var/log/subscribe.log 2>&1

GitHub Actions 自动部署

Fork 后开启 Actions,.github/workflows/ 中已包含定时任务配置。


🛠️ 开发

# 安装开发依赖
pip install -e ".[dev]"

# 构建发布包
python -m build

# 上传 PyPI(需配置 token)
twine upload dist/*

📝 License

MIT License · adminlove520

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

get_subscribe-1.0.19.tar.gz (23.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

get_subscribe-1.0.19-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file get_subscribe-1.0.19.tar.gz.

File metadata

  • Download URL: get_subscribe-1.0.19.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for get_subscribe-1.0.19.tar.gz
Algorithm Hash digest
SHA256 44035f4c3d9bccb5adb4e6e37cf3152dcbaa4b4c070dee4c9e3c1484907ba729
MD5 9078d71e2692cfc3f738f4c7537c9be3
BLAKE2b-256 fa23b65c584ae40e0a7222d00a9be8674c0556c6e3a824892432546cda7e1afb

See more details on using hashes here.

File details

Details for the file get_subscribe-1.0.19-py3-none-any.whl.

File metadata

  • Download URL: get_subscribe-1.0.19-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for get_subscribe-1.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 14d7debfb0feafdaba84713629b4667f8c1782a90a327dd26a39073b9446fac0
MD5 181cb3ca9d98c2bd02fcf01b03081fe8
BLAKE2b-256 baa24f26d4ee6e00c956762ebadc1d3766e6d2ea819a3282210e513221a1191c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page