Scrapes stock checker for Xbox Series X and PS5 inventory and sounds alarm when in stock
- Axios - Promise based HTTP client for the browser and node.js
- Cheerio - Tiny, fast, and elegant implementation of core jQuery designed specifically for the server
- Player - A command line player, supports play mp3 both from url and local stream.
- Open - Open stuff like URLs, files, executables. Cross-platform.
- Scrapes multiple endpoints and aggregates data for analysis.
- Parses DOM element using cheerio.
- If suitable in stock match is found, opens URL in default browser and sounds alarm on computer.
- Checks for stock every 5 minutes while running.
npm i
node app.js
- Read an article explaining the logic here: LinkedIn Post about Logic
Chris Bradshaw – @_chrisbradshaw – [email protected]
This project is licensed under the MIT License.
https://github.com/chrisbradshaw
- Fork it (https://github.com/chrisbradshaw/xbox-and-ps5-scraper)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request