https://github.com/aggstam/tourismbookinganalysis
Console application performing a booking analysis, by extracting information from sites.
https://github.com/aggstam/tourismbookinganalysis
java scraper
Last synced: 8 days ago
JSON representation
Console application performing a booking analysis, by extracting information from sites.
- Host: GitHub
- URL: https://github.com/aggstam/tourismbookinganalysis
- Owner: aggstam
- License: apache-2.0
- Created: 2021-11-03T18:28:09.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-31T17:04:23.000Z (almost 3 years ago)
- Last Synced: 2025-01-12T20:33:32.374Z (10 months ago)
- Topics: java, scraper
- Language: Java
- Homepage:
- Size: 6.06 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TourismBookingAnalysis
This console application performs a tourism booking analysis, by searching and extracting accommodations information for tourist destinations from target URLs, based on specific search terms.
Users can interact by selecting an action with their input.
Note: project requires *java* to be installed.
External jars sqlite-jdbc-3.30.1.jar and jsoup-1.15.3.jar are provided.
## Usage
First we compile the project:
```
% javac -cp libs/sqlite-jdbc-3.30.1.jar:libs/jsoup-1.15.3.jar src/**/*.java -d bin
```
Then we can execute:
```
% java -cp libs/sqlite-jdbc-3.30.1.jar:.:libs/jsoup-1.15.3.jar:.:bin com.tba.Main
```
## Execution example
```
❯ java -cp libs/sqlite-jdbc-3.30.1.jar:.:libs/jsoup-1.15.3.jar:.:bin com.tba.Main
Jan 22, 2023 5:21:35 PM com.tba.database.DatabaseAdapter
INFO: Database connection initialized successfully.
Jan 22, 2023 5:21:35 PM com.tba.Main main
INFO: Tourism Booking Analysis application started.
Jan 22, 2023 5:21:35 PM com.tba.Main main
INFO: Welcome to Tourism Booking Analysis application!
Please select one of the following actions:
1 -> Insert Search Term(Destination and Date)
2 -> Start search functionality.
3 -> Show statistics of a Search Term.
4 -> Export last search results.
5 -> Export statistics of a Search Term.
6 -> Terminates the application.
Jan 22, 2023 5:21:35 PM com.tba.Main retrieveInputAction
INFO: Enter action number:
4
Jan 22, 2023 5:21:44 PM com.tba.Main retrieveInputAction
INFO: User input: 4
Jan 22, 2023 5:21:44 PM com.tba.Main exportLastSearchProperties
INFO: You must execute a search before proceeding!
Jan 22, 2023 5:21:44 PM com.tba.Main retrieveInputAction
INFO: Enter action number:
6
Jan 22, 2023 5:21:46 PM com.tba.Main retrieveInputAction
INFO: User input: 6
Jan 22, 2023 5:21:46 PM com.tba.database.DatabaseAdapter closeDatabase
INFO: Database connection terminated successfully.
Jan 22, 2023 5:21:46 PM com.tba.Main main
INFO: Tourism Booking Analysis application terminated.
```