Socket
Socket
Sign inDemoInstall

stocksnap.io

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stocksnap.io

A make-shift api interpreter for stocksnap.io


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

node-stocksnap.io

A make-shift api interpreter for stocksnap.io

Installation

  npm install stocksnap.io --save

Usage

Variables:
query:(string) Search term, can be null (will default to no search).  
options:(object) can contain:  
  * sort:(string) Source of images by sort by pages, can be relevance (when using a   search query), date, trending, views, downloads and favorites.  
  * pages:(int) Amount of pages you want to rip.  
  * shuffle:(bool) If you want to shuffle the final array for a more random array of   photos.  
  * highres:(bool) If you want the image links referencing to the downloadable high res images instead of the thumbnails.

fn:(function) Callback that gives an array with photos as a variable.  
Code
//Require the module
var stocksnap = require('stocksnap.io');

//options object
var options = {
  sort: 'views'
};

//Getting pictures of doors
stocksnap('doors', options, function (snaps) {
  console.log('Pictures of doors', snaps);
});
//Look at test.js for more examples

Tests

  npm test

Contributing

Do whatever, and give me a pull request. Sorry for the sloppy coding.

License

Check LICENSE for more information.

Keywords

FAQs

Package last updated on 07 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc