scraperjavascript2369
HuraWatch / MoviesTV All-in-One Scraper (Meta, Cast, Trailer, Multi-Server)
Suite scraper film & TV series lengkap tanpa captcha/Cloudflare. Mendukung Search, Full Meta, Aktor/Cast, Official YouTube Trailers, Rekomendasi serupa, Episode Navigator, Trending, Discover Genre/Year, dan 21 link embed video stream HD.
Vamz Spectre8 Okt 2026212 baris kode
Jalankan via Terminal / CLI:
# 1. Download file script
curl -sL "https://code.vamxapi.my.id/snippet/raw/hurawatch-movie-scraper" -o hurawatch-movie-scraper.js
# 2. Jalankan script
node hurawatch-movie-scraper.js
Dependencies npm yang Dibutuhkan:
npm install axiosPanduan Penggunaan:
// Instalasi Dependencies:
npm install axios
// Contoh Penggunaan (Node.js / Express / Baileys):
const hurawatch = require(./hurawatch);
// 1. Search Film / Series
const { results } = await hurawatch.search("Inception");
// 2. Ambil Info Lengkap (Sinopsis, Cast, Trailer Youtube, 21 Server Player)
const detail = await hurawatch.getDetail(results[0].id, results[0].type);
console.log("Judul:", detail.result.title);
console.log("Trailer:", detail.result.trailers[0]?.youtubeUrl);
console.log("Player Server 1:", detail.result.streamingServers[0]);
// 3. Ambil Daftar Episode TV Series
const season = await hurawatch.getSeason(1399, 1);
console.log("Ep 1 Streaming:", season.result.episodes[0].streamingServers);
// 4. Filter Genre (Contoh: Action ID 28 tahun 2024)
const actionMovies = await hurawatch.discover({ genreId: 28, year: 2024 });
hurawatch-movie-scraper.js(212 lines)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/**
* HuraWatch / MoviesTV All-in-One Movie & Series Scraper Engine
* Author: Vamz Spectre (VamxAPI)
* Target: freeonlinek.top/hurawatch / moviestv.my
*
* Full Feature Suite:
* 1. Search Multi (Movies, Series, Anime)
* 2. Complete Metadata (Overview, Rating, HD Poster, Original Backdrop, Genres, IMDB ID, Runtime)
* 3. Cast & Directors (Actors with character names & profile pictures, directors)
* 4. Official Trailers & Teasers (YouTube Key, direct URL, & embed iframe)
* 5. Smart Recommendations & Similar Movies
* 6. TV Series Season & Episode Navigator (Episode breakdown, thumbnail stills, overview)
* 7. Trending & Top Rated (Weekly / Daily)
* 8. Discover by Genre, Year, & Sorting
* 9. 21 Multi-Server HD Video Stream Resolvers (Videasy, VidFast, EmbedMaster, Vidsrc Me, MoviesAPI, dll)
* 10. 100% Anti-Bot Clean: Tanpa Cloudflare Challenge & Tanpa Captcha
*/
const axios = require("axios");
const BASE_API = "https://moviestv.my/api/tmdb.php?endpoint=";
const IMAGE_W500 = "https://image.tmdb.org/t/p/w500";
const IMAGE_ORIGINAL = "https://image.tmdb.org/t/p/original";
const HEADERS = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
"Referer": "https://moviestv.my/",
"Accept": "application/json, text/plain, */*"
};
const STREAM_PROVIDERS = [
{ name: "Videasy Flux", movie: "https://player.videasy.to/movie/{id}", tv: "https://player.videasy.to/tv/{id}/{s}/{e}" },
{ name: "VidFast VIP", movie: "https://vidfast.vc/movie/{id}", tv: "https://vidfast.vc/tv/{id}/{s}/{e}" },
{ name: "Embed Master", movie: "https://embedmaster.link/movie/{id}", tv: "https://embedmaster.link/tv/{id}/{s}/{e}" },
{ name: "Vidsrc Me", movie: "https://vidsrcme.ru/embed/movie/{id}", tv: "https://vidsrcme.ru/embed/tv/{id}/{s}/{e}" },
{ name: "Vidcore Pro", movie: "https://vidcore.org/embed/movie/{id}", tv: "https://vidcore.org/embed/tv/{id}/{s}/{e}" },
{ name: "MoviesAPI Speedy", movie: "https://moviesapi.to/movie/{id}", tv: "https://moviesapi.to/tv/{id}-{s}-{e}" },
{ name: "111Movies Alpha", movie: "https://111movies.net/movie/{id}", tv: "https://111movies.net/tv/{id}/{s}/{e}" },
{ name: "Vidzee Titan", movie: "https://player.vidzee.wtf/embed/movie/{id}", tv: "https://player.vidzee.wtf/embed/tv/{id}/{s}/{e}" },
{ name: "Vidstorm Super", movie: "https://vidstorm.ru/movie/{id}", tv: "https://vidstorm.ru/tv/{id}/{s}/{e}" },
{ name: "2Embed Elite", movie: "https://www.2embed.cc/embed/{id}", tv: "https://www.2embed.cc/embedtv/{id}&s={s}&e={e}" },
{ name: "Mapple Cinematic", movie: "https://mapple.uk/watch/movie/{id}", tv: "https://mapple.uk/watch/tv/{id}-{s}-{e}" },
{ name: "PrimeSrc", movie: "https://primesrc.me/embed/movie?tmdb={id}", tv: "https://primesrc.me/embed/tv?tmdb={id}&season={s}&episode={e}" },
{ name: "Velocity HD", movie: "https://vidrock.ru/movie/{id}", tv: "https://vidrock.ru/tv/{id}/{s}/{e}" },
{ name: "High Stream", movie: "https://cinesrc.st/embed/movie/{id}", tv: "https://cinesrc.st/embed/tv/{id}/{s}/{e}" },
{ name: "Global Node", movie: "https://www.nontongo.win/embed/movie/{id}", tv: "https://www.nontongo.win/embed/tv/{id}/{s}/{e}" },
{ name: "Dynamic VIP", movie: "https://multiembed.mov/?video_id={id}&tmdb=1", tv: "https://multiembed.mov/?video_id={id}&tmdb=1&s={s}&e={e}" },
{ name: "Direct Play", movie: "https://cdn.mov2day.xyz/embed/movie/{id}", tv: "https://cdn.mov2day.xyz/embed/tv/{id}/{s}/{e}" },
{ name: "France VF/Vost", movie: "https://frembed.cyou/embed/movie/{id}", tv: "https://frembed.cyou/embed/serie/{id}?sa={s}&epi={e}" },
{ name: "Pro Player", movie: "https://rivestream.org/embed?type=movie&id={id}", tv: "https://rivestream.org/embed?type=tv&id={id}&season={s}&episode={e}" },
{ name: "Hyper Stream", movie: "https://vidup.to/movie/{id}", tv: "https://vidup.to/tv/{id}/{s}/{e}" },
{ name: "Ultra HD Fast", movie: "https://vsembed.ru/embed/movie?tmdb={id}", tv: "https://vsembed.ru/embed/tv?tmdb={id}&season={s}&episode={e}&autonext=1" }
];
function resolveStreamServers(id, type = "movie", season = 1, episode = 1) {
return STREAM_PROVIDERS.map((provider) => {
let url = (type === "tv")
? provider.tv.replace(/{id}/g, String(id)).replace(/{s}/g, String(season)).replace(/{e}/g, String(episode))
: provider.movie.replace(/{id}/g, String(id));
return { name: provider.name, url };
});
}
async function api(endpoint) {
const res = await axios.get(BASE_API + encodeURIComponent(endpoint), {
headers: HEADERS,
timeout: 15000
});
return res.data;
}
function formatItem(it, fallbackType = "movie") {
return {
id: it.id,
title: it.title || it.name || "Untitled",
originalTitle: it.original_title || it.original_name,
type: it.media_type || fallbackType,
overview: it.overview || "",
posterUrl: it.poster_path ? `${IMAGE_W500}${it.poster_path}` : null,
backdropUrl: it.backdrop_path ? `${IMAGE_ORIGINAL}${it.backdrop_path}` : null,
releaseDate: it.release_date || it.first_air_date || null,
voteAverage: Number((it.vote_average || 0).toFixed(1)),
voteCount: it.vote_count || 0,
popularity: Number((it.popularity || 0).toFixed(1))
};
}
// 1. Search Multi (Movie & TV)
async function search(query, page = 1) {
if (!query) throw new Error("Query tidak boleh kosong.");
const data = await api(`/search/multi?query=${encodeURIComponent(query)}&page=${page}&include_adult=false`);
const results = (data.results || [])
.filter(i => i.media_type === "movie" || i.media_type === "tv")
.map(i => formatItem(i));
return { status: true, page: data.page || page, totalPages: data.total_pages, results };
}
// 2. Detail Lengkap (Credits, Trailers, Rekomendasi, 21 Server Player)
async function getDetail(id, type = "movie", season = 1, episode = 1) {
const [data, credits, videos, recs] = await Promise.all([
api(`/${type}/${id}`),
api(`/${type}/${id}/credits`).catch(() => ({ cast: [], crew: [] })),
api(`/${type}/${id}/videos`).catch(() => ({ results: [] })),
api(`/${type}/${id}/recommendations`).catch(() => ({ results: [] }))
]);
const cast = (credits.cast || []).slice(0, 10).map(c => ({
id: c.id,
name: c.name,
character: c.character,
profileUrl: c.profile_path ? `${IMAGE_W500}${c.profile_path}` : null
}));
const directors = (credits.crew || [])
.filter(c => c.job === "Director" || c.job === "Executive Producer")
.slice(0, 4)
.map(c => c.name);
const trailers = (videos.results || [])
.filter(v => v.site === "YouTube")
.slice(0, 5)
.map(v => ({
name: v.name,
type: v.type,
youtubeUrl: `https://www.youtube.com/watch?v=${v.key}`,
embedUrl: `https://www.youtube.com/embed/${v.key}`
}));
return {
status: true,
result: {
...formatItem(data, type),
tagline: data.tagline,
status: data.status,
genres: (data.genres || []).map(g => g.name),
runtime: data.runtime || (data.episode_run_time ? data.episode_run_time[0] : null),
imdbId: data.imdb_id,
homepage: data.homepage,
seasonsCount: data.number_of_seasons,
episodesCount: data.number_of_episodes,
cast,
directors,
trailers,
recommendations: (recs.results || []).slice(0, 8).map(r => formatItem(r, type)),
streamingServers: resolveStreamServers(id, type, season, episode)
}
};
}
// 3. Episode List per Season (TV Series)
async function getSeason(id, seasonNumber = 1) {
const data = await api(`/tv/${id}/season/${seasonNumber}`);
return {
status: true,
result: {
seasonNumber: data.season_number,
name: data.name,
overview: data.overview,
posterUrl: data.poster_path ? `${IMAGE_W500}${data.poster_path}` : null,
episodes: (data.episodes || []).map(ep => ({
episodeNumber: ep.episode_number,
name: ep.name,
overview: ep.overview,
airDate: ep.air_date,
stillUrl: ep.still_path ? `${IMAGE_W500}${ep.still_path}` : null,
voteAverage: Number((ep.vote_average || 0).toFixed(1)),
streamingServers: resolveStreamServers(id, "tv", ep.season_number, ep.episode_number)
}))
}
};
}
// 4. Trending & Discover (by Genre / Year)
async function getTrending(type = "movie", timeWindow = "week", page = 1) {
const data = await api(`/trending/${type}/${timeWindow}?page=${page}`);
return {
status: true,
page: data.page || page,
totalPages: data.total_pages,
results: (data.results || []).map(i => formatItem(i, type))
};
}
async function discover(options = {}) {
const type = options.type || "movie";
const page = options.page || 1;
const sort = options.sortBy || "popularity.desc";
let q = `/discover/${type}?page=${page}&sort_by=${sort}&include_adult=false`;
if (options.genreId) q += `&with_genres=${options.genreId}`;
if (options.year) q += type === "movie" ? `&primary_release_year=${options.year}` : `&first_air_date_year=${options.year}`;
const data = await api(q);
return {
status: true,
page: data.page || page,
totalPages: data.total_pages,
results: (data.results || []).map(i => formatItem(i, type))
};
}
if (typeof module !== "undefined" && module.exports) {
module.exports = {
search,
getDetail,
getSeason,
getTrending,
discover,
STREAM_PROVIDERS
};
}