@gxaym1/fushaar
v1.0.0
Published
Orx Scraper — Fushaar search and video details scraper.
Readme
@gxaym1/fushaar
Orx Scraper — Fushaar search and video details scraper for save-tube.com.
Pure ESM, plain JavaScript, no build step.
Install
npm install @gxaym1/fushaarUsage
import Fushaar from "@gxaym1/fushaar";
// Search
const results = await Fushaar.search("batman 2024", { page: 1 });
console.log(results);
// [{ id, title, url, thumbnail, duration, views, date, source: "fushaar" }, ...]
// Details + download links
const video = await Fushaar.details("https://www.save-tube.com/watch/abc123");
console.log(video.title);
console.log(video.downloadLinks);
// [{ quality:"1080p", format:"mp4", url:"...", size:"800MB", type:"mp4plus" }, ...]Named imports
import { search, details } from "@gxaym1/fushaar";
const results = await search("comedy 2024");
const video = await details("https://www.save-tube.com/watch/xyz");Sub-path import
import { search, details } from "@gxaym1/fushaar/fushaar";API
search(query, options?)
| Param | Type | Default | Description |
|---|---|---|---|
| query | string | — | Search term |
| options.page | number | 1 | Page number |
| options.timeout | number | 30000 | Request timeout (ms) |
| options.headers | object | — | Extra HTTP headers |
| options.proxy | string | — | Proxy URL (http://host:port) |
Returns: Promise<SearchResult[]>
details(urlOrId, options?)
| Param | Type | Description | |---|---|---| | urlOrId | string | Full URL or bare video ID |
Returns: Promise<VideoDetails>
Data shapes
// SearchResult
{ id, title, url, thumbnail?, duration?, views?, date?, source: "fushaar" }
// VideoDetails
{ ...SearchResult, description?, downloadLinks: DownloadLink[] }
// DownloadLink
{ quality: "1080p", format: "mp4", url: "...", size?: "800MB", type: "mp4plus"|"aflamp4"|"direct"|"other" }License
MIT © gxaym1
