Re: [Htmlparser-user] coordinates of text rendered on browser.
Brought to you by:
derrickoswald
|
From: Gurpreet S. <gur...@gm...> - 2005-12-22 11:07:46
|
Thanks for the reply Naveen. >>>HTML parser will give you position if site is using absolute positioning and proper coordinates have been set in the STYLE attribute. How do we capture that information through HTML Parser. Lets say if I need the coordinates of each element on http://news.bbc.co.ukHow do I achive that? Thanks for your help, Gurpreet Singh On 12/22/05, Naveen Kohli <nav...@gm...> wrote: > > HTML parser will give you position if site is using absolute positioning > and proper coordinates have been set in the STYLE attribute. Otherwise, n= o > HTML parser can't give you the coordinates. > > > > Naveen > > > ------------------------------ > > *From:* htm...@li... [mailto: > htm...@li...] *On Behalf Of *Gurpreet > Sachdeva > *Sent:* Thursday, December 22, 2005 5:51 AM > *To:* htm...@li... > *Subject:* [Htmlparser-user] coordinates of text rendered on browser. > > > > Hi guys, > > I have a basic query. Do HTML Parser gives me the coordinates of text as > rendered on the browser? > > When I tried this: > java -jar lib/htmlparser.jar http://news.bbc.co.uk A > > It gave something: > > LinkData > -------- > 0 Txt (55846[3258,81],55858[3258,93]): News sources > *** END of LinkData *** > Link to : http://www.bbc.co.uk/info/; titled : About the BBC; begins at : > 55875; ends at : 55934, AccessKey=3Dnull > LinkData > -------- > 0 Txt (55934[3259,65],55947[3259,78]): About the BBC > *** END of LinkData *** > Link to : http://news.bbc.co.uk/newswatch/ukfs/hi/feedback/default.stm; > titled : Contact us; begins at : 55964; ends at : 56067, AccessKey=3Dnull > LinkData > -------- > 0 Txt (56067[3260,109],56077[3260,119]): Contact us > *** END of LinkData *** > > In the End... > Does these numbers (56067[3260,109],56077[3260,119]) refer to the > coordinates? if not can I by some way get those coordinates that are > rendered in a standard browser (Mozilla/Firefox) > > Thanks and Regards, > Gurpreet Singh > > -- Thanks and Regards, GSS |