https://github.com/basdgrt/price-comparator
https://github.com/basdgrt/price-comparator
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/basdgrt/price-comparator
- Owner: basdgrt
- Created: 2025-07-28T12:08:15.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-02T10:22:09.000Z (11 months ago)
- Last Synced: 2025-08-12T15:01:02.448Z (10 months ago)
- Size: 150 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Price Comparator
A service that compares prices by scraping pre-defined URLs, sends the comparison results to a Telegram channel, and is deployed as an AWS Lambda function triggered on a schedule.
## Setup
### Secrets Configuration
The application requires a `secrets.yaml` file for storing sensitive information. This file is not tracked in git for security reasons.
1. Copy the template file:
```
cp src/main/resources/secrets.yaml.template src/main/resources/secrets.yaml
```
2. Edit the `secrets.yaml` file and replace the placeholder values with your actual credentials:
```yaml
botToken: "your_telegram_bot_token"
chatId: "your_telegram_chat_id"
```
## Features
- Scrapes product prices from multiple websites
- Compares prices and identifies the best deals
- Sends notifications to a Telegram channel
- Runs on a schedule as an AWS Lambda function
## Building the application
1. Build the application as a fat JAR using the Shadow plugin:
```
./gradlew shadowJar
```
2. The JAR file will be created in the `build/libs` directory as `price-comparator.jar`.