banner
DIYgod

Hi, DIYgod

写代码是热爱,写到世界充满爱!
github
twitter
follow
bilibili
telegram
email
steam
playstation
nintendo switch

Download my Bilibili coin-throwing video gracefully.

Downloading Bilibili videos is very simple, just one line of command with you-get. But I'm so lazy that I don't even want to type the command. It would be great if NAS could download it by itself after throwing a coin.

Concept#

The whole concept is like this: Coin throwing -> RSS update -> IFTTT triggers Webhook -> Server downloads.

Coin throwing to RSS update can be directly implemented using RSSHub. RSS update to triggering Webhook can also be configured directly in IFTTT. The only missing part in this whole domino is from Webhook to download.

Action#

So I wrote a simple tool - download-webhook. It can trigger the server to execute you-get and download videos to the specified directory through a simple post request.

Result#

  1. Throw a coin to the Biting Cat

download-webhook1

  1. RSS update

download-webhook2

  1. IFTTT triggers

download-webhook3

  1. download-webhook receives download request

download-webhook4

  1. Download completed

download-webhook5

Further#

The above also applies to automatically downloading YouTube, Instagram, Tumblr videos, Netease Cloud Music songs, etc., as long as RSSHub and you-get support it.

In addition, for images, you can directly pass the image address as a parameter in the Webhook URL to download it. So it is also easy to automatically download Bing's daily wallpapers, or even Telegram's NSFW channels (I won't recommend it here).

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.