Jsoup示例:打印URL的元数据

2024年8月29日 | 1 分钟阅读

在本例中,我们将打印URL的元关键词和描述。为此,您需要调用Document类的select()、first()、get()和attr()方法。

输出

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. 
下一个主题打印URL的图片