Skip to content

๐Ÿ”ž Video downloader for xvideos.com written in pure JavaScript.

License

Notifications You must be signed in to change notification settings

twlite/node-xvdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

9 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Node XVDL

Video downloader for xvideos.com written in pure JavaScript.

โš  NSFW Content, 18+ Only!

Installation

$ npm install xvdl

Examples

Getting info

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
}
*/

Downloading a video

const { XVDL } = require("xvdl");
const fs = require("fs");
const url = "VIDEO_URL_HERE";

XVDL.download(url, { type: "hq" }).pipe(fs.createWriteStream("./video.mp4"))

API

getInfo(url)

This method returns basic info of a video.

download(url, options?)

This method downloads a video of the given url.

search(query, page?)

This method can be used to search videos. You can also specify the page to search on.

browse(path?)

This method is used by search function. By default, it returns the videos of homepage.