pip install git+https://github.com/stefanodvx/crunchyroll@main
This API requires an account, and works only on Crunchyroll BETA!
from crunchyroll_beta.sync import Crunchyroll
cr = Crunchyroll("email", "password")
cr.start()
series_id = "GY5P48XEY" # cr.search("Demon Slayer")
season_id = cr.get_seasons(series_id)[2].id
episode = cr.get_episodes(season_id)[0]
url = cr.get_streams(episode).streams.adaptive_hls.en.url # m3u8 url
...or in ASYNC! 👀
from crunchyroll_beta import Crunchyroll
import asyncio
cr = Crunchyroll("email", "password")
async def main():
await cr.start()
series_id = "GY5P48XEY"
title = (await cr.get_seasons(series_id))[2].title
print(title)
asyncio.run(main())
You can get DASH, HLS, raws, subtitles only, hardsubbed videos...
Just explore the API yourself and have fun!