Download videos from YouTube (and similar video platforms) and add them to IPFS.
Based on youtube-dl and py-ipfs-http-client.
Latest published version:
$ pip install youtube2ipfs
Bleeding edge:
$ pip install git+https://github.com/dokterbob/youtube2ipfs
First, make sure you have IPFS running. Then:
$ 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.