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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: streaming_fetcher-0.1.0.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.1.0.tar.gz
Algorithm Hash digest
SHA256 d2c5c05b0dcef1337bac47a8e76c1c05907424f36f23a7b4219ff6d7afa5495e
MD5 221d300a2f7b7164fbf29e98ddb92941
BLAKE2b-256 c35dda71b61978d475fb1108e04e3ced5ce3988956c57f680763d4808ce15ef5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for streaming_fetcher-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 efb76c89aff927b256cdc7c030a9016d78ab836e5a0df63d3390290cea8db9ab
MD5 bb6c463b467212f5a33e754f3cf31cf2
BLAKE2b-256 9537b865e0ec5e1ce41f9792a5d48eb484eb86da8fb68eb577bb0e77ea7f1dfe

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