more useful options | |
PerlMonks |
Re: Re: (crazyinsomniac) Re: Extract info from HTMLby demerphq (Chancellor) |
on Nov 12, 2001 at 15:01 UTC ( [id://124796]=note: print w/replies, xml ) | Need Help?? |
Well, even though this wasnt addressed to me: Mine will extract all the above information just change the following lines Then you can extract whatever you want. Note that the depths are as follows:9 root node, 12 reply, 13, reply to a reply... But a thought: You dont want the posts from just a fixed depth in the parse tree. That would for instance eliminate you from the list (you dont have a reply to yourself) as well as anyone who explained their name in a reply to another persons explaination, merphq would be an example, however I believe there are more as well. Actually, one of the more interesting issues with this thread was acurately picking up all names from all levels, there is an annoying habit of <UL> tags messing up the pattern, also of the main post being marked up differently. Anyway, Ill revisit this a bit later, :-)
Yves / DeMerphq
In Section
Seekers of Perl Wisdom
|
|