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.
- Host: GitHub
- URL: https://github.com/dokterbob/youtube2ipfs
- Owner: dokterbob
- License: agpl-3.0
- Created: 2021-03-06T21:59:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-27T17:52:53.000Z (almost 4 years ago)
- Last Synced: 2024-12-21T08:34:33.142Z (11 months ago)
- Language: Python
- Size: 32.2 KB
- Stars: 21
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ipfs - youtube2ipfs - Download videos from YouTube (and similar video platforms) and add them to IPFS. (Tools)
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.