Video downloader for xvideos.com written in pure JavaScript.
โ NSFW Content, 18+ Only!
$ npm install xvdl
const { XVDL } = require("xvdl");
const url = "VIDEO_URL_HERE";
XVDL.getInfo(url)
.then(info => console.log(info))
.catch(e => console.error(e));
/*
{
title,
length,
views,
streams,
thumbnail,
relatedVideos,
ratings,
comments,
channel
}
*/
const { XVDL } = require("xvdl");
const fs = require("fs");
const url = "VIDEO_URL_HERE";
XVDL.download(url, { type: "hq" }).pipe(fs.createWriteStream("./video.mp4"))
This method returns basic info of a video.
This method downloads a video of the given url.
This method can be used to search videos. You can also specify the page to search on.
This method is used by search function. By default, it returns the videos of homepage.