npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

get-xvideos

v1.0.0

Published

Get information from xvideos.com

Downloads

5

Readme

XVideos

Access xvideos (WARNING: NSFW) programmatically with Node.JS.

Overview

This module scrapes the HTML of xvideos.com and gives you information you can use in your node programs!

Super Quickstart

var xv = require("xvideos");

xv.details("http://www.xvideos.com/video3823160/stranded_busty_sweetie_decides_to_have_sex_with_a_stranger_in_public_for_money", function(err, details) {
  console.log(err, details);
});

Installation

Available via npm:

$ npm install xvideos

Or via git:

$ git clone git://github.com/deoxxa/xvideos.git node_modules/xvideos

Usage

The xvideos package exports a single documented function right now, details.

XVideos API

details

Gets details about a specific video.

xv.details(uri, cb);
// get details about a video
xv.details("http://www.xvideos.com/video3823160/stranded_busty_sweetie_decides_to_have_sex_with_a_stranger_in_public_for_money", function(err, details) {
  console.log(err, details);
});

Arguments

  • uri - a full url to an xvideos video page
  • cb - a callback to be called in the normal node way with an error (or null) and the video details

search

Performs a search and returns the results. parameters is an object that is used to construct the query string for the search URL. Available parameters are: k (the actual search string), sort (relevance, uploaddate, rating), datef ("date filter"), (all, today, week, month), durf ("duration filter"), (allduration, 1-3min, 3-10min, 10min_more), and p, which is the page number.

xv.search(parameters, cb);
// get details about a video
xv.search({k: "porn"}, function(err, results) {
  console.log(err, results);
});

Arguments

  • parameters - an object containing parameters for the query string (see above for details about its properties)
  • cb - a callback to be called in the normal node way with an error (or null) and the search results

Example

Also see example.js.

#!/usr/bin/env node

var xv = require("xvideos");

// get details about a video
xv.details("http://www.xvideos.com/video3823160/stranded_busty_sweetie_decides_to_have_sex_with_a_stranger_in_public_for_money", function(err, details) {
  console.log(err, details);
});

Output (example):

null { title: 'Stranded busty sweetie decides to have sex with a stranger in public for money',
  duration: '5 min',
  tags:
   [ 'amateur',
     'bigtits',
     'brunette',
     'busty',
     'european',
     'flashing',
     'hardcore',
     'money',
     'outdoor',
     'POV',
     'public' ],
  flv: 'http://porn.im.cbce7ca3.3823160.x.xvideos.com/videos/flv/f/e/6/xvideos.com_fe6e41a62c4162b6b9ff750620acf599.flv?e=1366800046&ri=1024&rs=85&h=2cf1096659393b4c153b7cdfe93a8889' }

License

3-clause BSD. A copy is included with the source.

Contact