UNPKG

@mr.janiya/xnxx-scraper

Version:

A scraper for Xnxx videos and metadata.

116 lines (89 loc) 2.6 kB
# xnxx-scraper **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. --- ## Installation You can install `xnxx-scraper` via npm: ```bash npm install xnxx-scraper ``` Usage After installing, you can import the package and use its functionality. Import the Package ```bash const { xnxxSearch, xnxxDownload } = require('xnxx-scraper'); ``` Search Videos by Query Use xnxxSearch() to search for videos by query: ```bash xnxxSearch('example query').then((data) => { console.log(data); }).catch((err) => { console.error(err); }); ``` Example Output: ```bash { "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: ```bash xnxxDownload('https://www.xnxx.com/video-abc123').then((data) => { console.log(data); }).catch((err) => { console.error(err); }); ``` Example Output: ```bash { "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!