Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

archambault-scraper

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

archambault-scraper

Scraper that searches products on the online store http://www.archambault.ca.

  • 0.0.1
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

archambault-scraper

Scraper that searches products on the online store archambault.ca.

Under development - API will change!

install

Using npm.

npm install hmv-scraper

usage

instantiate

var archambaultScraper = require('archambault-scraper');
var archambault = new archambaultScraper();

search by keyword

var query = {
  query: 'Ricardo',
  category: 'Books',
  sortBy: 'Relevance',
  order: 'Desc'
};

archambault.searchByKeyword(query, function(error, products) {
  if (error) {
    console.log(error);
  } else {
    console.log(products);
  }
});

search by artist

var query = {
  query: 'Led Zeppelin',
  category: 'Music',
  sortBy: 'Price',
  order: 'Desc',
  page: 1,
  limit: 25
};

archambault.searchByArtist(query, function(error, products) {
  if (error) {
    console.log(error);
  } else {
    console.log(products);
  }
});

sort by

  • 'Relevance'
  • 'Popularity'
  • 'Title'
  • 'Released'
  • 'Price'

order

  • 'Asc'
  • 'Desc'

categories

  • 'Sheet Music'
  • 'E-Books'
  • 'Music'
  • 'Videos and TV Shows'
  • 'Books'
  • 'Instruments'
  • 'Toys & Games'
  • 'Gifts and Stationary'

product

Example:

// a product from category 'Music'
{
  title: 'Dvd collector\'s box (2dvd)',
  artist: 'MUSE',
  url: 'http://m.archambault.ca/p/ACH003827472/',
  priceInCents: 3999,
  format: [ 'DVD' ],
  imageUrl: 'http://image4.archambault.ca/3/A/6/7/ACH003827472.1456167782.150x200.jpg',
  isPresale: true
};
// a product from category 'Sheet Music'
{
  title: 'In rainbows (guitare tablatures)',
  artist: 'RADIOHEAD',
  url: 'http://m.archambault.ca/p/ACH002239509/',
  priceInCents: 2999,
  format: [ 'Book' ],
  imageUrl: 'http://image3.archambault.ca/2/2/2/C/ACH002239509.1320868094.150x200.jpg',
  isPresale: false
};
// a product from category 'Books' or 'E-Books'
{
  title: 'Mijoteuse t02,la',
  writer: 'RICARDO LARRIVÉE',
  url: 'http://m.archambault.ca/p/ACH003760786/',
  priceInCents: 3995,
  format: [ 'Book' ],
  imageUrl: 'http://image4.archambault.ca/3/9/6/2/ACH003760786.1445313308.150x200.jpg',
  isPresale: false
};
// a product from category 'Videos and TV Shows'
{
  title: 'Casino Royale',
  producer: 'James Bond / Martin Campbell',
  url: 'http://m.archambault.ca/p/ACH003736987/',
  priceInCents: 899,
  format: [ 'DVD' ],
  imageUrl: 'http://image4.archambault.ca/3/9/0/5/ACH003736987.1444806084.150x200.jpg',
  isPresale: false
};
// a product from category 'Instruments'
{
  title: 'Guitare Stratocaster Relic Custom Shop David ...',
  brand: 'Fender',
  url: 'http://m.archambault.ca/p/ACH002263937/',
  priceInCents: 778000,
  format: [],
  imageUrl: 'http://image3.archambault.ca/2/2/8/B/ACH002263937.1444388454.150x200.jpg',
  isPresale: false
};
// a product from category 'Gifts and Stationary'
{
  title: 'Figurine pop minion bored silly kevin',
   url: 'http://m.archambault.ca/p/ACH003707732/',
   priceInCents: 1699,
   format: [],
   imageUrl: 'http://image4.archambault.ca/3/8/9/3/ACH003707732.1436500510.150x200.jpg',
   isPresale: false
 };

license

MIT

Keywords

FAQs

Package last updated on 16 Mar 2016

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