extract URLs using HtmlUnit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nikkhah
    New Member
    • Apr 2010
    • 12

    extract URLs using HtmlUnit

    I want to extract URLs and Titles of them from a page results. I could extract URLs using with gethrefAttribut e() in htmluni library but I don't know how extract the titles of them?
    could you help me?
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    Assuming you have an HTMLAnchor don't forget that this is also a DomElement. You should be able to use getNodeValue().

    Comment

    Working...