Skip to main content

A powerful 139 Cloud link parser and HLS stream aggregator.

Project description

CloudHub-139 (139 云影聚合中心)

这是一个专门为中国移动 139 云盘打造的资源解析与播放工具。它不仅解决了 139 云盘 M3U8 播放列表在第三方播放器中因相对路径和鉴权导致的失败问题,还提供了一个美观、强大的 Web 管理界面。

🎬 项目演示

1. 主页概览与资源管理

主页概览 简洁直观的仪表盘,支持实时日志监控与资源状态展示。

2. 全库精准搜索

全库搜索 跨分享库的全局搜索,支持关键词匹配与文件夹定位。

3. 沉浸式播放界面

播放界面 集成 HLS.js 的在线播放器,支持 1080P 高清解析与无缝预览。

4. 核心功能演示

抓取并播放演示 全自动抓取、解析并开始 HLS 播放的全过程。

5. 极速播放体验

搜索并播放演示 流畅的在线播放体验,支持重写 HLS 鉴权链接。

🌟 核心功能

  • 全库搜索引擎:跨分享链接的全局搜索,支持关键词检索文件及文件夹,并可一键定位并高亮显示目标。
  • M3U8 重写引擎:自动将相对路径转换为带签名的绝对路径 URL,确保 HLS 视频可全局播放。
  • Web 可视化仪表盘:内置 Flask Web 服务器,提供资源概览、库总大小计算、文件夹深度导航及在线播放功能。
  • 生产级稳定性:内置 Waitress WSGI 服务器,支持生产环境稳定运行。
  • 命令行控制:支持丰富的启动参数,动态调整端口、地址及抓取频率。
  • 智能抓取与断点保护:支持多级目录深度递归抓取,并实现增量保存,防止大批量任务中途失败。
  • 本地 JSON 导入/导出:支持通过 Web 界面直接上传 fetched_results.json,实现资源元数据的快速迁移与共享。
  • 实时日志终端:基于 SSE 技术,在 Web 页面实时展示抓取进度及后台日志,状态一目了然。

🛠️ 环境要求

  • Python 3.8+
  • 官方安装:
    pip install cloudhub-139
    

🚀 快速开始

1. 配置环境

在项目根目录下创建 .env 文件,并填写账号信息(也可在启动时通过参数传入):

YUN_ACCOUNT="你的手机号"
YUN_AUTH_TOKEN="你的授权令牌"

2. 启动服务

安装后直接运行 cloudhub-139 即可开启生产级服务:

cloudhub-139

🎁 社区资源共享

为了让您快速体验,本项目提供了一个精心整理的影视库初始包(包含热门 4K 资源索引)。

  1. 获取资源包:下载仓库中的 assets/139.zip
  2. 一键导入
    cloudhub-139 --import-lib assets/139.zip
    

导入完成后重新启动服务,即可直接在主页看到海量影视库并进行全局搜索。

⚙️ 高级启动参数

支持通过命令行参数灵活配置:

参数 说明 默认值
--port 监听端口 5000
--host 监听地址 0.0.0.0
--interval 抓取请求间隔(秒) 2.0
--account 手机账号 .env 读取
--token 鉴权 Token .env 读取
--full-scan 保留全量原始数据 False
--export 导出库数据为压缩包 -
--import-lib 从压缩包导入/合并库 -
--debug 开启调试模式 False

示例:

cloudhub-139 --port 8080 --interval 3.5 --debug

📂 项目结构

  • pyproject.toml: PyPI 打包配置文件。
  • src/cloudhub/: 源代码包。
    • app.py: Flask 路由、抓取逻辑、搜索引擎与启动入口。
    • client.py: 139 云盘 API 封装。
    • crypto.py: AES 加解密核心实现。
  • links.json: 存储所有分享链接及其元数据。
  • data/: 存放抓取后的目录结构缓存(JSON)。
  • assets/: README 资源。

📝 技术亮点

项目核心在于 rewriteM3U8 逻辑与高效的递归抓取。通过实时拦截并注入最新的鉴权签名,解决了 139 云盘 HLS 切片地址失效的问题。同时,系统内置了 Waitress 生产级服务器、请求频率限制与增量写盘策略,确保了系统在处理超大资源库时的稳定性和可靠性。


Created with ❤️ for 139 Cloud Integration.

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

cloudhub_139-1.0.3.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

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

cloudhub_139-1.0.3-py3-none-any.whl (27.9 kB view details)

Uploaded Python 3

File details

Details for the file cloudhub_139-1.0.3.tar.gz.

File metadata

  • Download URL: cloudhub_139-1.0.3.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cloudhub_139-1.0.3.tar.gz
Algorithm Hash digest
SHA256 28b682232ee1e4b721ac8d53f255e55d85c9ff7b21f431e0f98a25ce15349470
MD5 c6cc6da29c54b66a497440fdbc7dc77f
BLAKE2b-256 7c00f23ee5745eb69bf665a62fe75491da50620a94198161757d9e32e7b4fce3

See more details on using hashes here.

Provenance

The following attestation bundles were made for cloudhub_139-1.0.3.tar.gz:

Publisher: python-publish.yml on kyle-meng/CloudHub-139

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cloudhub_139-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: cloudhub_139-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 27.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for cloudhub_139-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 79bd669796b36a7e9c1c3639d343190e20089a4113aa8695dacaf0b7df025690
MD5 a0deac4d485f8b6bd2f39fa6e161f65c
BLAKE2b-256 e6fe0683f878a8f861e14d3d0a96a960478c316045c74359dc4036cee35c2a18

See more details on using hashes here.

Provenance

The following attestation bundles were made for cloudhub_139-1.0.3-py3-none-any.whl:

Publisher: python-publish.yml on kyle-meng/CloudHub-139

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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