An open API service indexing awesome lists of open source software.

https://github.com/dokterbob/youtube2ipfs

Download videos from YouTube (and similar video platforms) and add them to IPFS.
https://github.com/dokterbob/youtube2ipfs

Last synced: 7 months ago
JSON representation

Download videos from YouTube (and similar video platforms) and add them to IPFS.

Awesome Lists containing this project

README

          

# youtube2ipfs
Download videos from YouTube (and similar video platforms) and add them to IPFS.

Based on [youtube-dl](https://ytdl-org.github.io/youtube-dl/) and [py-ipfs-http-client](https://github.com/ipfs-shipyard/py-ipfs-http-client).

## Requirements
* [ffmpeg](https://www.ffmpeg.org/)
* [Python 3.8 or later](https://www.python.org/downloads/)
* [IPFS](https://docs.ipfs.io/install/)

## Installation
Latest published version:
```sh
$ pip install youtube2ipfs
```

Bleeding edge:
```sh
$ pip install git+https://github.com/dokterbob/youtube2ipfs
```

## Usage
First, make sure you have IPFS running. Then:

```sh
$ youtube2ipfs https://www.youtube.com/watch?v=FHH6hIc2GyE
QmaqcMNVRvet1ZfRFoEBkGaEVLHKTUtkgX3139gpPc1zve
```

You can view the result through the IPFS gateway: `https://gateway.ipfs.io/ipfs/QmaqcMNVRvet1ZfRFoEBkGaEVLHKTUtkgX3139gpPc1zve`

It accepts multiple URL's, as well as channels and playlists. Multiple files will be added to the same top-level directory. Subtitles will also be downloaded and metadata is added to the video file.

For more details, use the `--verbose` or `-v` option (once or twice). A custom IPFS node can also be specified.