Skip to main content

Streaming fetcher library can be used to automatize downloads from streaming sites

Project description

Streaming fetcher

GitHub GitHub Version PyPI - Version GitHub Workflow Status GitHub Workflow Status CodeFactor Grade

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

streaming_fetcher-0.2.0.tar.gz (21.8 kB view details)

Uploaded Source

Built Distribution

streaming_fetcher-0.2.0-py3-none-any.whl (24.3 kB view details)

Uploaded Python 3

File details

Details for the file streaming_fetcher-0.2.0.tar.gz.

File metadata

  • Download URL: streaming_fetcher-0.2.0.tar.gz
  • Upload date:
  • Size: 21.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.7

File hashes

Hashes for streaming_fetcher-0.2.0.tar.gz
Algorithm Hash digest
SHA256 aaaf67518045feb60650e999e92f03b2de86ab92681065719d56f71fe371cf0c
MD5 e27b8a488b6e652aa2d0874d452cfd0f
BLAKE2b-256 5e57a075fac21b08d4ef6958fe74e2a5ecee6eedb8a2b94c9434a88fc59ee395

See more details on using hashes here.

File details

Details for the file streaming_fetcher-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for streaming_fetcher-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a1406a9dbcabf5760265ebd860fcecd4931627dbe85f34c0bfaba9a3b99a4bc
MD5 a6152fea0bb58ad93deab9cc0b073bb3
BLAKE2b-256 db44cdc73b45f7aab76e291b5969008de0cb6cb45e20cbfa3de72cc744c0d64e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page