Access xvideos (WARNING: NSFW) programmatically with Node.JS.
This module scrapes the HTML of xvideos.com and gives you information you can use in your node programs!
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);
});
Available via npm:
$ npm install xvideos
Or via git:
$ git clone git://github.com/deoxxa/xvideos.git node_modules/xvideos
Both the parser and serialiser are streams. The parser expects buffers on input and outputs objects. The serialiser expects objects on input and outputs buffers. See the Node.JS stream docs for more on how to use streams.
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
Also see example.js.
#!/usr/bin/env node
var xv = require("./");
// 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' }
3-clause BSD. A copy is included with the source.
- GitHub (deoxxa)
- Twitter (@deoxxa)
- ADN (@deoxxa)
- Email ([email protected])