Javatpoint Logo
Javatpoint Logo

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. 




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA