nICEnnnnnnnLee / Help-me-download

MIT License
0 stars 0 forks source link

Help-me-download 
made by ButterAndButterfly
Butter, symbolizes Otaku; Butterfly, symbolizes the Great things.
Let's earn a world full of fantasy!

ReadMe ReadMe中文版

Fucntion

Let the github robots download the things you want, and then push it to the release assets.

How to config

{
    // default headers to download
    "headers":{
        "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0",
        "Accept": "*/*",
        "Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
        "Accept-Encoding": "gzip"
    },
    // release config, it must be diffrent from the former tasks
    "release_tag": "v1.0.0",
    "release_name": "v1.0.0",
    // the name of release assets
    "output": "test.zip",
    // tasks must be a array, even with a single task
    "tasks":[
        {
            "file_name": "test-40.jpg",
            "file_url":"https://avatars.githubusercontent.com/u/52323235?s=60&v=4",
            // optional; if headers appear, the default headers will be uneffective;
            "headers":{
                "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0",
                "Accept": "*/*",
                "Accept-Language": "zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2",
                "Accept-Encoding": "gzip, br"
            },
        },{
            "file_name": "test-60.jpg",
            "file_url":"https://avatars.githubusercontent.com/u/52323235?s=60&v=4"
        }
    ]
}

How to use

LICENSE

MIT