Mobile based API for Crunchyroll BETA (and Downloader).

Overview

Crunchyroll BETA API (and Downloader)

Installation ⚙️

pip install git+https://github.com/stefanodvx/crunchyroll@main

Basic Usage

This API requires an account, and works only on Crunchyroll BETA!

First of all, import all stuff and login

from crunchyroll_beta import Crunchyroll
cr = Crunchyroll()

cr.login("email", "password")

To get a SERIES_ID, just use search function

cr.search("Demon Slayer")

Check the dict it returns, and do whatever you want, like getting seasons

cr.get_seasons(series_id)

From there get your SEASON_ID and get episodes

cr.get_episodes(season_id)

Now let's get streams from an episode (pass the dict get_episodes() returns)

cr.get_streams(episode)

Finally, get formats (pass the dict get_streams() returns), then download m3u8 with yt-dlp or sum

cr.get_formats(streams)

For every function, except login, you can pass "locale" argument (like us-US, en-ES). Default to: it-IT. You can only get HARDSUBS, I could change this but Im not interested in continuing this project for now, PRs are welcome :D

Note: This API its mobile based, so Cloudflare is not a problem. Also its not restricted on servers.

Comments
  • Working but got caught in expected syntax of DICT for streams

    Working but got caught in expected syntax of DICT for streams

    I got as far as cr.get_episodes(season_id) and now I need to get the streams and formats, but I'm stuck on expected syntax for get_streams. My example output from get_episodes() cr.get_episodes(season_id) was ... 'links': {'episode/channel': {'href': '/cms/v2/US/M3/crunchyroll/channels/crunchyroll'}, 'episode/season': {'href': '/cms/v2/US/M3/crunchyroll/seasons/GY1X4ZQ2Y'}, 'episode/series': {'href': '/cms/v2/US/M3/crunchyroll/series/GR4PVDGEY'}, 'streams': {'href': '/cms/v2/US/M3/crunchyroll/videos/GM8FXDG8M/streams'}} .. but expected DICT format was unknown with error when I try various ways of inputting what is expected: line 98 in get_streams episode["links"]["stream"]["href"]

    Can you give me example expected syntax for get_streams and get_format based on get_epidode() output?

    Glad someone is doing the work with CR beta. Thanks!

    opened by clintm99 4
  • SyntaxError on self.account

    SyntaxError on self.account

    Hi, My December 2021 version works good, but the Feb 9th version gives me: `Python 3.7.9 (default, Aug 19 2020, 17:05:11) [GCC 9.3.1 20200408 (Red Hat 9.3.1-2)] on linux Type "help", "copyright", "credits" or "license" for more information.

    from crunchyroll_beta import Crunchyroll Traceback (most recent call last): File "", line 1, in File "/tmp/crunchyroll-main/crunchyroll_beta/init.py", line 1, in from .api import Crunchyroll File "/tmp/crunchyroll-main/crunchyroll_beta/api.py", line 124 if expiration := self.account_data.expires: ^ SyntaxError: invalid syntax where api.py is.11488 2月 9 11:59 crunchyroll_beta/api.py`

    Thanks :)

    opened by clintm99 1
  • api.py file error

    api.py file error

    File "/usr/local/lib/python3.7/dist-packages/crunchyroll_beta/api.py", line 124 if expiration := self.account_data.expires: ^ SyntaxError: invalid syntax

    opened by adityaraj2003 0
  • add new Class, some attributes and option for better search

    add new Class, some attributes and option for better search

    To better search for syncronized anime, I added series_metadata to the "Panel" class. Also "browse" can be searched alphabetically. For the seasons there is also "audio_locale".

    opened by willhoh 0
  • Doesn't handle some movies as expected

    Doesn't handle some movies as expected

    With the Crunchyroll beta, some movies consist of a single video and do not appear to have seasons or episodes that the API can handle. For example:

    GRK5Z4P96 (Black Jack the Movie) GRWE20Z3R (Cardcaptor Sakura the Movie)

    Attempting to call get_series() or get_seasons() with one of these IDs returns this error:

    crunchyroll_beta.errors.CrunchyrollError: [404] Error occured: Invalid series identifier

    Calling get_episodes() on the ID returns an empty list. It's not clear how to get from a series ID to an episode ID. It might make sense for the module to generate a dummy season and episode listing just for consistency.

    opened by orbitalflower 2
Owner
null
Python-Youtube-Downloader - An Open Source Python Youtube Downloader

Python-Youtube-Downloader Hello There This Is An Open Source Python Youtube Down

Flex Tools 3 Jun 14, 2022
Youtube Downloader is a simple but highly efficient Youtube Video Downloader, made completly using Python

Youtube Downloader is a simple but highly efficient Youtube Video Downloader, made completly using Python

Arsh 2 Nov 26, 2022
Youtube-downloader-using-Python - Youtube downloader using Python

Youtube-downloader-using-Python Hii guys !! Fancy to see here Welcome! built by

Lakshmi Deepak 2 Jun 9, 2022
music downloader written in python. (Uses jiosaavn API)

music downloader written in python. (Uses jiosaavn API)

Rohn Chatterjee 35 Jul 20, 2022
Terminal based YouTube player and downloader

termitube NOTE: THIS REPOSITORY IS A FORK OF mps-youtube as mps-youtube has been unmaintained for almost a year now. Features Search and play audio/vi

Otis/Jacob Root 27 Dec 23, 2022
Tkinter based YouTube video downloader works on pytube 11.0.2. Can download YouTube videos in 720p(HD), 144p and even only audio.

YouTube-Downloader Tkinter based YouTube video downloader works on pytube 11.0.2. Can download YouTube videos in 720p(HD), 144p and even only audio. G

Manav Grover 2 Dec 27, 2021
squid-dl is a massively parallel yt-dlp-based YouTube downloader.

squid-dl squid-dl is a massively parallel yt-dlp-based YouTube downloader. Installation Run the setup.py, which will install squid-dl and its two depe

tuxlovesyou 51 Jan 5, 2023
Python based YouTube video Downloader GUI Application.

Youtube video Downloader Python based Youtube video Downloader GUI Application. Installation Python Dependencies Import pytube pip install pytube Im

Naem Azam 1 Jan 3, 2022
Using Youtube downloader is the fast and easy way to download and save any YouTube video.

Youtube video downloader using Django Using Django as a backend along with pytube module to create Youtbue Video Downloader. https://yt-videos-downloa

Suman Raj Khanal 10 Jun 18, 2022
Vinetrimmer-DRM-TOOL - Widevine DRM downloader and decrypter for AMZN|NF|STAN And all

?? ✂️ Vinetrimmer Widevine DRM downloader and decrypter. Thanks to wvleaks for t

Vlad Tănăsescu 20 Jan 13, 2022
A scriptable music downloader for Qobuz, Tidal, and Deezer

streamrip A scriptable stream downloader for Qobuz, Tidal, and Deezer. Features Downloads tracks, albums, playlists, discographies, and labels from Qo

null 967 Jan 3, 2023
A Udemy downloader that can download DRM protected videos and non-DRM protected videos.

Udemy Downloader with DRM support NOTE This program is WIP, the code is provided as-is and i am not held resposible for any legal repercussions result

Puyodead1 468 Dec 29, 2022
Music and video downloader, Made with love by Bryan Herrera

Python-Mp3Mp4-Downloader Music and video downloader, Made with love by Bryan Herrera Requirements CHOCOLATELY windows command If your system does not

ርᚱ1ናተᛰ ᚻህᚥተპᚱ 104 Dec 27, 2022
bing image downloader app used to download bulk images for a specific search term created using streamlit and bing_image_downloader python packages

bing image downloader app bing image downloader app is used to download bulk images for a specific search term. bing image downloader app gets the sea

Siva Prakash 8 Apr 5, 2022
YTPY Youtube Downloader Made by: Ferreira, Amarau and Rodric

YTPY Youtube Downloader Made by: Ferreira, Amarau and Rodric How to Install on Linux: sudo apt install python3 python3-pip git pip install pytube git

null 7 Nov 24, 2022
the best video downloader for terminals (currently only compatible with Linux and Windows)

the best video downloader for terminals (currently only compatible with Linux and Windows)

Amaral 2 Oct 14, 2021
Youtube video downloader and info extractor for python.

tube_dl Tube_dl is a Simple Youtube video downloader for Python. A Modular approach to bypass and download Youtube Videos and Playlist from Youtube us

Shekhar Chander 16 Jul 9, 2022
PyQt5 simple files , youtube videos and youtube playlist downloader

PyQt5 simple files , youtube videos and youtube playlist downloader

AmirHossein Mohammadi 7 Jul 25, 2022