GithubHelp home page GithubHelp logo

yt2ipfs's Introduction

yt2ipfs - re-host youtube videos on ipfs

Only intended for use on videos you are allowed to download, such as your own or out of copyright.

Install

  • install ipfs (probably in your package manager)
  • install youtube-dl (probably in your package manager)
  • run ipfs daemon in the background
  • place yt2ipfs in your $PATH somewhere
  • test with yt2ipfs -h

Usage

> yt2ipfs --help
yt2ipfs [--api <ipfs-api-url>] <youtube-id-or-link>

Examples

Download a link

> yt2ipfs https://www.youtube.com/watch?v=vyRZBeMtkrA
using ipfs api at: /ip4/127.0.0.1/tcp/9095
cd temp dir: /tmp/yt2ipfs.2018-02-05T03:08:43Z.0sDA1j
downloading youtube video: https://www.youtube.com/watch?v=vyRZBeMtkrA
[youtube] vyRZBeMtkrA: Downloading webpage
[youtube] vyRZBeMtkrA: Downloading video info webpage
[youtube] vyRZBeMtkrA: Extracting video information
[download] Destination: Filecoin-Protocol-vyRZBeMtkrA.mp4
[download] 100% of 230.80MiB in 3:09
adding video to ipfs...done
local gateway: http://localhost:8080/ipfs/QmUhBnUYYywHqdHKy44zvbBpdrim4NGGZ2dntK8bTnohfT
global gateway: https://ipfs.io/ipfs/QmUhBnUYYywHqdHKy44zvbBpdrim4NGGZ2dntK8bTnohfT
cleaning up...done

Just the youtube id

yt2ipfs vyRZBeMtkrA

Use another ipfs API

yt2ipfs --api /ip4/127.0.0.1/tcp/9096 https://www.youtube.com/watch?v=vyRZBeMtkrA

LICENSE

MIT

yt2ipfs's People

Contributors

jbenet avatar

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.