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"
}
]
}
Download and Set Up
scrapers
folder from the repository.Importing
import scrapers.flixhq
import scrapers.vidsrcto
Fetching Streaming URLs
For example:
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 Repository
Clone the Forked Repository
Make Changes
Commit and Push
Create a Pull Request
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!