A Golang-based scraper that tracks Uniqlo items on sale and sends the results to a Telegram channel or bot. It runs by comparing the previous fetched items with the current items and notifies you of any changes.
- Go 1.21
- A Telegram bot token. You can get one from BotFather.
- A Telegram chat ID where the results will be sent.
-
Clone this repository:
git clone https://github.com/pr0ph0z/uniqlo-sale.git cd uniqlo-sale
-
Install dependencies:
go mod install
-
Configure your environment variables:
Set the following environment variables in your shell or your shell scriptBOT_TOKEN=your_bot_token_here CHAT_ID=your_chat_id_here
-
Run the scraper:
go run main.go
-
The results will automatically be sent to your configured Telegram chat.
Since each country has almost its own website, for the time being the scrapper only supports the Indonesian website (https://www.uniqlo.com/id/id/) and is hardcoded in project.
To run the scraper periodically, you can set cron job on your own machine or you can use GitHub actions. I've already provided the workflow file in the .github/workflows
directory so you can fork the repository directly, set the environment variables, and enable the workflow.
Contributions are welcome! Feel free to submit a pull request or open an issue to suggest improvements.