Skip to content

Repository files navigation

🎬 HDHub Bypass API ⚡

🔥 Automated link bypass & direct download extraction for HDHub 🔥

No more clicking through annoying redirects and countdown timers! 😈


💫 What Is This?

A blazingly fast REST API that:

  • 🎯 Scrapes movie/series download pages from HDHub
  • 🔓 Bypasses pesky gadgetsweb & hubcloud redirects
  • Extracts direct download links automatically
  • 🚀 Cloudflare-resistant with curl_cffi fallback

"Why waste 30 seconds clicking buttons when code can do it in 3 seconds?" 😏


🛠️ Features

Feature Description
🎬 Movie Support Scrape single movie pages
📺 Series Support Handle batch packs + individual episodes
🔐 Token Decryption Reverse-engineered JS bypass (Rot13, Base64, etc.)
🛡️ Cloudflare Bypass Auto-fallback to curl_cffi when blocked
🌐 REST API Clean FastAPI endpoints
☁️ Vercel Ready Deploy in one click

🚀 Quick Start

📦 Installation

# Clone it
git clone https://github.com/itzmepromgitman/HDhub-bypass-api.git
cd HDhub-bypass-api

# Install deps
pip install -r requirements.txt

🔧 Configure Domain

Edit .env to set the active website URL:

# Change this when domain updates! 🔄
WEBSITE_URL=https://hdhub4u.catering

💡 On Vercel: Set WEBSITE_URL in your project's Environment Variables settings instead!

⚡ Run Locally

uvicorn api.index:app --reload --port 8000

📡 API Endpoints

💡 All endpoints support both GET and POST methods!

  • GET: Pass URL as query parameter → ?url=YOUR_URL
  • POST: Send JSON body → {"url": "YOUR_URL"}

🏠 Root

GET /

Returns API info & available endpoints.


🔎 Search Movies/Series (NEW!)

Search for movies or series by name.

GET /search?q=avengers
GET /search?q=breaking+bad

Response:

{
  "query": "avengers",
  "total_results": 5,
  "results": [
    {
      "title": "Avengers Endgame 2019",
      "url": "https://hdhub4u.catering/avengers-endgame/",
      "poster": "https://...",
      "year": "2019",
      "type": "movie"
    }
  ]
}

🔍 Find Links

Extracts all download links with quality, size, and host info.

# GET Method (browser-friendly! 🌐)
GET /find?url=https://hdhub4u.catering/some-movie-page/

# POST Method
POST /find
{"url": "https://hdhub4u.catering/some-movie-page/"}

Response:

{
  "title": "Movie Name",
  "type": "movie",
  "total_links": 6,
  "links": [
    {
      "category": "batch",
      "quality": "1080p",
      "size": "2.5 GB",
      "title": "Movie.2024.1080p.mkv",
      "host": "HubCloud",
      "url": "https://gadgetsweb.xyz/?id=..."
    }
  ]
}

🎬 Scrape Page

# GET Method
GET /scrape?url=https://hdhub4u.catering/some-movie-page/

# POST Method
POST /scrape
{"url": "https://hdhub4u.catering/some-movie-page/"}

Response:

{
  "title": "Movie Name",
  "type": "movie",
  "batch": [...],
  "singles": [...]
}

🔓 Bypass Single Link

# GET Method
GET /bypass?url=https://gadgetsweb.xyz/?id=...

# POST Method
POST /bypass
{"url": "https://gadgetsweb.xyz/?id=..."}

Response:

{
  "original_url": "...",
  "final_url": "https://direct-download-link.com/file.mkv",
  "filename": "Movie.2024.1080p.mkv"
}

⚡ Bypass All Links

# GET Method
GET /bypass_all?url=https://hdhub4u.catering/some-movie/

# POST Method
POST /bypass_all
{"url": "https://hdhub4u.catering/some-movie/"}

Scrapes the page AND bypasses all found links in one call! 🔥


☁️ Deploy to Vercel

  1. Fork this repo
  2. Connect to Vercel
  3. Done! Your API is live 🎉

The vercel.json config handles all the routing magic ✨


🧠 How It Works

🔍 Click to see the bypass magic...
📥 Input: HDHub Movie/Series Page
         ↓
🔎 Scrape: Extract all gadgetsweb URLs
         ↓
🔐 Decrypt: Token → B64 → B64 → Rot13 → B64 → JSON
         ↓
🌐 Navigate: HubCloud → Download Button → Final Link
         ↓
📤 Output: Direct Download URLs

The site sends encrypted tokens + decryption logic client-side. We just replicate that logic 😈


📁 Project Structure

hdhub/
├── api/
│   └── index.py      # FastAPI app + all endpoints
├── bypass.py         # Standalone bypass script
├── .env              # 🔧 Website URL config (easy domain switch!)
├── .env.example      # Example config for contributors
├── .gitignore        # Keeps secrets safe
├── requirements.txt  # Python dependencies
├── vercel.json       # Vercel deployment config
└── README.md         # You are here! 📍

⚠️ Disclaimer

⚠️ Educational purposes only!
This project demonstrates web scraping & link bypass techniques. Use responsibly. Respect website Terms of Service. The author is not responsible for misuse. 🙃

👨‍💻 Author

🔥 Argon 🔥
📱 Telegram🐙 GitHub

⭐ Star this repo if it saved your clicks! ⭐

About

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages