Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java Parser

Reply
Thread Tools

Java Parser

 
 
Adam
Guest
Posts: n/a
 
      12-14-2005
Hello,

This is my third try at this posting. Something must be wrong with my
setup. Here's one last try. I'm looking for a Java HTML parser that will let
me parse checkbox names/values as well as their text labels. I need to write
a Java program that GETs a web page, processes it, then POSTs the desired
choices. I have seen many good parsers, but none that let me do what I want
without a lot of fuss.

TIA,
Adam


 
Reply With Quote
 
 
 
 
John Bailo
Guest
Posts: n/a
 
      12-14-2005
Adam wrote:

> This is my third try at this posting. Something must be wrong with my
> setup. Here's one last try. I'm looking for a Java HTML parser that will let
> me parse checkbox names/values as well as their text labels. I need to write
> a Java program that GETs a web page, processes it, then POSTs the desired
> choices. I have seen many good parsers, but none that let me do what I want
> without a lot of fuss.


Why don't you use a Regex with a Matches group to extract that
information from the HTML -- write your own parser basically.
 
Reply With Quote
 
 
 
 
Thomas Weidenfeller
Guest
Posts: n/a
 
      12-14-2005
Adam wrote:
> Hello,
>
> This is my third try at this posting. Something must be wrong with my
> setup.


And it is the third time I see it. Was there anything wrong with the
previous eight or so answers you got?

/Thomas
--
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/...g/java/gui/faq
http://www.uni-giessen.de/faq/archiv....java.gui.faq/
 
Reply With Quote
 
Chris Uppal
Guest
Posts: n/a
 
      12-14-2005
Thomas Weidenfeller wrote:

> > This is my third try at this posting. Something must be wrong with
> > my setup.

>
> And it is the third time I see it. Was there anything wrong with the
> previous eight or so answers you got?


Presumably he can't see them any more than he can see his own posts.

(FWIW, I've emailed him directly to say that his posts /are/ showing up, I
daresay I'm not the only one to do so...)

-- chris



 
Reply With Quote
 
Cos
Guest
Posts: n/a
 
      12-15-2005
Hey.

Try to google this thing
HTMLEditorKit.ParserCallback
Not the best HTML parser ever but it does job.

Cos

 
Reply With Quote
 
Adam
Guest
Posts: n/a
 
      12-17-2005
Hello all,

I finally got to see my post and all your kind responses. I still don't
have a good answer to my original post though. I am looking for a Java HTML
parser that would let me decode all the names, values and labels of a bunch
of checkboxes on a web page. I then want to present the info to my user and
POST a response. I guess what I am after is more like a simple interpreter
or browser. This is a labor of love for my wife actually. We homeschool our
children using a curriculum from Bob Jones University. They broadcast their
classes over satellite and have a web site to indicate schedules and such. I
want to be able to GET the class options and POST her choices
programmatically. I already have code that can digitally record the shows.
What I am missing is the ability to download and process the schedules.

TIA,
Adam

"Adam" <> wrote in message
news:1134527822.da693fb1f72dc8c9f7d4919d094af8eb@r oc.usenetexchange.com...
> Hello,
>
> This is my third try at this posting. Something must be wrong with my
> setup. Here's one last try. I'm looking for a Java HTML parser that will

let
> me parse checkbox names/values as well as their text labels. I need to

write
> a Java program that GETs a web page, processes it, then POSTs the desired
> choices. I have seen many good parsers, but none that let me do what I

want
> without a lot of fuss.
>
> TIA,
> Adam
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
import parser does not import parser.py in same dir on win Joel Hedlund Python 2 11-11-2006 03:46 PM
import parser does not import parser.py in same dir on win Joel Hedlund Python 0 11-11-2006 11:34 AM
XML Parser VS HTML Parser ZOCOR Java 11 10-05-2004 01:58 PM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger Java 0 06-09-2004 01:26 AM
XMLparser: Difference between parser.setErrorHandler() vs. parser.setContentHandler() Bernd Oninger XML 0 06-09-2004 01:26 AM



Advertisments