Content Adaptation
A system includes a mobile device and an optimization server. The mobile device is capable of transmitting request data that includes a requested webpage and identification data. The optimization server is configured to receive response data that corresponds to the request data from a content server, to adapt the response data based on the identification data, and to transmit the adapted response data to the mobile device.
1 . A method for identifying a content section of a data structure that represents a webpage, the method comprising:
traversing one or more nodes of the data structure;
determining whether a content section shall be created by comparing geometric properties of the node and any children nodes of the node with the geometric properties of a content section bucket; and
adapting the content section for a mobile device.
2 . The method of claim 1 , further comprising skipping the creation of the content section if the node is classified as the ignored element, or is an odd-shaped node and is associated with an <image> or <iframe> tag.
3 . The method of claim 1 , further comprising creating a content section if the node is classified as a tab box, is a text node and the text is not filler text, is classified as the simple element, or is classified as a grouping element whose geometric features fit within the content section bucket.
4 . The method of claim 3 , further comprising determining whether the node is classified as a tab box based at least on the relative number of hidden and visible children nodes of the node.
5 . A system comprising:
an optimization server configured to receive from a content server response data corresponding to request data that includes a requested webpage and identification data and that is transmitted from a mobile device, to adapt the response data to the mobile device based on the identification data, and to transmit the adapted response data to the mobile device, wherein adapting the response data includes identifying a content section of a data structure, wherein the identifying comprises:
traversing one or more nodes of the data structure;
determining whether a content section shall be created by comparing geometric properties of the node and any children nodes of the node with the geometric properties of a content section bucket; and
adapting the content section for the mobile device.
6 . The system of claim 5 , wherein identifying the content section further comprises skipping the creation of the content section if the node is classified as the ignored element, or is an odd-shaped node and is associated with an <image> or <iframe> tag.
7 . The system of claim 5 , wherein identifying the content section further comprises creating a content section if the node is classified as a tab box, is a text node and the text is not filler text, is classified as the simple element, or is classified as a grouping element whose geometric features fit within the content section bucket.
8 . The system of claim 7 , wherein identifying the content section further comprises determining whether the node is classified as a tab box based at least on the relative number of hidden and visible children nodes of the node.
9 . A non-transitory computer readable medium storing instructions that, when executed by a computer, cause the computer to perform a method of identifying a content section of a data structure that represents a webpage, the method comprising:
traversing one or more nodes of the data structure to determine whether a content section shall be created;
comparing geometric properties of the node and any children nodes of the node with the geometric properties of a content section bucket based on the determination; and
adapting the content section for a mobile device.
10 . The non-transitory computer readable medium of claim 9 , wherein the method further comprises skipping the creation of the content section if the node is classified as the ignored element, or is an odd-shaped node and is associated with an <image> or <iframe> tag.
11 . The non-transitory computer readable medium of claim 9 , wherein the method further comprises creating a content section if the node is classified as a tab box, is a text node and the text is not filler text, is classified as the simple element, or is classified as a grouping element whose geometric features fit within the content section bucket.
12 . The non-transitory computer readable medium of claim 11 , wherein the method further comprises determining whether the node is classified as a tab box based at least on the relative number of hidden and visible children nodes of the node.