Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/twlite/node-xvdl
🔞 Video downloader for xvideos.com written in pure JavaScript.
https://github.com/twlite/node-xvdl
api downloader javascript xvdl xvideos
Last synced: about 1 month ago
JSON representation
🔞 Video downloader for xvideos.com written in pure JavaScript.
- Host: GitHub
- URL: https://github.com/twlite/node-xvdl
- Owner: twlite
- License: other
- Created: 2021-02-05T09:28:31.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-26T14:56:15.000Z (over 3 years ago)
- Last Synced: 2024-04-23T23:46:55.000Z (7 months ago)
- Topics: api, downloader, javascript, xvdl, xvideos
- Language: JavaScript
- Homepage: https://npmjs.com/package/xvdl
- Size: 11.7 KB
- Stars: 11
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node XVDL
Video downloader for xvideos.com written in pure JavaScript.> âš NSFW Content, 18+ Only!
# Installation
```sh
$ npm install xvdl
```# Examples
## Getting info```js
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
```js
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.