This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Open Source Projects and the fly likes Does anyone have experience with htmlparser that can help me out? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Does anyone have experience with htmlparser that can help me out?" Watch "Does anyone have experience with htmlparser that can help me out?" New topic
Author

Does anyone have experience with htmlparser that can help me out?

Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590

java.io.IOException: Invalid Http response

The link here is dynamic, with tokens, how do I parse some web site using htmlparser?

http://htmlparser.sourceforge.net/

Thanks in advance
Jack
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41089
    
  44
That library hasn't been maintained for many years. If this was my problem I'd switch to a current library like HtmlUnit.


Ping & DNS - my free Android networking tools app
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
Ulf Dittmer wrote:That library hasn't been maintained for many years. If this was my problem I'd switch to a current library like HtmlUnit.


Thanks Ulf, I'll take a look at that one.
Jack
Jacky Luk
Ranch Hand

Joined: Aug 02, 2012
Posts: 590
I am just wondering how to capture Thumbelina (an image linked by this little thumbnail) of google with htmlunit.



Just wondering how to get the url of the tr, I can only retrieve the URI, not URL of the element.

Any example?
Thanks
Jack
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30085
    
149

Table rows don't have URLs. They have table cells (or headers.) Can you show a code snippet of what you are trying to parse?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
jQuery in Action, 2nd edition
 
subject: Does anyone have experience with htmlparser that can help me out?
 
Similar Threads
Tree Structure + Depth First Traversal?
How to grab data from <div> under <table> by using htmlparser library?
javac linking to jar file
HTML Parser unrecognized tags
HTML Tag problem