A simple scraper for searching and downloading metadata from Xnxx videos.
This package allows you to search for Xnxx videos and fetch detailed metadata, including video download links, images, and more. It's easy to integrate and use in your projects.
You can install xnxx-scraper
via npm:
npm install xnxx-scraper
Usage
After installing, you can import the package and use its functionality. Import the Package
const { xnxxSearch, xnxxDownload } = require('xnxx-scraper');
Search Videos by Query
Use xnxxSearch() to search for videos by query:
xnxxSearch('example query').then((data) => {
console.log(data);
}).catch((err) => {
console.error(err);
});
Example Output:
{
"status": true,
"result": [
{
"title": "Example Video Title",
"info": "Video Info (e.g., duration, views)",
"link": "https://www.xnxx.com/video-abc123"
}
]
}
This will return a list of videos with their titles, descriptions, and links. Download Video Metadata
Use xnxxDownload() to get detailed video metadata and download options for a specific video:
xnxxDownload('https://www.xnxx.com/video-abc123').then((data) => {
console.log(data);
}).catch((err) => {
console.error(err);
});
Example Output:
{
"status": true,
"result": {
"title": "Example Video Title",
"URL": "https://www.xnxx.com/video-abc123",
"duration": "300",
"image": "https://cdn.xnxx.com/thumb.jpg",
"videoType": "video/mp4",
"videoWidth": "1280",
"videoHeight": "720",
"info": "Video metadata",
"files": {
"low": "https://low-quality.mp4",
"high": "https://high-quality.mp4",
"HLS": "https://stream.m3u8",
"thumb": "https://thumb.jpg",
"thumb69": "https://thumb69.jpg",
"thumbSlide": "https://thumbSlide.jpg",
"thumbSlideBig": "https://thumbSlideBig.jpg"
}
}
}
This returns detailed video information, including:
Title
Duration
Video quality links (low, high, HLS)
Metadata and thumbnail images
Dependencies
node-fetch – For making HTTP requests.
cheerio – For parsing HTML and extracting data.
You can install the dependencies by running:
npm install node-fetch@2 cheerio
Author
MR.JANIYA (Gaming Rash)
GitHub: https://github.com/Mrrashmika License
This project is licensed under the MIT License. Contributing
If you find any issues or would like to contribute, feel free to fork the repository, open issues, and submit pull requests. Contributions are always welcome!