1

I have tried below code but its not work

Document doc = Jsoup.connect(url).get();
 Elements elements=doc.select("style");
 for(Element element:elements){
  if(e.contains("font-family")){
   }

 }
1
  • 1
    jsoup (an HTML parser) will only get the contents of the <style> tag, you will have to use a CSS parser to parse the rules inside it. Related: stackoverflow.com/q/13158705/97160 Commented Nov 6, 2016 at 3:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.