2.1.1 • Published 9 years ago

hearthpwn-scraper v2.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
9 years ago

hearthpwn-scraper

hearthpwn-scraper features:

  • Get current most popular decks
  • Get deck info given an URL

Installing

npm install hearthpwn-scraper --save

Examples

const hearthpwn = require('hearthpwn-scraper');

hearthpwn.getPopularDecks()
  .then(popularDecks => console.log(popularDecks));

hearthpwn.getDeckInfo('http://www.hearthpwn.com/decks/422747-top-100-patron-by-mariohs-guide-mini-guide-in')
  .then(deckInfo => console.log(deckInfo));

getPopularDecks(options)

const hearthpwn = require('hearthpwn-scraper');
const options = {
    heroes: ['priest', 'paladin']
};

hearthpwn.getPopularDecks(options)
  .then(popularDecks => console.log(popularDecks));
2.1.1

9 years ago

2.1.0

9 years ago

2.0.0

9 years ago

1.4.3

10 years ago

1.4.2

10 years ago

1.4.1

10 years ago

1.4.0

10 years ago

1.3.0

10 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago