This scraper will return all the listed games in the Nintendo Game Store.
The script uses puppeteer. It visits the websites and scrolls down to the bottom where it will load all of the games. After that we return the list of games and create a custom array of the listed games. After we have created the custom array we write it to a local json file.
[
...
{
"name": "Animal Crossing™: New Horizons",
"href": "https://www.nintendo.com/games/detail/animal-crossing-new-horizons-switch/",
"image": "https://assets.nintendo.com/image/upload/c_fill,f_auto,q_auto,w_360/ncom/en_US/games/switch/a/animal-crossing-new-horizons-switch/hero",
"platform": [
"Nintendo",
"Switch"
],
"date": [
"Mar",
"20,",
"2020"
]
},
...
]
First you will have to clone the project.
$ git clone https://github.com/Siddhartt/Nintendo-Game-Store-Scraper
In order to use the scraper you will have to install html2json and puppeteer. Use the following command to install the dependencies.
$ npm install html2json puppeteer
To scrape the games run the following command in the same directory as the index.js file.
$ node index.js
Congratulations! You have successfully scraped the games. If there are any errors please send me a dm on Discord Siddhartt#2194