Git Product home page Git Product logo

streamlink's Introduction

About this fork

Since Nov 2019 third-party apps can not access private Twitch APIs anymore (issue #2680). Because of that streamlink has removed support for OAuth tokens in PR-2846. However, it is still possible to access private APIs by using first-party OAuth token that can be extracted from cookies.

This fork reintroduces --twitch-oauth-token parameter into newer versions of streamlink.

This change allows paid subscribers to watch and download private streams and VODs without ads.

Installation and configuration

  • Install this fork with pip (it will replace the original streamlink)

pip install git+https://github.com/TheDrHax/streamlink.git

  • Extract OAuth token from Twitch

    • Open Twitch in your favorite browser
    • Log in if you haven't already
    • Open developer tools (RMB โ†’ Inspect element or F12)
    • Type this command into JavaScript console: cookies['auth-token']
    • Console will output a single string - your OAuth token
    • Warning: Do not share your OAuth token - it grants almost full access to your account! I believe this is the reason why support for OAuth tokens was dropped in the original project.
  • Add --twitch-oauth-token=YOUR_TOKEN to your streamlink command

  • (optional) Add twitch-oauth-token=YOUR_TOKEN to your config file to avoid typing your token every time (see the docs below for more information)

Frequently asked questions

  • Q: Does OAuth token expire? If so, how long does it work for?

I have been using the same token for more than a year. I think it will work as long as you don't log out from the website or change your password.


Github build status codecov.io Backers on Open Collective Sponsors on Open Collective

Streamlink is a CLI utility which pipes video streams from various services into a video player, such as VLC.

The main purpose of streamlink is to avoid resource-heavy and unoptimized websites, while still allowing the user to enjoy various streamed content.

Streamlink is a fork of the Livestreamer project.

Please note that by using this application you're bypassing ads run by sites such as Twitch.tv. Please consider donating or paying for subscription services when they are available for the content you consume and enjoy.

Please refer to our documentation for different ways to install Streamlink:

Features

Streamlink is built upon a plugin system which allows support for new services to be easily added. Most of the big streaming services are supported, such as:

... and many more. A full list of plugins currently included can be found on the plugin page.

Quickstart

After installing, simply use:

streamlink STREAMURL best

The default behavior of Streamlink is to play back streams in the VLC player.

For more in-depth usage and install instructions, please refer to the detailed documentation.

Contributing

All contributions are welcome. Feel free to open a new thread on the issue tracker or submit a new pull request. Please read CONTRIBUTING.md first. Thanks!

Contributors

Backers

Thank you to all our backers! [Become a backer]

Backers on Open Collective

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

Open Collective Streamlink Sponsor Open Collective Streamlink Sponsor Open Collective Streamlink Sponsor Open Collective Streamlink Sponsor Open Collective Streamlink Sponsor Open Collective Streamlink Sponsor Open Collective Streamlink Sponsor Open Collective Streamlink Sponsor Open Collective Streamlink Sponsor Open Collective Streamlink Sponsor

streamlink's People

Contributors

amurzeau avatar asermax avatar athoik avatar back-to avatar bastimeyer avatar beardypig avatar billy2011 avatar blxd avatar bzhdeveloper avatar cdrage avatar chhe avatar chrippa avatar fozzysec avatar gravyboat avatar hannespetur avatar intact avatar john-peterson avatar lonefox78 avatar melmorabity avatar mkbloke avatar mmetak avatar monkeyphysics avatar qkolj avatar sbstp avatar skulblakka avatar steven7851 avatar tboss avatar vstavrinov avatar wolftankk avatar zootboy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.