# GitHub相关

## 获取RAW地址

在群组里面或者网络上寻找一些QX相关资源时候，经常需要用到GitHub，里面拥有大量收集整理好的规则分流、脚本等资源，对于一些新手，别人在群组里面给出一个GitHub相关链接时候，如何分辨这个链接是直接可以使用还是需要点击进去自己查找的可以说是相当重要的一个环节

QX等代理软件在添加远程资源(分流规则/重写/脚本)时，需要使用RAW格式的地址。以下方的链接举例(这是个网页，不是真正能使用的资源链接)：`https://github.com/blackmatrix7/ios_rule_script/`<mark style="color:red;">`blob`</mark>`/master/rule/QuantumultX/12306/12306.list`

\
例如在末尾添加`?raw=ture`⁠：`https://github.com/blackmatrix7/ios_rule_script/blob/master/rule/QuantumultX/12306/12306.list?raw=ture`

或者直接点击`raw`或者`view`⁠使用跳转后的链接：`https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/QuantumultX/12306/12306.list`&#x20;

\
或者将链接里的`blob`⁠修改为`raw`

`https://github.com/blackmatrix7/ios_rule_script/raw/master/rule/QuantumultX/12306/12306.list`

* PC网页获取方法：

<figure><img src="/files/OKEwMOzsIkBd5dU4RmDh" alt=""><figcaption></figcaption></figure>

* 手机版网页获取方法：

<figure><img src="/files/IOsmV44Qx7CngxKqvXqg" alt=""><figcaption></figcaption></figure>

* [blackmatrix7](https://github.com/blackmatrix7/ios_rule_script/tree/master/rule)的分流规则通常会直接贴出raw格式地址，找到具体的项目，下方就raw格式的链接

<figure><img src="/files/jJrtWxx9cC7LU8AzLhIs" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
使用blackmatrix7的规则和重写时候，请仔细阅读下方的使用方法。
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qx.atlucky.me/github-xiang-guan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
