How to extract specific content from webpage using jsoup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • praver235
    New Member
    • Feb 2013
    • 5

    How to extract specific content from webpage using jsoup

    I need to extract ONLY those publications from the web page http://www.informatik. uni-trier.de/~ley/pers/hd/r/Rao:Rahul.html, where the first author is Rahul Rao.

    I have tried the following code ,but it doesn't give me any output.
    Code:
    for( Element element : doc.select("table span.this-person.title") ){
    System.out.println(element.text());
    }
    What do I need to get the preferred output? Thank you in advance.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    You're probably using the wrong css selector. Use firebug on the site to see exactly which style you should be using in your code.

    Comment

    Working...