Comments (9)
main.py不要动。是修改providers.json文件。
{
"subscribes":[
{
"url": "订阅地址",
"tag": "机场1",
"enabled": true,
"emoji": 1,
"prefix": "",
"User-Agent":"clashmeta"
},
{
"url": "订阅地址",
"tag": "机场2",
"enabled": false,
"emoji": 0,
"prefix": "❤️机场前缀 - ",
"User-Agent":"clashmeta"
}
],
"auto_set_outbounds_dns":{
"proxy": "",
"direct": ""
},
"save_config_path": "D:\/singbox\/config.json",
"auto_backup": false,
"exclude_protocol": "ssr",
"config_template": "",
"Only-nodes": false
}
from sing-box-subscribe.
现在加了判断条件,应该可以了
from sing-box-subscribe.
现在加了判断条件,应该可以了
谢谢大佬的辛勤付出,替换了大佬修改后的vmess.py,再次转换订阅,vmess节点已经正常了。大佬解决问题的速度杠杠的!!!
from sing-box-subscribe.
大佬,能不能教一下怎么把这个项目部署到cloudflare page,这个生成的链接,可以直连,我用部署到vercel的步骤照葫芦画瓢,总是不成功。只能把网页部署成了,但是python功能部分都不会弄,https://c44388e0.sing-box-subscribe-exl.pages.dev/这是我生成的连接,您帮我看看到底错在哪里了,谢谢了
from sing-box-subscribe.
cloudflare不支持python
from sing-box-subscribe.
大佬,电脑端用命令生成的congfig.json的路径能不能修改?我的想法是把路径改到singbox核心文件夹,直接覆盖旧的congfig.json
from sing-box-subscribe.
上面截图意思是保存在D:\singbox文件夹里
from sing-box-subscribe.
大佬,不会弄啊,是修改main.py里的save_config那部分吧,但是我python基础为0,真的无从下手。问了GPT,生成了根本运行不了,。你能在百忙中有时间能帮我改一下吗?
下面是你的源码,你帮我修改一下,行不,万分感谢
def save_config(path, nodes):
if 'auto_backup' in providers and providers['auto_backup']:
now = datetime.now().strftime('%Y%m%d%H%M%S')
if os.path.exists(path):
os.rename(path, f'{path}.{now}.bak')
if os.path.exists(path):
os.remove(path)
print(f"已删除文件,并重新保存:\033[33m{path}\033[0m")
print(f"File cấu hình đã được lưu vào: \033[33m{path}\033[0m")
else:
print(f"文件不存在,正在保存:\033[33m{path}\033[0m")
print(f"File không tồn tại, đang lưu tại: \033[33m{path}\033[0m")
tool.saveFile(path,json.dumps(nodes, indent=2, ensure_ascii=False))
from sing-box-subscribe.
main.py不要动。是修改providers.json文件。
{ "subscribes":[ { "url": "订阅地址", "tag": "机场1", "enabled": true, "emoji": 1, "prefix": "", "User-Agent":"clashmeta" }, { "url": "订阅地址", "tag": "机场2", "enabled": false, "emoji": 0, "prefix": "❤️机场前缀 - ", "User-Agent":"clashmeta" } ], "auto_set_outbounds_dns":{ "proxy": "", "direct": "" }, "save_config_path": "D:\/singbox\/config.json", "auto_backup": false, "exclude_protocol": "ssr", "config_template": "", "Only-nodes": false }
谢谢大佬,已经好了,大佬技术很硬!!!
from sing-box-subscribe.
Related Issues (20)
- 使用Docker的本地问题 HOT 1
- 本地安装要如何自动运行 HOT 7
- 是否可以修改远程配置的模版,改用自己Fork后的模版 HOT 4
- 改进:能否考虑从机场导入节点时就排除一部分节点。 HOT 13
- Unable to deploy the project to the vercel HOT 10
- 关于纯V6节点,订阅转换后不支持 HOT 2
- 使用https://xxxxxxx.vercel.app/config/+订阅地址的方式,是否支持多个订阅地址分别加tag的形式 HOT 3
- 新模版遇到点问题 HOT 2
- 我希望默认DNS是国外的而不是国内的,有配置项可以修改吗? HOT 1
- 能否讲一下怎么设置链式代理? HOT 1
- 改进: Vercel 免费从10s升级到60s
- 请问我的机场提供singbox订阅链接,可以把多个singbox订阅链接合并吗,提取出来节点用自己的规则 HOT 8
- 对于多个要转换的文件,其中一个若发生错误直接跳过并进行下一步,而不是只要其中一个文件转换错误就退出执行了 HOT 3
- 新更新的模板出现错误。需清理缓存 HOT 4
- clash格式的UoT配置在转换时丢失 HOT 6
- 请问可以使用cloudflare pages部署吗 HOT 1
- 请问使用本地部署怎样通过url进行转换 HOT 7
- parsers/clash2base64.py 的 wireguard 部分的修改建议 HOT 2
- 作者你好,网页端的默认 `providers.json` 信息需要在哪里修改?我直接修改 `providers.json` 并没有生效 HOT 6
- 相同的节点,转换完到客户端就会报错。 HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sing-box-subscribe.