Streaming fetcher library can be used to automatize downloads from streaming sites
Project description
Streaming fetcher
Streaming fetcher library can be used to automatize downloads from streaming sites.
Disclaimer
This project is in no way meant to be an incitement to piracy. But publishers often have no respect for the works they own the rights to. If a product is no longer profitable, it disappears into thin air and becomes legally unobtainable. This project exists to preserve these works of art.
Using
The library can be found on PyPi
pip install streaming-fetcher
The library needs to work playwright firefox. Before using it, you have to initialize it
playwright install --with-deps firefox
More information available in the official docs
Example
import asyncio
import logging
from pathlib import Path
from streaming_fetcher import StreamingFetcher, AnimeUnityFetchTask
# streaming_fetcher uses the python standard logging library
logging.basicConfig(level=logging.INFO)
anime_fetcher = StreamingFetcher(base_path=Path('/mnt/media-library'))
# add a task to retrieve episodes from anime unity
anime_fetcher.add_task(AnimeUnityFetchTask("42-hitchhikers-guide", episode_path=lambda season,episode: Path("Hitchhiker's Guide") / f"Hitchhiker's Guide S{season:02d}E{episode:02d}.mp4"))
asyncio.run(anime_fetcher.run())
Supported sites
- streamingcommunity.computer
StreamingCommunityFetchTask
- animeunity.to
AnimeUnityFetchTask