matthewmueller / x-ray

The next web scraper. See through the <html> noise.
MIT License
5.88k stars 350 forks source link

Throttle, Concurrency supported? #104

Closed thinkloop closed 9 years ago

thinkloop commented 9 years ago

Hello, the readme page says that throttle and concurrency are supported options, but it doesn't seem like they are implemented - am I missing something?

Thanks!

matthewmueller commented 9 years ago

You need to specify them on the base object:

var x = Xray().concurrency(2)
x(...)(url, fn)
thinkloop commented 9 years ago

Awesome! It worked, thank u.