All crawlers used by What's New Games are referenced in this monorepo.
Fork this repo and clone your fork onto your machine. Then:
# install dependencies with pnpm (mandatory)
pnpm install
# cd to the folder of the game you want to edit
cd packages/<game-slug>
# check that it works out-of-the-box
pnpm run start
# here you should have a packages/<game-slug>/storage folder generate with the result of the crawler
# remove this folder if your want to start another run:
rm -rf packages/<game-slug>/storage
Then you should be ready to edit the source under packages/<game-slug>/src
directory.
Last step would be to create a Pull Request onto this repo. Once merged, it shouldn't be long before its data is imported into What's New Games.
Run the following command. It will prompt for necessary information:
pnpm run create-actor
# ? Game slug
# ? Game name
# ? Package folder (created under ./packages)
# ? Dataset ID
# ? Request Queue ID
Game slug and Game name are mandatory. Keep default values for the rest unless you know what you are doing. Game slug can be found on What's New Games:
- Search for the game you want to add
- Click on it. The URL will look like
https://whatsnew.games/game/star-citizen
- The Game slug is the part after
/game/
, i.e.star-citizen
in this example
Then check the steps of I want to edit a crawler.