get-images

0.0.4 • Public • Published

get-images

scrape a page and get an array of all the <a> links to pngs or jpegs

Installation

npm install get-images

Usage

var getImages = require('get-images')
getImages('http://substack.net/images', function(err, images) {
  // => images is an array of image urls like ["http://substack.net/images/1up.png"]
})

Bonus feature

there is a built in proxy server (server.js) that you should run with sudo server.js and then open http://localhost/?url=http://substack.net/images/

License

BSD

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i get-images

Weekly Downloads

0

Version

0.0.4

License

none

Last publish

Collaborators

  • maxogden