Quickstart Guide
This guide will take you from zero to watching your first video in under 10 minutes. We’ll use Docker for the fastest setup, but local development options are also available.Prerequisites: Docker installed on your system. Get Docker →
Quick Start with Docker
The fastest way to get Web Scrapping Hub running is with Docker:Build the Docker Image
Build the multi-stage Docker image (this will take a few minutes):
The build process compiles the React frontend and packages it with the Flask backend in a single container.
Run the Container
Start the application container:
The
-d flag runs the container in detached mode, -p 1234:1234 maps port 1234 to your host.Watch Your First Video
Now let’s browse content and start streaming:Browse the Catalog
The homepage displays the latest movies. Use the navigation to explore different sections:
- Movies (
/peliculas) - Latino movies - Series (
/series) - TV series - Anime (
/animes) - Anime content
Search for Content
Use the search bar to find specific content:
- Click the search icon in the navigation bar
- Type your search query (e.g., “Spider-Man”)
- Press Enter or click the search button
/api/listado?busqueda=YOUR_QUERY to fetch results.Select a Movie or Show
Click on any movie poster or title card to view details. The app will navigate to:
- Movies:
/movie/<slug> - Series:
/series/<slug> - Anime:
/anime/<slug>
- Full synopsis
- Genre tags
- Release date
- High-quality poster
Understanding the Flow
Here’s what happens behind the scenes when you watch a video:- Frontend Flow
- Backend Flow
- Scraping Flow
- User clicks on content → React Router navigates to detail page
- Detail page loads → TanStack Query fetches data from API
- User clicks Play → Modal component opens with player
- Player renders → Iframe displays video from extracted URL
Local Development Setup
Prefer to run the backend and frontend separately for development? Here’s how:Backend Setup
Backend Setup
Run the Flask API server:The API will be available at
http://localhost:1234Frontend Setup
Frontend Setup
Run the React development server:The frontend will be available at
http://localhost:5173 (or the port Vite assigns)The frontend expects the backend API to be running on
http://localhost:1234. CORS is enabled in the Flask app.Test the API Directly
You can test the backend API endpoints directly with curl or your browser:All endpoints return JSON. The application automatically checks for updates from the GitHub repository.
Common URL Patterns
Here are the URL patterns you’ll encounter in the application:| Pattern | Example | Description |
|---|---|---|
/page/:number | /page/1, /page/2 | Paginated catalog browsing |
/peliculas | /peliculas | Movies section |
/series | /series | Series section |
/movie/:slug | /movie/spider-man | Movie detail page |
/series/:slug | /series/breaking-bad | Series detail with episodes |
/anime/:slug | /anime/naruto | Anime detail with episodes |
/ver/:tipo/:slug | /ver/pelicula/spider-man | Video player modal |
Verify Everything Works
Run through this checklist to ensure your installation is working correctly:Troubleshooting
Docker container won't start
Docker container won't start
Check logs:Common issues:
- Port 1234 already in use: Stop other services or change the port mapping
- Build failed: Ensure Docker has enough memory (at least 2GB)
- Network issues: Check your internet connection for npm/pip downloads
No content appears
No content appears
Possible causes:If you get an error or empty results, the scraping source may need updating.
- External source is down or blocked
- Cloudflare protection updated (check cloudscraper version)
- Network firewall blocking requests
Frontend not connecting to backend
Frontend not connecting to backend
For local development:
- Ensure Flask is running on port 1234
- Check CORS is enabled in
app.py: - Verify the frontend is making requests to the correct URL
Video player won't load
Video player won't load
Debugging steps:
- Check browser console for errors
- Verify iframe extractor is working:
- Some video sources may be geo-restricted or require additional headers
- Check if the external site’s HTML structure has changed
Next Steps
Congratulations! You now have Web Scrapping Hub running. Here’s what to explore next:Architecture Overview
Understand the system architecture and component interactions
API Reference
Explore all available API endpoints
Configuration
Customize target URLs and scraping sources
CasaOS Deployment
Deploy to CasaOS for home server use
Development Mode: For active development, use the local setup with hot reload enabled for both frontend (Vite) and backend (Flask debug mode).
Getting Help
If you encounter issues:- Check the GitHub Issues
- Review the Architecture Documentation
- Examine the API Reference
- Read the source code - it’s well-commented!