The Gamestop Monitor is a simple Go application that periodically monitors the availability of products on the Gamestop website. It collects data from the specified URL and evaluates the availability of products to notify users about any changes in product availability.
- Scrapes Gamestop website data from a specific URL.
- Evaluates the availability of products and generates messages if products become available.
- Periodically performs monitoring runs to keep track of changes.
- Uses Go's context package to manage concurrency and potential cancellations.
Before running the Gamestop Monitor, ensure you have the following installed:
- Go (Golang) - version 1.16 or later
- Internet connection to access the Gamestop website
-
Clone the repository:
git clone https://github.com/mr-meselmani/gamestop-monitor.git
-
CD to project:
cd gamestop-monitor
-
Fetch and download the dependencies:
go mod download
To start monitoring Gamestop products, run the main application:
go run .
The application will begin monitoring the Gamestop URL specified in the main.go
file. It will periodically check for product availability and generate messages for newly available products. The monitoring runs for ten iterations and then stops, but you can customize the run duration or limit as needed.
-
URL: The default URL to monitor is set in the
main.go
file. If you want to monitor a different Gamestop URL, modify theurl
parameter in themain.go
file. -
Run Duration: You can adjust the duration between monitoring runs by modifying the
time.Sleep()
value in themain.go
file.
This project is licensed under the MIT License.
Thank you for using the Gamestop Monitor! We hope this tool helps you stay informed about the availability of your favorite Gamestop products. If you have any questions or feedback, please don't hesitate to reach out.
Happy monitoring! 🚀