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.0.1.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

streaming_fetcher-0.0.1-py3-none-any.whl (23.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: streaming_fetcher-0.0.1.tar.gz
  • Upload date:
  • Size: 21.4 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.0.1.tar.gz
Algorithm Hash digest
SHA256 d65df7b666dd8fddf951007f05a30f0fd4f5cb0b10783b863dded2f328932d37
MD5 f8b9ee0029bfd108fe523e77b6bac6a4
BLAKE2b-256 568641fccd203093cfee35d91163ae1cd729827bee44e188981097738d84ef06

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streaming_fetcher-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8e6053afb352b665acb1a3649ce91ebe8dcd0478d593899e94c9334406bfe312
MD5 94c51723d246d71fbfefa7cf62ff918f
BLAKE2b-256 305f2078d167c48166bd7b5c6f8082c4ff75be65d2e6b0b154530a776e0e7522

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