
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.
To use StreamFlix API, follow these steps:
pip install -r requirements.txt.python3 main.py.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
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
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"
}
]
}
scrapers folder from the repository.Drag and drop the folder into your workspace or project directory.
Importing
python
import scrapers.flixhq
import scrapers.vidsrctoOnce imported, you can instantiate the scraper classes and use their methods to fetch streaming URLs.
Fetching Streaming URLs
For example: ```python scraper = VidsrcTo() response_data = scraper.fetch_source(108978, season=1, episode=1) print(f"Tv Show URL: {response_data}")
```
Contributions to StreamFlix Providers are welcome! If you'd like to contribute, follow these steps:
Fork the StreamFlix Providers repository on GitHub.
Clone the Forked Repository
Clone your forked repository to your local machine.
Make Changes
Ensure that your code follows the existing coding style and conventions.
Commit and Push
Commit your changes and push them to your forked repository.
Create a Pull Request
Include any relevant details or documentation updates.
Review and Collaborate
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!
$ claude mcp add providers \
-- python -m otcore.mcp_server <graph>