# cPanel Install — VidNest Scraper API

Scrape-only Node app for cPanel. Streaming runs on **Cloudflare Worker** (`workers-deploy.js`).

## Before upload

1. Deploy `workers-deploy.js` to Cloudflare Workers
2. Copy your worker URL, e.g. `https://kikasports.com`

## Upload

1. Upload and extract `cpanel-deploy.zip` to e.g. `~/movie.sportsbite.xyz/`
2. cPanel → **Setup Node.js App** → Create Application
   - Node.js **18+**
   - Application root: your app folder
   - Startup file: `server.js`
3. Copy env file:

```bash
cd ~/movie.sportsbite.xyz
cp .env.cpanel .env
# edit .env — set WORKER_URL and API_URL
```

4. **Restart** the Node.js app

## Verify

```bash
curl https://kikasports.com/health          # version 9.0, provider: vidnest-proxy
curl https://api.yourdomain.com/api/health  # provider: vidnest
curl https://api.yourdomain.com/api/movie/550
```

Open `https://api.yourdomain.com/` for the test player page.

## Frontend integration

Your app calls only the cPanel API. Play `sources[].url` and `subtitles[].url` directly — they point to Cloudflare Worker.

```javascript
const res = await fetch('https://api.yourdomain.com/api/movie/550');
const { sources, subtitles } = await res.json();
// sources[0].url → https://kikasports.com/v/h/...
```
