A FastAPI-based backend for video scraping and analysis.
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run the application:
uvicorn app.main:app --reload
The API will be available at http://localhost:8000
After starting the server, visit http://localhost:8000/docs
for the interactive API documentation.
POST /scrape-videos/
: Submit URLs for video scrapingGET /videos/
: Get paginated list of videosGET /videos/{video_id}
: Get detailed information about a specific video
- Video: Base video information
- Metadata: Video transcript and metadata
- VideoSummary: Generated summary of the video
- VideoSponsor: Sponsorship information and brand mentions