This is very simple application, which checks the Website of a well-known bike-reseller (Can*on) for bike-models in specific sizes and sends an email message to a configured e-mail address, if the desired bike becomes available.
This app is built as a simple spring-boot console-app using Jsoup to crawl the specific website. No UI needed.
- run mvn clean install
- start the application with the respective java command i.e. on your own web-server or a local machine
Everything is configured in the application.yaml of the app.
Simply configure your mail-server providing:
- a username
- a password
- a host
- a port
- and a protocol
- a from-mail address
In order to configure the mail to receive the alerts, simply specify the mail-to property.
In order to configure the time-scheme for the crawler, a spring-boot cron expression can be given (
To specify the bikes, simply gives the bikes-details page to the bikes.details.urls property in the application.yaml. This parameter takes a comma separated list of urls. So can crawl for more than one bike at once. Additionally to the bike types, sizes can also be given by the bikes.details.sizes parameter. Again, this parameter takes a list of comma-separated sizes.