Can LWP look for specific HTML tags?
Nathaniel Good (good@cs.umn.edu)
Fri, 7 Nov 1997 01:13:22 -0600 (CST)
I would first like to say that I have been using LWP for three weeks now
and have found it very helpful.
I am currently working on a project that extracts the name of the link
and the link itself from within a list and writes these to a file. I
currently use LWP to connect to
the server and download the page to a file,where I then grep out the
info I need. I do this by starting from the '<OL>' tag, going to each
'<LI>'
tag,get the info in
the'<A>' tag and start the next item after the '</LI>' tag. I do this
process until I see the '</OL>' tag.
I bought the O'rielly web
client programming book and found
it very helpful. However the chapter on LWP was too brief for my needs.
It didn't fully explain several methods in the HTML module (for
example, AsSUbs,Parse vs. Parser, Entities and so forth) that I feel
would
probably be useful. Also, the extract_links() function is nice but ( as
far as I know) doesn't provide the ability to get the link name as well
as the link. I have two questions:
1) Can LWP read and search for specific tags (<LI> <OL> and so forth) and
if so what
function should I use?
2) How can I get more detailed information on LWP functions and methods?
If someone could point me to a URL or mention a book that has this
information I
would greatly appreciate it.
Thank you for your help and keep up the good work.
Nathan Good