Used libraries: 1- jsoup-1.8.3-javadoc 2- jsoup-1.8.3-sources 3- jsoup-1.8.3
How to use jsoup: http://jsoup.org/cookbook/extracting-data/example-list-links http://jsoup.org/cookbook/input/parse-body-fragment
To calculate the distance between two strings: I used Levenshtein distance algorithm
https://en.wikipedia.org/wiki/Levenshtein_distance
and http://stackoverflow.com help me to write the Levenshtein distance algorithm code and solve questions.