Patent ID: 7555480

Claim:
A method of searching data records on a web page, the method comprising: storing, in a memory, instructions for performing the method of searching data records on a web page; executing the instructions on a processor; according to the instructions being executed: receiving data records selected by a user from a displayed web page; defining a web block based on the data records that were selected by the user, wherein the web block represents search criteria to be used to identify a similar web block of data records on another web page; generating a structure template based on the defined web block, wherein the structure template represents an underlying schema of the web block; comparing the generated structure template to a structure of other data records displayed on another web page; and determining if the structure of the other data records matches the generated template, wherein the determining if other data records match the generated template comprises calculating a minimum difference using an equation, Diff ⁡ ( T , T ′ ) = n ⁡ ( T ) + n ⁡ ( T ′ ) - 2 - ∑ 0 ≤ i < m ⁢ n ⁡ ( S pi ) + n ⁡ ( S pi ′ ′ ) - Diff ⁡ ( S pi , S pi ′ ′ ) wherein: the generated template, T is a Document Object Model (DOM) tree template based on the defined web block; T′ is a DOM tree of the other data records; n(T) is a number of nodes in T; n(T′) is a number of nodes in T′; m is a number of pairs of corresponding sub-trees in T and T′; Spi is a sub-tree of T; Spi′ is a sub-tree of T′; n(Spi) is a number of nodes in Spi; and n(Spi′) is a number of nodes in Spi′ Diff (T, T″) is recursively defined to be the edit distance between T and T′; Diff(S pi , S′ pi ′) is recursively defined to be the edit distance between S pi and S′ pi ′.