Skip to content

kyungw00k/ads-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ads-finder

js-standard-style

Find ads from web page

CLI Screenshot

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
    });

About

🔎 Find ads from web page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published