ads-finder
v1.0.1
Published
Find ads from web page
Downloads
3
Readme
ads-finder
Find ads from web page
Install
$ npm install ads-finder
CLI Usage
Run an audit against a URL:
$ adsFinder m.inven.co.kr
or multiple URLs:
$ adsFinder www.daum.net m.inven.co.kr
Options
$ adsFinder --help
Find ads from web page
Usage
$ adsFinder <urls>
Example
adsFinder http://m.inven.co.kr
adsFinder www.daum.net m.inven.co.kr
Options
-s, --strategy Strategy to use when analyzing the page(mobile|desktop). defaults to 'desktop'
-d, --delay Sets the delay(ms) capturing the page. defaults to 300
Module usage
var adsFinder = require('ads-finder');
adsFinder('<url>')
.then(function(results) {
// results.ads.length;
})
.catch(function (err) {
// err
});
Passing options:
var adsFinder = require('ads-finder');
var options = {
strategy : 'mobile',
delay : 400
};
adsFinder('<url>', options)
.then(function(results) {
// results.ads.length;
})
.catch(function (err) {
// err
});