Application for crawling web sites and Application for crawling web sites and saving to disk online file structure.
NOTE: Please use different url than the one specified in code. This one is just for illustration purposes.
These instructions will explain you how to get a copy of the project up and running on your local machine for development and testing purposes.
In order to build the project you need to have Java 1.8+ installed on your machine.
To check if Java is already installed on your machine, open the terminal window and run the following command:
java --version
It is assumed that you've opened your terminal window and navigated to the directory of this document.
In order to run the application, you can execute the gradle run
task with specified command line arguments --args
.
This command will compile the application and start the main class.
./gradlew run --args="an url"
./gradlew clean test
We should pass 1 argument when running the application and it should be the url of a web site we want to crawl.
-
Crawl web site from specified url:
Command:
./gradlew run --args="http://www.burgerking.no/"
NOTE: Following url is used only as an example. Specify different url when running the application.