<meta property="og:description" content="At a very young age, life begins to change">
私はjsoupを使ってアンドロイドで上記のコンテンツをスクラップしたい
Document document = Jsoup.connect(url).get();
String desc = document.select(query).text();
どのようなクエリになりますか?
回答:
回答№1は0あなたが始める前に、あなたはjsoup cookbookの中を見なければなりません https://jsoup.org/cookbook/
次のコードを使用することができます。
String html = "<meta property="og:description" content="At a very youngage, life begins to change">";
Document doc = Jsoup.parse(html);
String des = doc.select("meta").attr("content");