Git Product home page Git Product logo

download-webhook's Introduction

download-webhook

Download files through webhook

Introduction

download-webhook is a tiny webhook server to download media contents (videos, audios, images) from the Web to your VPS or NAS through Webhook(post request) handily, it supports download from all you-get supported sites and exact resource url.

What you-get can do for you:

Installation

Docker

docker run -d -p 3000:3000 -v downloads:/app/downloads -e SECRET=mysecret -e PORT=3000 diygod/download-webhook

Manual

Prerequisites:

yarn
yarn start

or

npm install
npm run start

Getting Started

Try it yourself

curl -X POST -H "Content-Type:application/json" -d '{"secret": "mysecret", "path": "mypath", "name": "myvideo", "url": "https://www.bilibili.com/video/av45364988", "playlist": "1"}' http://127.0.0.1:3000

Work with IFTTT and RSSHub

For example:

Audo download my liked video on bilibili

download-webhook's People

Contributors

bottomash avatar diygod avatar howel52 avatar ljason77 avatar prnake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

download-webhook's Issues

文档 Manual 部分与 yarn.lock 及 Dockerfile 不一致

存在 yarn.lock 文件,
同时 Dockerfile 走的也是 yarn,

RUN apt-get update \
 && apt-get install -y ffmpeg \
 && pip3 install --no-cache-dir you-get \
 && apt-get install -y wget --no-install-recommends \
 && yarn;

是否应该将 readme 中 Manual 部分 改为

yarn
yarn start

用来下载西瓜视频的时候会出错。

进入docker后。手动运行you-get
/usr/local/bin/you-get ‘https://www.ixigua.com/7135772985985597993’ 出现如下错误

you-get: [error] oops, the current environment does not seem to support Unicode.
you-get: please set it to a UTF-8-aware locale first,
you-get: so as to save the video (with some Unicode characters) correctly.
you-get: you can do it like this:
you-get: (Windows) % chcp 65001
you-get: (Linux) $ LC_CTYPE=en_US.UTF-8


docker exec -it download-webhook /usr/local/bin/you-get https://www.ixigua.com/7135772985985597993 --debug
for c in resp.getheader('Set-Cookie').split("httponly,"):
AttributeError: 'NoneType' object has no attribute 'split'


解决办法。内置的you-get版本太低。更新下即可

运行:docker exec -it download-webhook pip3 install --upgrade you-get
把download-webhook换成你对应的容器名字

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.