Skip to content

bbondy/ad-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ad-info

Library to analyzes a webpage to extract container ad iframes

Installation

npm install --save ad-info

Usage

import {init, getAdInfo, exit} from 'ad-info';
init()
  .then(getAdInfo.bind(null, 'http://www.slashdot.org'))
  .then(info => console.log('Slashdot ad containers: ', info))
  .then(getAdInfo.bind(null, 'http://news.yahoo.com'))
  .then(info => console.log('Yahoo ad containers: ', info))
  .then(exit)
  .catch((err) => console.error('something went wrong!', err))

About

Analyzes a webpage to extract container ad iframes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published