|
Re: rfe: tb_grab_hu/tv_sort (fwd): msg#00167tv.xmltv.devel
Ed Avis írta: ---------- Forwarded message ---------- Some additional details, I have read further a little bit, it is not tv_sort's fault, the missing programme data do not even reach the output of tv_grab_huro. It finishes parsing just before the secodn table that cotnains the advertisement and fails to read the last of the programme data (i.e., the third table). It seems to me that tv_grab_huro uses the perl HTML::Element module's look_down() method. The result of the table split by port.hu is the following oversimplified page-layout: ----------------------------------------------------------------------------------------------------------------- <html><body> .... <table><!-- first table-half of programme data --> ....<td align="right" valign="top" ... >...programme-data row....</td> </table> <table>.....ad banner placement....</table> <table><!-- second table-half of programme data, tv_gra_huro fails to parse it --> ....<td align="right" valign="top"...>...programme-data row....</td> </table> </body></html> --------------------------------------------------------------------------------------------------- IIRC the tv_grab_huro "looks-down" as-follows: my @txt_cont = $tree->look_down("_tag"=>"td", "align"=>"right", "valign"=>"top"); This should work for both tables (i.e., 1st and 3rd) if the $tree points to a common parent of both tables, if I read correctly the docs: The perldoc page sais that look_down() gives only the first result in certain circusmtances, but I am not a perl programmer. However, it apparently does not. Any idea? Thanks, Gabor ps.: pls, keep me in the CC, I am already receive 40+ mails daily (beyond 70+ spams), I would like not to subscribe yet another mailing list, especially where the technology (perl) beyond my knowledge.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Re: Re: Australian tv grabber: 00167, Fredrik Högberg |
|---|---|
| Next by Date: | Re: Re: Re: Australian tv grabber: 00167, Elliot Shepherd |
| Previous by Thread: | rfe: tb_grab_hu/tv_sort (fwd)i: 00167, Ed Avis |
| Next by Thread: | Re: rfe: tb_grab_hu/tv_sort (fwd): 00167, Stefan Siegl |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |