[FEATURE] Add support for GitHub raw file #4

Closed
opened 2026-10-07 21:20:49 +00:00 by xixu-me · 1 comment
Owner

问题描述

我想通过 xget 加速 GitHub raw file 的获取(通常用于获取一些 online script)。

e.g.

https://raw.githubusercontent.com/MooreThreads/ollama-musa/refs/heads/main/scripts/install.sh

解决方案描述

转换器现在无法转类似的 URL,需要增加相应的支持。

功能类别

新平台支持

优先级

中 - 会很有用

替代方案

No response

使用场景

获取一些 online script 会非常有用。

实现想法

No response

涉及平台

GitHub

附加信息

No response

确认

  • 我已经搜索了现有的 issues,确认这不是重复请求
  • 我已经阅读了存储库文档,确认此功能尚未存在
  • 这个功能符合存储库的目标和范围

GitHub 来源:https://github.com/xixu-me/xget/issues/24
作者:yeahdongcn · 创建时间:2025-08-20T03:08:35Z

### 问题描述 我想通过 xget 加速 GitHub raw file 的获取(通常用于获取一些 online script)。 e.g. https://raw.githubusercontent.com/MooreThreads/ollama-musa/refs/heads/main/scripts/install.sh ### 解决方案描述 转换器现在无法转类似的 URL,需要增加相应的支持。 ### 功能类别 新平台支持 ### 优先级 中 - 会很有用 ### 替代方案 _No response_ ### 使用场景 获取一些 online script 会非常有用。 ### 实现想法 _No response_ ### 涉及平台 GitHub ### 附加信息 _No response_ ### 确认 - [x] 我已经搜索了现有的 issues,确认这不是重复请求 - [x] 我已经阅读了存储库文档,确认此功能尚未存在 - [x] 这个功能符合存储库的目标和范围 --- GitHub 来源:https://github.com/xixu-me/xget/issues/24 作者:yeahdongcn · 创建时间:2025-08-20T03:08:35Z <!-- github-archive:3336394713 -->
xixu-me added the enhancement label 2026-10-07 21:20:49 +00:00
Author
Owner

已经在 Xget URL 转换器中实现了一个相关的增强功能,可以自动处理 GitHub blob URL 到 raw URL 的转换

🎯 新功能特点

现在转换器可以智能地将 GitHub blob URL 自动转换为 raw URL,然后生成加速的 Xget 格式链接:

输入 (blob URL):

https://github.com/MooreThreads/ollama-musa/blob/main/scripts/install.sh

自动转换为 raw URL:

https://github.com/MooreThreads/ollama-musa/raw/refs/heads/main/scripts/install.sh

最终加速的 Xget 格式:

https://xget.xi-xu.me/gh/MooreThreads/ollama-musa/raw/refs/heads/main/scripts/install.sh

✨ 使用场景

这对于用户来说非常方便,因为:

  1. 直接复制 GitHub 文件链接:用户可以直接从 GitHub 网页复制 blob URL
  2. 自动格式转换:无需手动修改 URL 结构
  3. 一步到位:直接获得可用的 Xget 加速链接

这个功能完美地补充了本 issue 中提到的需求,让用户使用 Xget 获取 GitHub 在线脚本变得更加便捷


GitHub 来源:https://github.com/xixu-me/xget/issues/24#issuecomment-3266164080
作者:xixu-me · 创建时间:2025-09-08T12:51:59Z

已经在 [Xget URL 转换器](https://xuc.xi-xu.me)中实现了一个相关的增强功能,可以自动处理 GitHub blob URL 到 raw URL 的转换 ### 🎯 新功能特点 现在转换器可以智能地将 GitHub blob URL 自动转换为 raw URL,然后生成加速的 Xget 格式链接: **输入 (blob URL)**: ``` https://github.com/MooreThreads/ollama-musa/blob/main/scripts/install.sh ``` **自动转换为 raw URL**: ``` https://github.com/MooreThreads/ollama-musa/raw/refs/heads/main/scripts/install.sh ``` **最终加速的 Xget 格式**: ``` https://xget.xi-xu.me/gh/MooreThreads/ollama-musa/raw/refs/heads/main/scripts/install.sh ``` ### ✨ 使用场景 这对于用户来说非常方便,因为: 1. **直接复制 GitHub 文件链接**:用户可以直接从 GitHub 网页复制 blob URL 2. **自动格式转换**:无需手动修改 URL 结构 3. **一步到位**:直接获得可用的 Xget 加速链接 这个功能完美地补充了本 issue 中提到的需求,让用户使用 Xget 获取 GitHub 在线脚本变得更加便捷 --- GitHub 来源:https://github.com/xixu-me/xget/issues/24#issuecomment-3266164080 作者:xixu-me · 创建时间:2025-09-08T12:51:59Z <!-- github-archive:3266164080 -->
Sign in to join this conversation.