Jsoup Example: print meta data of an URL

In this example, we will print the meta keywords and description of an URL. To do so, you need to call select(), first(), get() and attr() methods of Document class.

Output:

Meta keyword : jsoup, tutorial, beginners, professionals, introduction, example, java, html, parser
Meta description : Jsoup tutorial for beginners and professionals provides html parsing facility 
in java with examples of printing title, links, images, form elements from url. 




Contact US

Email:[email protected]

Get Metadata of URL
10/30