Tuesday 15 January 2013

url - Extracting html elements in a given region? -


Looking at the area defined by a rectangular and a URL, there is a way to determine what is given on the basis Elements within the rectangle are present on the given url?

Edit: Screen resolution, font size, etc. Everyone can be set as appropriate defaults

  • Get the document from the URL.
  • Render it (of the browser).
  • For each element in the browser's DOM:
    • Obtain the captured rectangle by element.
    • Comparing the rectangle of the element with the rectangle you are interested in it.

No comments:

Post a Comment