Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andre-carbajal/navidiscounts
NaviDiscounts is a telegram bot that helps you find discounts on your favorite products on certain websites.
https://github.com/andre-carbajal/navidiscounts
jsoup jsoup-html jsoup-library kotlin selenium selenium-java selenium-webdriver spring spring-boot spring-kotlin telegram-bot telegram-bot-api
Last synced: about 1 month ago
JSON representation
NaviDiscounts is a telegram bot that helps you find discounts on your favorite products on certain websites.
- Host: GitHub
- URL: https://github.com/andre-carbajal/navidiscounts
- Owner: andre-carbajal
- License: gpl-3.0
- Created: 2024-11-16T16:33:14.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-20T03:35:59.000Z (about 1 month ago)
- Last Synced: 2024-11-20T04:21:17.541Z (about 1 month ago)
- Topics: jsoup, jsoup-html, jsoup-library, kotlin, selenium, selenium-java, selenium-webdriver, spring, spring-boot, spring-kotlin, telegram-bot, telegram-bot-api
- Language: Kotlin
- Homepage:
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NaviDiscounts
NaviDiscounts is a telegram bot that helps you find discounts on your favorite products on certain websites.
## Website Supported
- [Mifarma](https://www.mifarma.com.pe/)
- [InkaFarma](https://inkafarma.pe/)## Commands
- `/start` - Get the list of commands.
- `/add` - Add a URL to the list of requests.
- `/delete` - Delete a URL from the list of requests.
- `/list` - Get the list of requests.
- `/stop` - Stop receiving product information and delete all added products.
- `/exe` - Execute the [scheduler](src/main/kotlin/net/andrecarbajal/telegramdiscountsbot/bot/Scheduler.kt). (only in
development)## Technologies
- [Kotlin](https://kotlinlang.org/)
- [Java Telegram](https://github.com/rubenlagus/TelegramBots)
- [PostgreSQL](https://www.postgresql.org/)
- [Jsoup](https://jsoup.org/)
- [Selenium](https://www.selenium.dev/)## How to build
1. Clone the repository.
2. Build the project with `./gradlew build`.
3. Run the project with:
```bash
java -jar build/libs/NaviDiscounts-{x.y}.jar --spring.profiles.active=prod --spring.datasource.url=jdbc:postgresql://{YOUR_DATABASE_HOST}:{YOUR_DATABASE_PORT}/{YOUR_DATABASE_NAME} --spring.datasource.username={YOUR_DATABASE_USERNAME} --spring.datasource.password={YOUR_DATABASE_PASSWORD} --spring.telegram.bot.token={YOUR_TELEGRAM_TOken}
```## how to use
1. Add the bot to your telegram account
2. Send the command `/start` to the bot
3. Send the command `/add` to the bot
4. Send the URL of the product you want to track
5. Wait for the bot to send you a message with the discount information
6. Enjoy!## Contributions
If you want to contribute to the project, you can create a pull request with the changes you want to make. If you have
any questions or issue, you can create an [issue](https://github.com/andre-carbajal/NaviDiscounts/issues).## License
This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](LICENSE) file for details.