Skip to content

Scrapes stock checker for Xbox Series X and PS5 inventory and sounds alarm when in stock

Notifications You must be signed in to change notification settings

chrisbradshaw/xbox-and-ps5-scraper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xbox-and-ps5-scraper

Scrapes stock checker for Xbox Series X and PS5 inventory and sounds alarm when in stock

Built With

  • 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.

Highlights

  • 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.

Development setup

npm i
node app.js

Article Explaining Logic

Author

Chris Bradshaw – @_chrisbradshaw[email protected]

This project is licensed under the MIT License.

https://github.com/chrisbradshaw

Contributing

  1. Fork it (https://github.com/chrisbradshaw/xbox-and-ps5-scraper)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

About

Scrapes stock checker for Xbox Series X and PS5 inventory and sounds alarm when in stock

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published