gw2api-scraping
Scraping unofficial sites for information the API can't provide.
This is part of gw2efficiency. Please report all issues in the central repository.
Install
npm install gw2e-gw2api-scraping
This module can be used for Node.js. Theoretically it works in browsers using Browserify, but due to CORS most methods are not available.
Requires the babel-polyfill to work.
Usage
const scraping = // Get the current offers for claim tickets from wiki.guildwars2.comlet offers = await scraping // Get the dye categories (materials, sets, colors) from wiki.guildwars2.comlet categories = await scraping // Get the minipet set names from wiki.guildwars2.comlet sets = await scraping // Get the picture for an item from wiki.guildwars2.comlet itemPicture = await scraping // Get the current dungeon records from gw2-dungeons.netlet records = await scraping // Get the current achievement leaderboard from guildwars2.com// Note: this takes ~40 seconds because of heavy rate limitinglet leaderboard = await scraping // Get the gem price history from gw2spidy.comlet prices = await scraping // Get the cost to level professions from gw2crafts.netlet cost = await scraping
Tests
npm test
The tests of this module get executed against the live sites instead of mock objects, because the structure of the scraped pages could change at any time without notice.
Licence
MIT