Jsoup Parser is a parser designed to analyze a webpage and manipulate it.
Can be found in master branch of this project.
Current version: 1.1-SNAPSHOT
\doc\AppComposition
Packages a project using Maven
Create one jar file with dependencies inside using maven-shade-plugin in \target
Using Java 18
!App will create ./database folder
execute - shaded.jar file using java with command and arguments (if necessary) Commands:
getKeywordCount(url, keyword)- Search [keyword] in [url] and return number of matchessavePage(url)- save webpage from [url] in the root folderhelp- show list of avaible commandsaboutMe- show app info
to run any command write: java -jav .\JsoupParser-1.1-SNAPSHOT-shaded.jar command arguments
Commands (also can use help):
getKeywordCount(url, keyword)- Search [keyword] in [url] and return number of matchessavePage(url, path)- save webpage from [url] in the [path] folder (if folder not specified, saves in ./savedPages folder)dbCreate(String columnNames, String values)- insert new record with [values] in [columnNames] in databasedbUpdate(String setParameter, String condition)- update value of [setParameter] ("columnName = setName") where [condition] in databasedbRead(String readParameter, String condition)- read [readParameter] from database (with [condition] if specified)dbDelete(String condition)- delete rows with [condition] from database (or clear if [condition] not specified)help- show list of avaible commandsaboutMe- show app info
Author: Viga Rudr
Used:
-
Jsoup library. (https://jsoup.org)
-
SQLite JBDC Driver (https://www.sqlite.org/java/raw/doc/overview.html?name=0a704f4b7294a3d63e6ea2b612daa3b997c4b5f1)