Skip to content

cuzzo/x-ray-tor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x-ray-tor

Tor driver for x-ray.

Crawl anonymously.

Usage

x-ray-tor has one usage: to interact use the Tor network to make x-ray requests.

Dependencies

Installation

npm install x-ray-tor

Example

var Xtor = require('x-ray-tor');
var Xray = require('x-ray');

var x = Xray()
  .driver(Xtor());

x('http://google.com', 'title')(function(err, str) {
  if (err) return done(err);
  assert.equal('Google', str);
  done();
})

API

tor(options)

Initialize the Tor driver with options.

var x = Xray()
  .driver(Xtor({
    torHost: "my-tor-ip-address",
    torPort: "my-tor-port",
    torPassword: "my-tor-password"
  });

License

x-ray-tor is free--as in BSD. Hack your heart out, hackers.

  • NOTE: x-ray itself is licensed MIT.

About

Tor driver for x-ray.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published