MCPcopy Index your code
hub / github.com/streamflix-one/providers

github.com/streamflix-one/providers @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
171 symbols 431 edges 25 files 5 documented · 3% 19 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

StreamFlix Providers

StreamFlix Providers

StreamFlix Providers is a collection of scraper scripts that fetch streaming URLs from various online streaming platforms. These scripts allow you to extract video URLs from platforms like FileCDN and Vidsrc.to, facilitating the process of integrating streaming functionality into your applications or projects.

Features

  • Streaming URL Retrieval: Fetch streaming URLs from popular online streaming platforms.
  • Subtitle Support: Retrieve subtitles for movies and TV shows.
  • Download Options: Provide direct download links for content.
  • Scalable and Efficient: Designed to handle multiple requests with minimal latency.

Getting Started

Installation

To use StreamFlix API, follow these steps:

  1. Clone this repository to your local machine.
  2. Install the required dependencies by running pip install -r requirements.txt.
  3. Run the Flask server using python3 main.py.

Usage

Fetching Streaming URLs for Movies

To fetch streaming URLs for a movie, make a GET request to the /api/sources/<tmdb_id> endpoint, where <tmdb_id> is the TMDB ID of the movie.

Example:

GET /api/sources/12345

Fetching Streaming URLs for TV Shows

To fetch streaming URLs for a TV show episode, make a GET request to the /api/sources/<tmdb_id>/<season>/<episode> endpoint, where <tmdb_id> is the TMDB ID of the TV show, <season> is the season number, and <episode> is the episode number.

Example:

GET /api/sources/67890/1/1

API Responses

The API will respond with a JSON object containing the streaming URLs, subtitles (if available), and download options (if configured).

Example Response:

{
  "sources": [
    {
      "server": 1,
      "url": "https://example.com/stream1"
    },
    {
      "server": 2,
      "url": "https://example.com/stream2"
    }
  ],
  "captions": [
    {
      "language": "English",
      "url": "https://example.com/subtitles/en.srt"
    }
  ],
  "downloads": [
    {
      "quality": "1080p",
      "url": "https://example.com/downloads/movie.mp4"
    }
  ]
}

How to Use the Scrapers

  1. Download and Set Up
  2. Download the StreamFlix Providers scrapers folder from the repository.
  3. Drag and drop the folder into your workspace or project directory.

  4. Importing

  5. To use the scrapers in your code, import them as follows: python import scrapers.flixhq import scrapers.vidsrcto
  6. Once imported, you can instantiate the scraper classes and use their methods to fetch streaming URLs.

  7. Fetching Streaming URLs

  8. Use the appropriate methods provided by each scraper to fetch streaming URLs based on the title or TMDB ID of the content.
  9. For example: ```python scraper = VidsrcTo() response_data = scraper.fetch_source(108978, season=1, episode=1) print(f"Tv Show URL: {response_data}")

    ```

    Deploy on cloud providers

    Run on Replit Remix on Glitch Deploy on Railway Deploy to Cyclic Deploy to Koyeb Deploy to Render

    Contributing

Contributions to StreamFlix Providers are welcome! If you'd like to contribute, follow these steps:

  1. Fork the Repository
  2. Fork the StreamFlix Providers repository on GitHub.

  3. Clone the Forked Repository

  4. Clone your forked repository to your local machine.

  5. Make Changes

  6. Make the necessary changes or additions to the scraper scripts.
  7. Ensure that your code follows the existing coding style and conventions.

  8. Commit and Push

  9. Commit your changes and push them to your forked repository.

  10. Create a Pull Request

  11. Create a pull request from your forked repository to the main StreamFlix Providers repository.
  12. Provide a clear description of the changes you've made and the rationale behind them.
  13. Include any relevant details or documentation updates.

  14. Review and Collaborate

  15. Collaborate with other contributors and maintainers to review and refine your changes.
  16. Address any feedback or suggestions provided during the review process.
  17. Once your pull request is approved, it will be merged into the main repository.

Contributors

Acknowledgment and gratitude to all contributors who help improve StreamFlix Providers and make it more robust and versatile.


Feel free to explore and utilize StreamFlix Providers in your projects. If you encounter any issues or have suggestions for improvement, don't hesitate to open an issue or submit a pull request. Happy streaming!

Core symbols most depended-on inside this repo

search
called by 34
scrapers/vixcloud.py
get_ip
called by 2
main.py
get_movie_name
called by 2
main.py
scrape_sources
called by 2
main.py
decode_data
called by 2
scrapers/vidsrcto.py
fetch
called by 2
scrapers/vidsrcme.py
get_subtitles
called by 2
scrapers/subtitles.py
_scrape
called by 2
scrapers/filecdn.py

Shape

Method 126
Class 26
Function 17
Route 2

Languages

Python100%

Modules by API surface

scrapers/flixhq.py19 symbols
scrapers/unfinished/uhdmovies.py12 symbols
scrapers/vixcloud.py10 symbols
scrapers/vidsrcto.py10 symbols
scrapers/vidsrcme.py10 symbols
scrapers/utils/unpacker.py10 symbols
scrapers/unfinished/vidsrcme.py9 symbols
scrapers/dreamfilmsw.py9 symbols
scrapers/embeds/dood.py8 symbols
main.py8 symbols
scrapers/streamium.py6 symbols
scrapers/embeds/upstream.py6 symbols

For agents

$ claude mcp add providers \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact