From: Dominik 'R. M. <do...@gr...> - 2006-03-02 17:43:22
|
On Wednesday, 01 March 2006 at 17:31, David Saez Padros wrote: > Hi !! > > >>just take a look at any parser that uses that functions and avoid > >>looking at the functions code itself, it will show you how to use that > >>functions (handlers using that functions, almost all, are quite simple > >>to understand) > > > >Yes, the handlers are easy to understand, but my trying to use those > >functions in a similar way doesn't yield good results. > > > >Here's sample output for one of the domains I use, i.e. pekin.waw.pl. > > you should use > > $r = get_blocks($data_str['rawdata'], $items); > > instead of > > $r = get_blocks($data_str, $items); > > also you need to parse blocks with generic_parse_b instead of using > get_contacts. I have attached a working pl handler, it will left to > detect name servers but it's not possible by now, i will try to change > something in the parser so nameserver could be correctly detected. Thank you, it works nicely. Here's my attempt to extract nservers and fix up city into pcode and city (patch attached). Seems to work fine. Regards, R. -- The Fremen were supreme in that quality the ancients called "spannungsbogen" -- which is the self-imposed delay between desire for a thing and the act of reaching out to grasp that thing. -- from "The Wisdom of Muad'Dib" by the Princess Irulan |