WO2013017009A1 - 一种用于获取目标页面的方法与设备 - Google Patents

一种用于获取目标页面的方法与设备 Download PDF

Info

Publication number
WO2013017009A1
WO2013017009A1 PCT/CN2012/078447 CN2012078447W WO2013017009A1 WO 2013017009 A1 WO2013017009 A1 WO 2013017009A1 CN 2012078447 W CN2012078447 W CN 2012078447W WO 2013017009 A1 WO2013017009 A1 WO 2013017009A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
target
target page
mobile device
difference information
Prior art date
Application number
PCT/CN2012/078447
Other languages
English (en)
French (fr)
Inventor
邢皖甲
Original Assignee
百度在线网络技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 百度在线网络技术(北京)有限公司 filed Critical 百度在线网络技术(北京)有限公司
Publication of WO2013017009A1 publication Critical patent/WO2013017009A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation

Definitions

  • the present invention relates to the field of wireless Internet technologies, and in particular, to a technique for acquiring a target page. Background technique
  • a method for acquiring a target page on a mobile device side includes the following steps:
  • A sends an access request for the target page submitted by the user through the mobile device to the network device;
  • D provides the target page to the mobile device.
  • a method for assisting in acquiring a target page on a network device side includes the following steps: a receiving an access request from the mobile device about the target page; b obtaining the target page according to the access request;
  • a mobile device for acquiring a target page includes:
  • a request sending device configured to send, to the network device, an access request for the target page submitted by the user through the mobile device
  • a differential information receiving device configured to receive page difference information corresponding to the target page sent by the network device
  • a page generating device configured to generate the target page according to the page difference information and in combination with a reference page corresponding to the target page;
  • a page providing device configured to provide the target page to the mobile device.
  • a network device for assisting in acquiring a target page includes:
  • a request receiving device configured to receive an access request sent by the mobile device about the target page
  • a page obtaining device configured to acquire the target page according to the access request
  • a difference processing device configured to: according to a reference page corresponding to the target page, combined with a visible attribute of a page element in the target page, Performing differential processing on the target page to obtain page difference information corresponding to the target page;
  • a differential information sending device configured to send the page difference information to the mobile device.
  • a system for acquiring a target page including the above-described mobile device and the network device as described above, is also provided.
  • the present invention obtains page difference information by performing differential processing on the reference page and the target page according to the visible attributes of the page, and the network device only needs to put the page.
  • the difference information is provided to the mobile device, and the mobile device superimposes the difference information of the page on the basis of the reference page to obtain the target page, so that the user obtains the target page, reduces the waiting time, saves the traffic, improves the browsing efficiency of the user, and improves the browsing efficiency.
  • FIG. 1 shows a schematic diagram of a device for acquiring a target page in accordance with an aspect of the present invention
  • FIG. 2 shows a schematic diagram of an apparatus for acquiring a target page in accordance with a preferred embodiment of the present invention
  • FIG. 3 is a flowchart showing a method for acquiring a target page according to another aspect of the present invention.
  • FIG. 4 shows a flow chart of a method for obtaining a target page in accordance with a preferred embodiment of the present invention.
  • the mobile device 1 includes a request transmitting device 11, a difference information receiving device 12, a page generating device 13, and a page providing device 14;
  • the network device 2 includes a request to receive The device 21, the page obtaining means 22, the difference processing means 23, and the difference information transmitting means 24.
  • the mobile device 1 includes, but is not limited to, any mobile electronic product that can interact with a user through a keyboard, a touch pad, a touch screen, or a handwriting device, such as a notebook, a mobile phone, a PDA, a palmtop PPC, or a tablet.
  • Network device 2 includes, but is not limited to, a network host, a single network server, a plurality of network server sets, or a cloud of multiple servers.
  • the cloud is made up of a large number of computers based on Cloud Computing or A network server is constructed, wherein cloud computing is a kind of distributed computing, a super virtual computer composed of a group of loosely coupled computers.
  • the communication between the mobile device 1 and the network device 2 is independent of each other, including but not limited to packet data transmission based on, for example, the TCP/IP protocol, the UDP protocol, and the like.
  • packet data transmission based on, for example, the TCP/IP protocol, the UDP protocol, and the like.
  • the mobile device 1, the network device 2, and the network connected therebetween, and the communication method are only examples, and other existing or future mobile devices, network devices or networks, and communication methods may be applicable.
  • the invention is also intended to be included within the scope of the invention and is hereby incorporated by reference.
  • the devices between the mobile device 1 and the network device 2 cooperate with each other to complete the acquisition of the target page.
  • the request transmitting device 11 in the mobile device 1 transmits an access request for the target page submitted by the user through the mobile device 1 to the network device 2;
  • the request receiving device 21 in the network device 2 receives the target information transmitted from the mobile device 1 An access request of the page;
  • the page obtaining means 22 acquires the target page according to the access request;
  • the difference information transmitting device 24 transmits the page difference information to the mobile device 1; and receiving differential information in the mobile device 1
  • the device 12 receives the page difference information corresponding to the target page sent by the network device 2;
  • the page generating device 13 generates a site according to the page difference information and the reference page corresponding to the target page.
  • each of the above devices continues to work continuously.
  • continuous means that each of the above devices continuously performs transmission and reception of an access request for a target page, acquisition and difference processing of a target page, transmission and reception of page difference information, and a target page. The generation and provisioning until the user stops submitting an access request for the target page through the mobile device 1.
  • the request transmitting device 11 in the mobile device 1 transmits an access request for the target page submitted by the user through the mobile device 1 to the network device 2. Specifically, the user submits an access request for the target page by clicking, swiping, long pressing, or inputting a web address in the mobile device 1 by interaction with the mobile device 1; the request transmitting device 11 calls the mobile device 1 provided by the application programming interface (API), or by such as JSP, ASP, PHP and other page technologies, obtain the access request submitted by the user about the target page, and then call the application interface (API) submitted by the network device 2 one or more times or other agreed communication methods to the network Device 2 sends the access request for the target page.
  • API application programming interface
  • the access request includes the page address of the target page, the page name, the page identifier, and the like, or the access request may further include the current browsing page of the user, the page address of the reference page determined by the mobile device, and the page.
  • the identification information such as the name, the page identifier, and the like; the request transmitting means 11 generates the access request by writing the identification information of the target page, the reference page, or both into a specific field or data unit.
  • the current browsing page that the user is browsing is P1
  • the user submits an access request for the target page P2 by clicking a link on the target page P2 in the page
  • the request transmitting device 11 acquires through a page technology such as JSP.
  • An access request submitted by the user, and an access request is generated by writing the identification information of the current browsing page P1, the identification information of the target page P2, and the like into a specific field of the access request, and then calling the network device 2 to submit the request.
  • An application program interface (API) or other agreed communication method transmits the access request for the target page P2 to the network device 2.
  • the request receiving means 21 in the network device 2 receives an access request from the mobile device 1 regarding the target page. Specifically, the request receiving device 21 receives an access request from the mobile device 1 regarding the target page, for example, through an application program interface (API) or other agreed communication method described in the above example.
  • API application program interface
  • the page obtaining means 22 acquires the target page according to the access request. Specifically, the page obtaining means 22 extracts the identification information about the page address, the page name, the page identifier, and the like of the target page from the specific field or the data unit of the request according to the access request for the target page received by the request receiving device 21. According to the identification information, the target page corresponding to the identification information is obtained by, for example, performing a matching query in the page information database.
  • the page information database stores a page and a page address, a page A mapping relationship between the identification information and the like, which can be crawled to different pages by the web crawler and the database information base is established or updated, and the page information base can be located at the network device.
  • a third party device such as a network site connected to the network device 2 through the network.
  • a third party device such as a network site connected to the network device 2 through the network.
  • the difference processing device 23 performs differential processing on the target page according to the reference page corresponding to the target page and the visible attribute of the page element in the target page to obtain a page difference corresponding to the target page. information. Specifically, the difference processing device 23 determines, according to the target page acquired by the page obtaining device 22, a reference page corresponding to the target page, such as using the current browsing page of the user as a default reference page, or according to a specific field from the access request.
  • the differential processing device 23 performs differential processing on the target page according to the visible attribute of the page element in the target page, including but not limited to: 1) directly differentiating the source code of the target page according to the source code of the reference page.
  • Processing obtaining candidate page difference information, and filtering, according to the visible attributes of the page elements in the candidate page difference information, page elements having visible attributes such as visually visible, operationally visible, or a combination of the two, as corresponding page difference information; 2) First, according to the page code of the reference page and the target page, generate a dom tree or a render tree, and then perform differential processing on the dom tree or the render tree of the two pages, for example, by using a maximum common subsequence method to obtain candidate page difference information.
  • the access request includes a page address about the target page P2; the request receiving device 21 in the network device 2 receives the access request; the page obtaining means 22 extracts the page address of the target page P2 from the specific field of the access request.
  • Obtaining the target page P2 by performing a matching query in a page information library, etc.; assuming that the reference page defaults to the current browsing page P1 of the mobile device 1, the difference processing device 23 refers to the reference corresponding to the target page P2.
  • the page, that is, P1 performs differential processing on the target page P2 and the reference page P1 to obtain candidate page difference information ⁇ , and the page elements in the candidate page difference information ⁇ have visible attributes such as visually visible or operationally visible, therefore, The corresponding page difference information is.
  • the visible attribute such as the visually visible attribute and the operation visible attribute of the page element may be determined according to information corresponding to the page element in the page code, or obtained according to the corresponding page matching query in the page attribute library, where the page attribute library is An operation visible attribute storing a page element in the page, the page attribute library may be located in the network device 2 or in a third party device connected to the network device 2 through the network.
  • the manner of performing differential processing on the target page is only an example, and other existing or future possible methods for differential processing of the target page may be applicable to the present invention, and should also be included in the present invention. It is within the scope of protection and is hereby incorporated by reference.
  • the differential information transmitting device 24 transmits the page difference information to the mobile device 1. Specifically, the differential information transmitting device 24 invokes an application program interface (API) provided by the mobile device 1 or other agreed communication methods, such as a network protocol such as http or https, one or more times in real time, periodically, or event-triggered.
  • API application program interface
  • the page difference information provided by the differential processing device 23 is transmitted to the mobile device 1.
  • the difference information receiving device 12 in the mobile device 1 receives the page difference information corresponding to the target page transmitted from the network device 2. Specifically, the differential information receiving device 12 is received from the network device 2 by, for example, an API or other agreed-upon manner described in the foregoing example. The page difference information sent corresponding to the target page.
  • the page generating means 13 generates the target page based on the page difference information and in conjunction with a reference page corresponding to the target page. Specifically, the page generating device 13 combines the page difference information received by the difference information receiving device 12 with the reference page corresponding to the target page, such as using the current browsing page of the user in the mobile device 1 as a default.
  • the page difference information obtained by differential processing by the difference processing device 23 is ⁇ ; the difference information transmitting device 24 transmits the page difference information ⁇ to the mobile device by calling an application program interface (API) provided by the mobile device 1. 1; the difference information receiving device 12 in the mobile device 1 receives the page difference information ⁇ ; subsequently, the page generating device 13 superimposes the page difference information ⁇ on the reference page according to the page difference information ⁇ , that is, the current browsing page of the user On P1, the target page P2 is generated.
  • the page generating means 13 performs a addition and deletion operation corresponding to the difference data on the difference data corresponding to the page difference information in the reference page corresponding to the target page to obtain the target page.
  • the page generating device 13 performs the page source code, the dom tree or the render tree of the reference page according to the page difference information, such as the difference data of the target page relative to the reference page and its corresponding adding or deleting operation.
  • the superposition processing if the page difference information includes a difference data to be deleted, deleting a corresponding page element at a position corresponding to the difference data in a page source code, a dom tree or a render tree of the reference page, or
  • the page difference information includes a difference data to be added, and the corresponding page element is inserted at a position corresponding to the difference data in the page source code, the dom tree or the render tree of the reference page, so that the corresponding target page is obtained.
  • the manner of generating the target page is only an example, and other existing or future possible methods for generating the target page may be applicable to the present invention, and should also be included in the scope of protection of the present invention.
  • the present invention performs differential processing on the reference page and the target page to obtain page difference information, and the network device only needs to compare the page difference.
  • the information is provided to the mobile device, and the mobile device superimposes the difference information of the page on the basis of the reference page to obtain the target page, so that the user obtains the target page, reduces the waiting time, saves the traffic, improves the browsing efficiency of the user, and improves the browsing efficiency.
  • the user experience is provided to the mobile device, and the mobile device superimposes the difference information of the page on the basis of the reference page to obtain the target page, so that the user obtains the target page, reduces the waiting time, saves the traffic, improves the browsing efficiency of the user, and improves the browsing efficiency.
  • the page providing means 14 provides the target page to the mobile device 1. Specifically, the page providing device 14 displays the target page in the mobile device 1 for browsing by the user through the page technology generated by the page generating device 13 through page technologies such as ASP, JSP, and PHP.
  • the visible attribute comprises at least one of the following:
  • the difference processing device 23 first filters out the first page according to the target page and the reference page corresponding to the target page. a page element having visually visible attributes, and then differentiating the page elements respectively filtered from the target page and the reference page; or by differentially comparing the two pages by the page source code, the dom tree, or the render tree. Processing, obtaining candidate page difference information, and filtering out page elements having visually visible attributes in the candidate page difference information, as page difference information, obtaining page difference information corresponding to the target page.
  • the page element having the visually visible attribute is visible in the target page of the mobile device 1, and the user can browse the page element by directly observing.
  • the difference processing device 23 When the visible attribute includes an operation visible attribute of the page element in the target page, the difference processing device 23 first screens out the operation in the two pages according to the target page and the reference page corresponding to the target page.
  • the candidate page difference information is further filtered out of the page element having the operation visible attribute in the candidate page difference information, and the page difference information corresponding to the target page is obtained as the page difference information.
  • the page element having the operation visible attribute is not visible when initially displayed in the target page of the mobile device 1, and the browser according to the specific operation of the user, such as clicking a specific button, or only Clicking on a page operation such as a page displays the page element with the action visible property as visible.
  • the difference processing device 23 may further perform differential processing on the target page according to the target page and the reference page corresponding to the target page, and combining the visually visible attribute and the operation visible attribute of the page element in the target page. Obtaining page difference information corresponding to the target page.
  • the present invention can determine page difference information of a page element having only visually visible attributes, or determine page difference information of a page element having only an operation visible attribute, so that page difference information is smaller, which is more convenient for transmission and saves transmission time and Traffic, improve user browsing efficiency.
  • the difference processing device 23 in the network device 2 performs a matching query in the page attribute library according to the target page to obtain An operation visible attribute of the page element in the target page; performing differential processing on the target page according to the reference page corresponding to the target page and combining the operation visible attribute to obtain the page difference information.
  • the difference processing device 23 performs a matching query in the page attribute library according to the target page acquired by the page obtaining device 22 to determine the target page.
  • the difference processing device 23 passes the first page according to the target page and the reference page corresponding to the target page First, the page elements with the visible attributes of the operation are filtered out, and the page elements respectively filtered from the target page and the reference page are differentially processed; or, by using the page source code, the dom tree or the render tree, etc.
  • the pages are differentially processed to obtain candidate page difference information, and the page elements having the operation visible attributes in the candidate page difference information are filtered out, and the page difference information corresponding to the target page is obtained as the page difference information.
  • the page attribute library stores an operation visible attribute of the page element in the page
  • the page attribute library may be located in the network device 2 or in a third-party device connected to the network device 2 through the network.
  • the network device 2 further includes an attribute updating device (not shown), and the attribute updating device acquires an operation visible attribute of the page element in the candidate page according to the historical access record of the candidate page; according to the page in the candidate page
  • the action of the element is visible to the property, creating or updating the page property library.
  • the displayed page element may be considered to have an operation visible attribute, an attribute.
  • the update device obtains an operation visible attribute of the page element in the candidate page by interacting with the network device 2 or another third-party device that stores the historical access record of the page; further, the page in the candidate page is obtained by means of database update
  • the action visible property of the element is stored in the page property library to create or update the page property library.
  • FIG. 2 is a schematic diagram of an apparatus for acquiring a target page according to a preferred embodiment of the present invention; wherein the request receiving device 21', the page obtaining device 22' and the difference information transmitting device 24' in the network device 2 are respectively associated with FIG.
  • the corresponding devices 21, 22 and 24 are identical or substantially identical, and are not described herein again, and are hereby incorporated by reference;
  • the request transmitting device 11', the differential information receiving device 12' and the page providing device in the mobile device 1 14' is identical or substantially identical to the corresponding devices 11, 12 and 14 respectively shown in Fig. 1, and therefore will not be described again here, and is hereby incorporated by reference.
  • the reference page corresponding to the target page is determined by the network device 2.
  • the difference processing device 23 in the network device performs a matching query in a page access record corresponding to the mobile device according to the target page, to obtain a reference page corresponding to the target page; Referring to the page, and combining the visible attributes of the page elements in the target page, performing differential processing on the target page to obtain page difference information corresponding to the target page; wherein the difference information sending device 24
  • the page difference information and the first identification information of the reference page are sent to the mobile device 1.
  • the difference processing device 23 performs, according to the page acquisition device 22, the acquired target page in the page access record corresponding to the mobile device 1.
  • Matching the query to obtain a reference page corresponding to the target page such as matching the page with the closest page content in the page access record according to the page content of the target page, or according to the page of the target page
  • the address matches the reference page with the closest page address in the page access record, etc.; then, the difference processing device 23, according to the reference page obtained by the above manner, and the page obtaining device 22, the visible page element in the target page is visible.
  • the target page is differentially processed to obtain page difference information corresponding to the target page.
  • the difference processing device 23 performs differential processing on the target page according to the reference page and in combination with the visible attribute of the page element in the target page to obtain page difference information corresponding to the target page; This process is substantially the same as that of the differential processing device 23 of FIG. 1.
  • the page access record stores an access history record of the user on the mobile device 1 about the page, and the page access record is synchronized with the page access history record in the mobile device 1 to implement when the network device 2 matches according to the target page.
  • the mobile device 1 can also match the reference page in the page access history record in the mobile device 1 according to the page identifier of the reference page.
  • the page access record may be located in the network device 2 or in a third party device connected to the network device 2 through the network.
  • the differential information transmitting device 24 sends the page difference information and the first identification information of the reference page by calling an application program interface (API) provided by the mobile device 1 or other agreed communication manners one or more times.
  • API application program interface
  • the working process of the differential information transmitting device 24 is substantially the same as that of the differential information transmitting device 24 of FIG. 1.
  • the manner of determining the reference page is merely an example. Other existing or future possible methods for determining the reference page may be applicable to the present invention, and should also be included in the scope of protection of the present invention. This is incorporated herein by reference.
  • the difference information receiving device 12 in the mobile device 1 receives the page difference information sent by the network device 2 and first identification information for determining a reference page corresponding to the target page;
  • the page generating means 13 generates the target page according to the page difference information and in combination with a reference page corresponding to the first identification information.
  • the difference information receiving apparatus 12' receives the page difference information sent by the network device 2 and the reference page for determining the target page corresponding to the target page, for example, by using an API or other agreed communication manner described in the foregoing example.
  • the page generating device 13 performs a matching query in the page access history record in the mobile device 1 according to the first identification information, and obtains a reference page corresponding to the first identification information, and then,
  • the difference information receiving device 12 adds the received page difference information to the reference page by superimposing the page source code, the dom tree or the render tree, thereby generating a target page.
  • the first identifier information may be a page address of the reference page, or a page identifier preset by the mobile device 1 and the network device 2, and the mapping relationship between the page identifier and the page may be stored in the page access history record in the mobile device 1. And the page access record in the network device 2.
  • the network device 2 determines the reference page corresponding to the target page, and the mobile device 1 only needs to perform a matching query in the page access history record of the mobile device according to the first identification information of the reference page, and obtain the reference page. Reduce the processing overhead of mobile devices.
  • the network device 2 further includes a record updating device 25, and the record updating device 25 acquires a page operation of the user corresponding to the mobile device 1; and establishes or updates the page access record according to the page operation.
  • the user performs a page operation of opening a page, closing a page, and the like in the mobile device 1 by interacting with the mobile device 1; the recording update device 25' calls the application program interface (API) provided by the mobile device 1 or the like
  • API application program interface
  • the agreed communication method such as http or https, obtains the page operation performed by the user, and establishes or updates the page access record by means of database update according to the operation of the page, for example, when receiving the page operation of closing the page,
  • the access record of the page corresponding to the page operation is deleted in the page access record, or when the page operation of opening the page is received, an access record about the page corresponding to the page operation is added to the page access record.
  • the network device 2 establishes or updates a page access record according to a page operation of the user, so that the page access record is in the mobile device 1 Page access history synchronization, so that when the network device 2 obtains the reference page according to the target page matching, the mobile device 1 can also match the page access history record in the mobile device 1 according to the first identification information of the reference page. Get the reference page.
  • the record updating device in the network device 2 has no temporal relationship with the operations performed by other devices in the network device 2.
  • attribute updating means and record updating means are merely examples, and in practice, they may be two independent modules or may be integrated in one module.
  • a reference page corresponding to the target page is determined by the mobile device 1.
  • the request transmitting device 11 in the mobile device 1 acquires an access request for the target page submitted by the user through the mobile device 1; determines a reference page corresponding to the target page; and transmits the access to the network device 2 The request, where the access request includes second identification information corresponding to the reference page.
  • the request receiving device 21 in the network device 2 receives the access request from the mobile device 1 regarding a target page, wherein the access request includes a reference page for determining a reference page corresponding to the target page
  • the difference processing device 23 performs differential processing on the target page according to the reference page corresponding to the second identifier information, and in combination with the visible attribute of the page element in the target page, Obtain the page difference information.
  • the user submits an access request for the target page by clicking, swiping, long pressing, or inputting a web address in the mobile device 1 by interaction with the mobile device 1; the request transmitting device 11 calls the mobile device 1 provided an application program interface (API), or through a page technology such as JSP, ASP, PHP, etc., to obtain an access request submitted by the user about the target page; then, the request sending device 11 according to the access request in the target Identification information such as a page identifier, a page address, and the like of the page, by performing a matching query in the page access history of the mobile device 1 to determine a reference page corresponding to the target page, such as to be closest to the page address of the target page.
  • API application program interface
  • the page serves as a reference page, a page closest to the page content of the target page as a reference page or the like; subsequently, the request transmitting means 11 pages the reference page
  • the face identifier, the page address, and the like as the second identification information, and the application interface (API) provided by the network device 2 is invoked one or more times by writing the second identification information to the specific field of the access request.
  • the other agreed communication mode the access request is sent to the network device 2, wherein the access request includes the second identification information.
  • the request receiving device 21 in the network device 2 receives the access request from the mobile device 1 regarding the target page, for example, by using an API or other agreed communication method described in the foregoing example, wherein the access request includes Second identification information for determining a reference page corresponding to the target page.
  • the difference processing device 23 extracts the second identification information from the specific field or the data unit of the access request, and according to the second identification information, obtains the matching query by performing a matching query in, for example, a page information database or a page access record.
  • the difference processing device 23 performs differential processing on the target page according to the reference page obtained by the foregoing manner and the visible attribute of the page element in the target page acquired by the page obtaining device 22, Obtain page difference information corresponding to the target page.
  • the difference processing device 23 performs differential processing on the target page according to the reference page and in combination with the visible attribute of the page element in the target page to obtain page difference information corresponding to the target page;
  • the process of the differential processing device 23 is substantially the same as that of the other embodiments in FIG. 1.
  • the present invention determines the reference page by the mobile device, so that the matching of the reference page is more accurate, and the network device only needs to match the query according to the second identification information of the reference page in the page access record or directly in the page information database to obtain a reference. page.
  • FIG. 3 shows a flow chart of a method for acquiring a target page in accordance with another aspect of the present invention.
  • the mobile device 1 includes, but is not limited to, any mobile electronic product that can interact with a user through a keyboard, a touch pad, a touch screen, or a handwriting device, such as a notebook, a mobile phone, a PDA, a palmtop PPC, or a tablet.
  • Network device 2 includes, but is not limited to, a network host, a single network server, a plurality of network server sets, or a cloud of multiple servers.
  • the cloud is composed of a large number of computers or network servers based on Cloud Computing, wherein cloud computing is a kind of distributed computing, which is loosely coupled by a group.
  • a super virtual computer consisting of a set of computers.
  • the communication between the mobile device 1 and the network device 2 is independent of each other, including but not limited to packet data transmission based on, for example, the TCP/IP protocol, the UDP protocol, and the like.
  • packet data transmission based on, for example, the TCP/IP protocol, the UDP protocol, and the like.
  • the mobile device 1, the network device 2, and the network connected therebetween, and the communication method are only examples, and other existing or future mobile devices, network devices or networks, and communication methods may be applicable.
  • the invention is also intended to be included within the scope of the invention and is hereby incorporated by reference.
  • step S1 the mobile device 1 transmits an access request for the target page submitted by the user through the mobile device 1 to the network device 2; the network device 2 receives the access request for the target page sent by the mobile device 1; In S2, the network device 2 acquires the target page according to the access request; in step S3, the network device 2 combines the reference page corresponding to the target page, and combines the visible attributes of the page element in the target page.
  • step S4 Performing differential processing on the target page to obtain page difference information corresponding to the target page; in step S4, the network device 2 transmits the page difference information to the mobile device 1; the mobile device 1 receives The page difference information corresponding to the target page sent by the network device 2; in step S5, the mobile device 1 generates, according to the page difference information, and the reference page corresponding to the target page, The target page; in step S5, the mobile device 1 provides the target page to Said mobile device 1.
  • continuous means that each step described above continuously performs transmission and reception of an access request for a target page, acquisition and difference processing of a target page, transmission and reception of page difference information, and a target page. The generation and provisioning until the user stops submitting an access request for the target page through the mobile device 1.
  • step S1 the mobile device 1 transmits to the network device 2 an access request for the target page submitted by the user via the mobile device 1.
  • the user submits an access request for the target page by clicking, swiping, long pressing, or inputting a web address in the mobile device 1 by interaction with the mobile device 1; in step S1, the mobile device 1 passes Calling an application program interface (API) provided by the mobile device 1, or obtaining a request for access to the target page submitted by the user through a page technology such as JSP, ASP, PHP, etc.
  • the access request for the target page is sent to the network device 2 by one or more calls to an application program interface (API) submitted by the network device 2 or other agreed communication means.
  • API application program interface
  • the access request includes the page address of the target page, the page name, the page identifier, and the like, or the access request may further include the current browsing page of the user, the page address of the reference page determined by the mobile device, and the page. Identification information such as name, page identification, etc.
  • the mobile device 1 generates the access request by writing the identification information of the target page, the reference page or both into a specific field or data unit. For example, the current browsing page that the user is browsing is P1, and the user submits an access request for the target page P2 by clicking a link about the target page P2 in the page; in step S1, the mobile device 1 passes through, for example, JSP, etc.
  • the page technology acquires an access request submitted by the user, and generates an access request by writing the identification information of the current browsing page P1, the identification information of the target page P2, and the like into a specific field of the access request, and then calling the network device. 2 submitted application program interface (API) or other agreed communication method, and the access request for the target page P2 is sent to the network device 2.
  • API application program interface
  • Those skilled in the art should understand that the above manner of sending an access request for a target page is only an example, and other existing or future possible ways of sending an access request for a target page may be applied to the present invention, and should also be included in It is within the scope of the invention and is hereby incorporated by reference.
  • step S1 the network device 2 receives an access request from the mobile device 1 regarding the target page. Specifically, in step S1, the network device 2 receives an access request from the mobile device 1 regarding the target page, for example, through an application program interface (API) or other agreed communication method described in the above example.
  • API application program interface
  • step S2 the network device 2 acquires the target page according to the access request. Specifically, in step S2, the network device 2 extracts the page address, the page name, the page identifier about the target page from the specific field or data unit of the request according to the access request for the target page received in step S1.
  • the identification information is obtained according to the identification information, and the target page corresponding to the identification information is obtained by, for example, performing a matching query in the page information database.
  • the page information base stores a mapping relationship between the page and the identification information such as the page address and the page identifier, which can be crawled by the web crawler.
  • the page information base may be located in the network device 2 or in a third-party device such as a network site connected to the network device 2 through the network.
  • a third-party device such as a network site connected to the network device 2 through the network.
  • step S3 the network device 2 performs differential processing on the target page according to the reference page corresponding to the target page and the visible attribute of the page element in the target page to obtain the target page. Corresponding page difference information. Specifically, in step S3, the network device 2 determines, according to the target page acquired in step S2, a reference page corresponding to the target page, such as using the current browsing page of the user as a default reference page, or according to the slave access The reference page obtained by the second identification information about the reference page extracted in the specific field of the request, or the reference page obtained by matching the page access record corresponding to the mobile device 1 in the network device 2, etc.
  • the visible attributes of the page elements in the target page are differentially processed to obtain corresponding page difference information.
  • the network device 2 performs differential processing on the target page according to the visible attribute of the page element in the target page, including but not limited to: 1) according to the source code of the reference page, the source of the target page The code directly performs differential processing to obtain candidate page difference information, and then screens the page elements having visible attributes such as visually visible, operationally visible, or a combination of the two according to the visible attributes of the page elements in the candidate page difference information, as corresponding Page difference information; 2) First generate a dom tree or a render tree based on the page code of the reference page and the target page, and then ⁇ !
  • Exaggerating the dom tree or the render tree of the two pages for differential processing for example, obtaining the candidate page difference information by using the maximum common subsequence method, and then performing differential information on the page according to the visible attributes of the page elements in the candidate page difference information. Sorting, selecting page elements with visible attributes such as visually visible, operationally visible, or a combination of the two as corresponding page difference information; 3) screening the page elements in the reference page and the target page separately , filter out page elements with visible attributes such as visually visible, operationally visible, or a combination of the two, and then separately reference the page and the target The page elements filtered in the target page are differentially processed to obtain page difference information.
  • the current browsing page that the user is browsing is P1, and the user submits an access request for the target page P2 by clicking a link about the target page P2 in the page, and in step S1, the mobile device 1 makes the access request.
  • the access request includes a page address about the target page P2; the network device 2 receives the access request; in step S2, the network device 2 extracts the target page P2 from the specific field of the access request
  • the page address is obtained by performing a matching query in a page information database, etc.; the assumed reference page defaults to the current browsing page P1 of the mobile device 1, and in step S3, the network device 2 is based on the target page P2.
  • Corresponding reference page that is, P1 performs differential processing on the target page P2 and the reference page P1 to obtain candidate page difference information ⁇ , and the page elements in the candidate page difference information ⁇ have visible such as visually visible or operationally visible.
  • the attribute therefore, the corresponding page difference information is eight.
  • the visible attributes of the page element such as the visually visible attribute, the operational visible attribute, etc., may be determined according to information corresponding to the page element in the page code, or obtained according to the corresponding page matching query in the page attribute library, the page attribute The library stores an operation visible attribute of a page element in the page, and the page attribute library may be located in the network device 2 or in a third party device connected to the network device 2 through the network.
  • step S4 the network device 2 transmits the page difference information to the mobile device 1. Specifically, in step S4, the network device 2 invokes an application program interface (API) provided by the mobile device 1 or other agreed communication methods, such as http or https, one or more times in real time, periodically, or event triggered.
  • API application program interface
  • the network protocol transmits the page difference information provided by the network device 2 in step S3 to the mobile device 1.
  • step S4 the mobile device 1 receives the page difference information corresponding to the target page transmitted from the network device 2. Specifically, in step S4, the mobile device 1 receives the information sent by the network device 2, for example, by using an API or other agreed-upon manner in the foregoing example. The page difference information corresponding to the target page is sent.
  • step S5 the mobile device 1 generates the target page according to the page difference information and in combination with a reference page corresponding to the target page. Specifically, in step S5, the mobile device 1 combines the reference page corresponding to the target page according to the page difference information received in step S4, such as using the current browsing page of the user in the mobile device 1 as The default reference page, the reference page obtained by the mobile device 1 according to the matching of the target page, or the reference page obtained by the mobile device 1 according to the first identification information received from the network device 2, by the source code of the page, the dom tree or the render The tree performs superimposition processing or the like, and superimposes the page difference information with the reference page to generate a target page.
  • the page difference information obtained after the differential processing by the network device 2 in step S3 is ⁇ ; in step S4, the network device 2 differentiates the page by calling an application program interface (API) provided by the mobile device 1.
  • API application program interface
  • the information ⁇ is sent to the mobile device 1; the mobile device 1 receives the page difference information ⁇ ; subsequently, in step S5, the mobile device 1 superimposes the page difference information ⁇ on the reference page according to the page difference information ⁇ , that is, the user's
  • the page P1 is currently browsed, thereby generating a target page P2.
  • step S5 the mobile device 1 performs a addition and deletion operation corresponding to the differential data on the difference data corresponding to the page difference information in a reference page corresponding to the target page to obtain a location The target page.
  • the mobile device 1 according to the page difference information, such as the difference data of the target page relative to the reference page and its corresponding addition or deletion operation, the page source code, dom tree or render of the reference page The tree performs superposition processing.
  • the page difference information includes a difference data to be deleted, the corresponding page element is deleted at a position corresponding to the difference data in the page source code, the dom tree or the render tree of the reference page, or If the difference information of the page includes a difference data to be added, insert a corresponding page element at a position corresponding to the difference data in a page source code, a dom tree or a render tree of the reference page, so as to obtain a corresponding target page. .
  • the manner of generating the target page is only an example, and other existing or future possible methods for generating the target page may be applicable to the present invention, and should also be included in the scope of protection of the present invention. This is incorporated herein by reference.
  • the present invention obtains page difference information by performing differential processing on the reference page and the target page according to the visible attributes of the page.
  • the network device only needs to provide the page difference information to the mobile device, and the mobile device superimposes the difference information of the page on the basis of the reference page to obtain the target page, so that the user obtains the target page, reduces the waiting time, saves the traffic, and improves the The user's browsing efficiency improves the user experience.
  • step S6 the mobile device 1 provides the target page to the mobile device 1. Specifically, in step S6, the mobile device 1 displays the target page in the mobile device 1 for browsing by the user through a page technology such as ASP, JSP, PHP, etc. according to the target page generated in step S5. .
  • a page technology such as ASP, JSP, PHP, etc.
  • the visible attribute comprises at least one of the following:
  • the network device 2 passes the first page according to the target page and the reference page corresponding to the target page. First screen out the page elements with visually visible attributes, and then differentially process the page elements respectively filtered from the target page and the reference page; or, by first passing the page source code, dom tree or render tree, etc.
  • the pages are differentially processed to obtain candidate page difference information, and the page elements having the visually visible attributes in the candidate page difference information are filtered out, and the page difference information corresponding to the target page is obtained as the page difference information.
  • the page element having the visually visible attribute is visible in the target page of the mobile device 1, and the user can browse the page element by directly observing.
  • the network device 2 first screens the two pages according to the target page and the reference page corresponding to the target page. a page element having an operation visible attribute, and then performing differential processing on the page elements respectively filtered from the target page and the reference page; or, by performing the page source code, the dom tree, or the render tree, etc.
  • the difference processing obtains the candidate page difference information, and then selects the page element having the operation visible attribute in the candidate page difference information, and obtains the page difference information corresponding to the target page as the page difference information.
  • a page element having an operational visible attribute initially on the mobile device 1 When displayed in the target page, it is invisible, and the browser renders the page element with the visible property of the operation as visible according to the user's specific operation, such as clicking a specific button, or simply clicking on a page.
  • the network device 2 may further target the target page according to the target page and the reference page corresponding to the target page, and combining the visually visible attribute and the operation visible attribute of the page element in the target page. Differential processing is performed to obtain page difference information corresponding to the target page.
  • the present invention can determine page difference information of a page element having only visually visible attributes, or determine page difference information of a page element having only an operation visible attribute, such that the page difference information is smaller, which is more convenient for transmission, saves transmission time, and Traffic, improve user browsing efficiency.
  • step S3 the network device 2 performs a matching query in the page attribute library according to the target page to obtain the target.
  • the operation of the page element in the page is visible; according to the reference page corresponding to the target page, and in combination with the operation visible attribute, the target page is differentially processed to obtain the page difference information.
  • the network device 2 when the visible attribute includes an operation visible attribute of the page element in the target page, in step S3, the network device 2 performs a matching query in the page attribute library according to the target page acquired in step S2, Determining a page element having an operation visible attribute in the target page, thereby obtaining an operation visible attribute of the page element in the target page; subsequently, in step S3, the network device 2 according to the target page and the reference page corresponding to the target page By first filtering out the page elements with the operational visible attributes in the two pages, and then performing differential processing on the page elements respectively filtered from the target page and the reference page; or, by first passing the page source code, dom The two pages are differentially processed by the tree or the render tree to obtain the candidate page difference information, and the page element having the operation visible attribute in the candidate page difference information is filtered out, and the page difference information is obtained as the page difference information.
  • the page attribute library stores an operation visible attribute of a page element in the page
  • the page attribute library can be located at In the network device 2, it may also be located in a third-party device connected to the network device 2 through a network.
  • step S8 the network device 2 acquires an operation visible attribute of the page element in the candidate page according to the historical access record of the candidate page; and displays the attribute according to the operation of the page element in the candidate page. , create or update the page property library.
  • the current page element may be considered to have an operation visible attribute.
  • the network device 2 obtains an operation visible attribute of the page element in the candidate page by interacting with the network device 2 or other third-party device that stores the historical access record of the page; further, by using a database update manner,
  • the operation visible attribute of the page element in the candidate page is stored in the page attribute library to create or update the page attribute library.
  • steps S1, S2, S4, and S6 are respectively corresponding to steps S1, S2, and S4 shown in FIG. 3; S6 is the same or substantially the same, and therefore will not be described again here, and is hereby incorporated by reference.
  • the reference page corresponding to the target page is determined by the network device 2.
  • the network device 2 performs a matching query in the page access record corresponding to the mobile device according to the target page, to obtain a reference page corresponding to the target page; Referring to the page, and combining the visible attributes of the page elements in the target page, performing differential processing on the target page to obtain page difference information corresponding to the target page; subsequently, in step S4', the network device 2 Transmitting the page difference information and the first identification information of the reference page to the mobile device 1.
  • the network device 2 performs a matching query in the page access record corresponding to the mobile device 1 according to the target page acquired in step S2, to obtain a target page.
  • Corresponding reference page such as according to the target page
  • the page content of the page matches the reference page with the closest page content in the page access record, or matches the page with the closest page address in the page access record according to the page address of the target page; and subsequently, in step S3 , the network device 2 performs differential processing on the target page according to the reference page obtained by matching in the foregoing manner, and the visible attribute of the page element in the target page acquired in step S2, to obtain a corresponding page corresponding to the target page.
  • Page differential information Here, in step S3, the network device 2 performs differential processing on the target page according to the reference page and in combination with the visible attribute of the page element in the target page, to obtain a corresponding to the target page.
  • the page difference information is basically the same as the operation process of the network device 2 in FIG. 3 in step S3.
  • the page access record stores an access history record of the user on the mobile device 1 about the page, and the page access record is synchronized with the page access history record in the mobile device 1 to implement when the network device 2 matches according to the target page.
  • the mobile device 1 can also match the reference page in the page access history record in the mobile device 1 according to the page identifier of the reference page.
  • the page access record may be located in the network device 2 or in a third party device connected to the network device 2 through the network.
  • step S4 the network device 2 invokes the page difference information with the first page of the reference page by calling the application program interface (API) provided by the mobile device 1 or one of the other agreed communication modes one or more times. Identification information is sent to the mobile device 1.
  • the working process of the network device 2 is substantially the same as the working process of the network device 2 in FIG. 3 in step S4.
  • the manner of determining the reference page is merely an example. Other existing or future possible methods for determining the reference page may be applicable to the present invention, and should also be included in the scope of protection of the present invention. This is incorporated herein by reference.
  • the mobile device 1 receives the page difference information sent from the network device 2 and first identification information for determining a reference page corresponding to the target page; subsequently, in step S5, the mobile device 1 generating the target page according to the page difference information and combining a reference page corresponding to the first identifier information. Specifically, in the steps In S4, the mobile device 1 receives the page difference information sent by the network device 2 and the first reference page for determining the reference page corresponding to the target page, for example, by using an API or other agreed communication manner described in the foregoing example.
  • the mobile device 1 performs a matching query in the page access history record in the mobile device 1 according to the first identification information, and obtains a reference page corresponding to the first identification information, Then, by superimposing the page source code, the dom tree or the render tree, the page difference information received by the mobile device 1 in step S4 is superimposed on the reference page, thereby generating a target page.
  • the first identifier information may be a page address of the reference page, or a page identifier preset by the mobile device 1 and the network device 2, and the mapping relationship between the page identifier and the page may be stored in the page access history record in the mobile device 1. And the page access record in network device 2.
  • the network device 2 determines the reference page corresponding to the target page, and the mobile device 1 only needs to perform a matching query in the page access history record of the mobile device according to the first identification information of the reference page, and obtain the reference.
  • the page reduces the processing overhead of the mobile device.
  • the network device 2 acquires a page operation of the user corresponding to the mobile device 1; according to the page operation, the page access record is established or updated.
  • the user performs a page operation of opening a page, closing a page, and the like in the mobile device 1 by interacting with the mobile device 1; in step S7', the network device 2 invokes an application interface provided by the mobile device 1 ( API) or other agreed communication methods, such as http or https, to obtain the page operations made by the user, and according to the page operation, establish or update the page access record by means of database update, such as receiving the closed page.
  • API application interface
  • other agreed communication methods such as http or https
  • the access record of the page corresponding to the page operation is deleted in the page access record, or when the page operation of opening the page is received, the page corresponding to the page operation is added to the page access record.
  • Access to records Those skilled in the art should understand that the above manner of establishing or updating a page access record is only an example, and other existing or future possible ways of establishing or updating a page access record may be applicable to the present invention, and should also be included in the present invention. It is within the scope of protection and is hereby incorporated by reference.
  • the network device 2 establishes or updates the page access record according to the page operation of the user, so that the page access record is synchronized with the page access history record in the mobile device 1 to realize when the network device 2 obtains the reference page according to the target page matching.
  • the mobile device 1 can also match the reference page in the page access history record in the mobile device 1 according to the first identification information of the reference page.
  • step S7 has no prior temporal relationship with the operation performed by the network device 2 in other steps.
  • the reference page corresponding to the target page is determined by the mobile device 1.
  • the mobile device 1 acquires an access request submitted by the user through the mobile device 1 regarding a target page; determines a reference page corresponding to the target page; and sends the access request to the network device 2
  • the access request includes second identification information corresponding to the reference page.
  • the network device 2 receives the access request from the mobile device 1 regarding a target page, wherein the access request includes second identification information for determining a reference page corresponding to the target page;
  • the network device 2 performs differential processing on the target page according to the reference page corresponding to the second identification information and in combination with the visible attribute of the page element in the target page, to obtain the Page difference information.
  • the mobile device 1 passes Calling an application program interface (API) provided by the mobile device 1, or obtaining a request for access to the target page submitted by the user through a page technology such as JSP, ASP, PHP, etc.; then, the mobile device 1 according to the access request Regarding the identification information of the page identifier, the page address, and the like of the target page, by performing a matching query in the page access history of the mobile device 1, determining a reference page corresponding to the target page, such as a page address with the target page The closest page is used as the reference page, and the page closest to the page content of the target page is used as the reference page or the like; subsequently, the mobile device 1 uses the page identifier, the page address, and the like of the reference page as its second identification information, and then Passing the second identification information to a specific field
  • API application program interface
  • the network device 2 is, for example, in the previous example Said API or other agreed communication method, receiving said access request from said mobile device 1 about a target page, wherein said access request comprises a reference page for determining a corresponding page corresponding to said target page Second identification information.
  • step S3 the network device 2 extracts second identification information from a specific field or data unit of the access request, and according to the second identification information, by performing a matching query in, for example, a page information base or a page access record, Obtaining a reference page corresponding to the second identifier information, and then, in step S3, the reference page obtained by the network device 2 according to the foregoing manner, and the page element in the target page acquired by the network device 2 in step S2
  • the visible attribute is subjected to differential processing on the target page to obtain page difference information corresponding to the target page.
  • step S3 the network device 2 performs differential processing on the target page according to the reference page and in combination with the visible attribute of the page element in the target page to obtain a page corresponding to the target page.
  • the information is substantially the same as the operation performed by the network device 2 in the step S3 in the other embodiments corresponding to FIG. 3.
  • the present invention determines the reference page by the mobile device, so that the matching of the reference page is more accurate, and the network device only needs to match the query according to the second identification information of the reference page in the page access record or directly in the page information database to obtain a reference. page.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明的目的是提供一种用于获取目标页面的方法与设备。移动设备向网络设备发送用户通过移动设备提交的关于目标页面的访问请求;接收自该网络设备所发送的与该目标页面相对应的页面差分信息;根据该页面差分信息,并结合与该目标页面相对应的参考页面,生成目标页面;将该目标页面提供至所述移动设备。与现有技术相比,本发明根据页面的可见属性,通过对参考页面及目标页面进行差分处理,得到页面差分信息,网络设备只需将页面差分信息提供给移动设备,移动设备在参考页面的基础上叠加此页面差分信息,得到目标页面,使得用户在获取目标页面的同时,减少了等待时间、节省流量,提高了用户的浏览效率,提升了用户的使用体验。

Description

一种用于获取目标页面的方法与设备 技术领域
本发明涉及无线互联网技术领域, 尤其涉及一种用于获取目标页 面的技术。 背景技术
随着移动设备尤其是智能型移动设备的普及, 越来越多的用户依 赖移动设备获取信息及资源。 然而, 由于受限于移动设备的上网速度 及处理能力, 打开一个新页面所需的时间较长, 耗费了用户宝贵的时 间。 此外, 由于移动通信资费高昂, 用户希望在获得期望的页面的情 况下尽可能节省流量。
因此, 如何快速、 高效地通过移动设备获取目标页面, 以降低通 信流量、 减少用户的等待时间, 提高用户的浏览效率, 并提升用户的 使用体验, 成为本领域技术人员亟需解决的问题之一。 发明内容
本发明的目的是提供一种用于获取目标页面的方法与设备。
根据本发明的一个方面, 提供了一种在移动设备端用于获取目标 页面的方法, 其中, 该方法包括以下步骤:
A 向网络设备发送用户通过移动设备提交的关于目标页面的访 问请求;
B 接收自所述网络设备所发送的与所述目标页面相对应的页面差 分信息;
C才艮据所述页面差分信息, 并结合与所述目标页面相对应的参考页 面, 生成所述目标页面;
D将所述目标页面提供至所述移动设备。
根据本发明的另一方面, 还提供了一种在网络设备端用于辅助获 取目标页面的方法, 其中, 该方法包括以下步骤: a接收自移动设备所发送的关于目标页面的访问请求; b 根据所述访问请求, 获取所述目标页面;
c 才艮据与所述目标页面相对应的参考页面, 并结合所述目标页面 中页面元素的可见属性, 对所述目标页面进行差分处理, 以获得与所 述目标页面相对应的页面差分信息;
d 将所述页面差分信息发送至所述移动设备。
根据本发明的又一方面, 还提供了一种用于获取目标页面的移动 设备, 其中, 该设备包括:
请求发送装置, 用于向网络设备发送用户通过移动设备提交的关 于目标页面的访问请求;
差分信息接收装置, 用于接收自所述网络设备所发送的与所述目 标页面相对应的页面差分信息;
页面生成装置, 用于根据所述页面差分信息, 并结合与所述目标页 面相对应的参考页面, 生成所述目标页面;
页面提供装置, 用于将所述目标页面提供至所述移动设备。
根据本发明的再一方面, 还提供了一种用于辅助获取目标页面的 网络设备, 其中, 该设备包括:
请求接收装置, 用于接收自移动设备所发送的关于目标页面的访 问请求;
页面获取装置, 用于根据所述访问请求, 获取所述目标页面; 差分处理装置, 用于根据与所述目标页面相对应的参考页面, 并 结合所述目标页面中页面元素的可见属性, 对所述目标页面进行差分 处理, 以获得与所述目标页面相对应的页面差分信息;
差分信息发送装置, 用于将所述页面差分信息发送至所述移动设 备。
根据本发明的再一方面, 还提供了一种用于获取目标页面的系 统, 包括上述的移动设备及如上述的网络设备。
与现有技术相比, 本发明根据页面的可见属性, 通过对参考页面 及目标页面进行差分处理, 得到页面差分信息, 网络设备只需将页面 差分信息提供给移动设备, 移动设备在参考页面的基础上叠加此页面 差分信息, 得到目标页面, 使得用户在获取目标页面的同时, 减少了 等待时间、 节省流量, 提高了用户的浏览效率, 提升了用户的使用体 验。 附图说明
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述, 本发明的其它特征、 目的和优点将会变得更明显:
图 1 示出根据本发明一个方面的用于获取目标页面的设备示意 图;
图 2示出根据本发明一个优选实施例的用于获取目标页面的设备 示意图;
图 3示出根据本发明另一个方面的用于获取目标页面的方法流程 图;
图 4示出根据本发明一个优选实施例的用于获取目标页面的方法 流程图。
附图中相同或相似的附图标记代表相同或相似的部件。 具体实施方式
下面结合附图对本发明作进一步详细描述。
图 1 示出根据本发明一个方面的用于获取目标页面的设备示意 图; 移动设备 1 包括请求发送装置 11、 差分信息接收装置 12、 页面 生成装置 13和页面提供装置 14; 网络设备 2包括请求接收装置 21、 页面获取装置 22、 差分处理装置 23和差分信息发送装置 24。
移动设备 1包括但不限于任何一种可与用户通过键盘、 触摸板、 触摸屏或手写设备等方式进行人机交互的移动电子产品, 例如笔记 本、 手机、 PDA、 掌上电脑 PPC或平板电脑等。 网络设备 2包括但不 限于网络主机、 单个网络服务器、 多个网络服务器集或多个服务器构 成的云。 在此, 云由基于云计算(Cloud Computing )的大量计算机或 网络服务器构成, 其中, 云计算是分布式计算的一种, 由一群松散耦 合的计算机集组成的一个超级虚拟计算机。 移动设备 1与网络设备 2 之间的通信相互独立, 包括但不限于基于诸如 TCP/IP协议、 UDP协 议等的分组数据传输。 本领域技术人员应能理解上述移动设备 1、 网 络设备 2, 以及连接其间的网络、 通信方式仅为举例, 其他现有的或 今后可能出现的移动设备、 网络设备或网络、 通信方式如可适用于本 发明,也应包含在本发明保护范围以内,并在此以引用方式包含于此。
移动设备 1和网络设备 2之间的各个装置之间互相配合, 以完成 获取目标页面。 具体地, 移动设备 1 中的请求发送装置 11 向网络设 备 2发送用户通过移动设备 1提交的关于目标页面的访问请求; 网络 设备 2中的请求接收装置 21接收自移动设备 1所发送的关于目标页 面的访问请求; 页面获取装置 22根据所述访问请求, 获取所述目标 页面; 差分处理装置 23根据与所述目标页面相对应的参考页面, 并 结合所述目标页面中页面元素的可见属性, 对所述目标页面进行差分 处理, 以获得与所述目标页面相对应的页面差分信息; 差分信息发送 装置 24将所述页面差分信息发送至所述移动设备 1 ;移动设备 1中的 差分信息接收装置 12接收自所述网络设备 2所发送的与所述目标页面 相对应的页面差分信息; 页面生成装置 13根据所述页面差分信息, 并 结合与所述目标页面相对应的参考页面, 生成所述目标页面; 页面提供 装置 14将所述目标页面提供至所述移动设备 1。上述各个装置之间是持 续不断工作的。 在此, 本领域技术人员应理解 "持续" 是指上述各装 置分别不断地进行关于目标页面的访问请求的发送与接收、 目标页面 的获取与差分处理、 页面差分信息的发送与接收、 目标页面的生成与 提供,直至该用户停止通过移动设备 1提交关于目标页面的访问请求。
其中, 移动设备 1 中的请求发送装置 11向网络设备 2发送用户 通过移动设备 1提交的关于目标页面的访问请求。 具体地, 用户通过 与移动设备 1的交互, 在该移动设备 1中通过点击、 划动、 长按或输 入网址等方式, 提交了关于目标页面的访问请求; 请求发送装置 11 通过调用该移动设备 1 所提供的应用程序接口 (API )、 或通过诸如 JSP、 ASP, PHP 等页面技术, 获取该用户所提交的关于目标页面的 访问请求, 再通过一次或多次调用网络设备 2所提交的应用程序接口 ( API ) 或其他约定的通信方式, 向网络设备 2发送该关于目标页面 的访问请求。 在此, 该访问请求中包括目标页面的页面地址、 页面名 称、 页面标识等标识信息, 或者, 该访问请求还可以包括用户的当前 浏览页面、 该移动设备所确定的参考页面的页面地址、 页面名称、 页 面标识等标识信息; 请求发送装置 11 通过将上述目标页面、 参考页 面或两者的标识信息写入特定字段或数据单元的方式, 生成所述访问 请求。 例如, 用户正在浏览的当前浏览页面为 P1 , 该用户通过在该 页面中点击关于目标页面 P2的链接,提交了关于该目标页面 P2的访 问请求; 请求发送装置 11通过诸如 JSP等页面技术, 获取该用户提 交的访问请求, 并通过将该当前浏览页面 P1 的标识信息、 该目标页 面 P2的标识信息等写入访问请求的特定字段的方式,生成访问请求, 然后, 调用网络设备 2所提交的应用程序接口 (API ) 或其他约定的 通信方式, 向网络设备 2发送该关于该目标页面 P2的访问请求。 本 领域技术人员应能理解上述发送关于目标页面的访问请求的方式仅 为举例, 其他现有的或今后可能出现的发送关于目标页面的访问请求 的方式如可适用于本发明, 也应包含在本发明保护范围以内, 并所述 在此以引用方式包含于此。
网络设备 2中的请求接收装置 21接收自移动设备 1所发送的关 于目标页面的访问请求。 具体地, 请求接收装置 21 例如通过上例中 所述的应用程序接口 (API ) 或其他约定的通信方式, 接收自移动设 备 1所发送的关于目标页面的访问请求。
页面获取装置 22根据所述访问请求, 获取所述目标页面。 具体 地, 页面获取装置 22根据请求接收装置 21所接收的关于目标页面的 访问请求, 从该请求的特定字段或数据单元中提取出关于目标页面的 页面地址、 页面名称、 页面标识等标识信息, 才艮据该标识信息, 通过 例如在页面信息库中进行匹配查询等方式, 获取与该标识信息相对应 的目标页面。 在此, 所述页面信息库中存储有页面与页面地址、 页面 标识等标识信息的映射关系, 其可以通过网络爬虫爬取到不同页面并 对该页面信息库进行建立或更新, 该页面信息库既可以位于网络设备
2中, 也可以位于与该网络设备 2通过网络相连接的网络站点等第三 方设备中。 本领域技术人员应能理解上述获取目标页面的方式仅为举 例, 其他现有的或今后可能出现的获取目标页面的方式如可适用于本 发明, 也应包含在本发明保护范围以内, 并所述在此以引用方式包含 于此。
差分处理装置 23根据与所述目标页面相对应的参考页面, 并结 合所述目标页面中页面元素的可见属性, 对所述目标页面进行差分处 理, 以获得与所述目标页面相对应的页面差分信息。 具体地, 差分处 理装置 23根据页面获取装置 22所获取的目标页面, 确定与该目标页 面相对应的参考页面, 如将用户的当前浏览页面作为默认的参考页 面、或根据从访问请求的特定字段中提取的关于参考页面的第二标识 信息所获得的参考页面、或根据该目标页面在网络设备 2中该移动设 备 1所对应的页面访问记录中匹配得到的参考页面等, 结合该目标页 面中页面元素的诸如视觉可见、 操作可见等可见属性, 对该目标页面 进行差分处理, 以获得相应的页面差分信息。 在此, 差分处理装置 23 根据目标页面中页面元素的可见属性, 对该目标页面进行差分处理的 方式包括但不限于: 1 )根据参考页面的源代码, 对该目标页面的源 代码直接进行差分处理, 获得候选页面差分信息, 再根据该候选页面 差分信息中页面元素的可见属性, 筛选出具有如视觉可见、 操作可见 或两者组合的可见属性的页面元素, 以作为相应的页面差分信息; 2 ) 先根据该参考页面和目标页面的页面代码, 生成 dom树或 render树, 再将该两个页面的 dom树或 render树进行差分处理, 例如通过最大 公共子序列方式, 获得候选页面差分信息, 接着, 根据该候选页面差 分信息中页面元素的可见属性, 对该页面差分信息进行筛选, 筛选出 具有如视觉可见、 操作可见或两者组合的可见属性的页面元素, 以作 为相应的页面差分信息; 3 ) 先分别对该参考页面和目标页面中的页 面元素进行歸选处理, 歸选出具有如视觉可见、 操作可见或两者组合 的可见属性的页面元素, 再将分别自参考页面与目标页面中筛选出的 页面元素进行差分处理, 以获得页面差分信息。 例如, 用户正在浏览 的当前浏览页面为 P1 , 该用户通过在该页面中点击关于目标页面 P2 的链接, 提交了关于该目标页面 P2的访问请求, 请求发送装置 11将 该访问请求发送至网络设备 2, 该访问请求中包括关于目标页面 P2 的页面地址; 网络设备 2中的请求接收装置 21接收到该访问请求; 页面获取装置 22从该访问请求的特定字段中提取出目标页面 P2的页 面地址, 通过在诸如页面信息库中进行匹配查询等方式, 获取该目标 页面 P2; 假设参考页面默认为移动设备 1的当前浏览页面 P1 , 差分 处理装置 23才艮据与该目标页面 P2相对应的参考页面, 即 P1 , 对该 目标页面 P2与参考页面 P1进行差分处理,获得候选页面差分信息△ , 而该候选页面差分信息 Δ中的页面元素都具有诸如视觉可见或操作 可见的可见属性, 因此, 相应的页面差分信息为 。 在此, 所述页面 元素的视觉可见属性、操作可见属性等可见属性可以根据页面代码中 页面元素所对应的信息确定, 或者在页面属性库中根据对应的页面匹 配查询获得, 该页面属性库中存储有页面中页面元素的操作可见属 性, 该页面属性库既可以位于网络设备 2中, 也可以位于与该网络设 备 2通过网络相连接的第三方设备中。 本领域技术人员应能理解上述 对目标页面进行差分处理的方式仅为举例, 其他现有的或今后可能出 现的对目标页面进行差分处理的方式如可适用于本发明, 也应包含在 本发明保护范围以内, 并所述在此以引用方式包含于此。
差分信息发送装置 24将所述页面差分信息发送至所述移动设备 1。 具体地, 差分信息发送装置 24实时、 定期或应事件触发地, 通过 一次或多次调用移动设备 1所提供的应用程序接口 (API ) 或其他约 定的通信方式, 如 http或 https等网络协议, 将差分处理装置 23所提 供的该页面差分信息发送至移动设备 1。
移动设备 1中的差分信息接收装置 12接收自所述网络设备 2所发 送的与所述目标页面相对应的页面差分信息。 具体地, 差分信息接收装 置 12例如通过前例中所述的 API或其他约定的方式,接收自网络设备 2 所发送的与所述目标页面相对应的页面差分信息。
页面生成装置 13根据所述页面差分信息, 并结合与所述目标页面 相对应的参考页面, 生成所述目标页面。 具体地, 页面生成装置 13才艮 据差分信息接收装置 12 所接收到的页面差分信息, 再结合与所述目标 页面相对应的参考页面, 如将用户在移动设备 1中的当前浏览页面作为 默认的参考页面、 移动设备 1根据目标页面所匹配得到的参考页面、 或 移动设备 1根据从网络设备 2接收的第一标识信息所匹配得到的参考页 面, 通过对页面源代码、 dom树或 render树进行叠加处理等方式, 将该 页面差分信息与所述参考页面相叠加, 从而生成目标页面。 接上例, 经 差分处理装置 23差分处理后所得的页面差分信息为 Δ; 差分信息发送 装置 24通过调用移动设备 1所提供的应用程序接口 (API ), 将该页 面差分信息 Δ发送至移动设备 1 ; 移动设备 1中的差分信息接收装置 12接收到该页面差分信息△; 随后, 页面生成装置 13根据该页面差 分信息 Δ , 将该页面差分信息 Δ叠加至参考页面, 即用户的当前浏览 页面 P1上, 从而生成目标页面 P2。 优选地, 页面生成装置 13在与所 述目标页面相对应的参考页面中, 对所述页面差分信息所对应的差分数 据执行与所述差分数据相对应的增删操作, 以获得所述目标页面。 具体 地, 页面生成装置 13才艮据该页面差分信息, 如该目标页面相对该参考 页面的差分数据及其对应的增加或删除操作, 对该参考页面的页面源代 码、 dom树或 render树进行叠加处理, 如若该页面差分信息包括一待删 除的差分数据, 则在该参考页面的页面源代码、 dom树或 render树中与 该差分数据相对应的位置删除相应的页面元素, 或者, 若该页面差分信 息包括一待增加的差分数据, 则在该参考页面的页面源代码、 dom树或 render树中与该差分数据相对应的位置插入相应的页面元素, 故以获得 对应的目标页面。 本领域技术人员应能理解上述生成目标页面的方式 仅为举例, 其他现有的或今后可能出现的生成目标页面的方式如可适 用于本发明, 也应包含在本发明保护范围以内, 并所述在此以引用方 式包含于此。 在此, 本发明根据页面的可见属性, 通过对参考页面及 目标页面进行差分处理, 得到页面差分信息, 网络设备只需将页面差 分信息提供给移动设备, 移动设备在参考页面的基础上叠加此页面差 分信息, 得到目标页面, 使得用户在获取目标页面的同时, 减少了等 待时间、节省流量,提高了用户的浏览效率,提升了用户的使用体验。
页面提供装置 14将所述目标页面提供至所述移动设备 1。 具体的, 页面提供装置 14根据页面生成装置 13 所生成的目标页面, 通过诸如 ASP, JSP、 PHP等页面技术, 在该移动设备 1中显示所述目标页面, 以 供用户进行浏览。
优选地, 所述可见属性包括以下至少任一项:
- 所述目标页面中页面元素的视觉可见属性;
- 所述目标页面中页面元素的操作可见属性。
具体地, 当所述可见属性包括所述目标页面中页面元素的视觉可见属 性, 差分处理装置 23根据目标页面及与该目标页面相对应的参考页 面, 通过先在该两个页面中先筛选出具有视觉可见属性的页面元素, 再对分别自目标页面和参考页面筛选出的页面元素进行差分处理的 方式; 或者, 通过先经页面源代码、 dom树或 render树等对该两个页 面进行差分处理, 得到候选页面差分信息, 再筛选出该候选页面差分 信息中具有视觉可见属性的页面元素, 作为页面差分信息的方式, 获 得与所述目标页面相对应的页面差分信息。 在此, 具有视觉可见属性 的页面元素是移动设备 1的目标页面中显示可见的, 用户通过直接观 察, 即可浏览该页面元素。 当所述可见属性包括所述目标页面中页面 元素的操作可见属性, 差分处理装置 23根据目标页面及与该目标页 面相对应的参考页面, 通过先在该两个页面中先筛选出具有操作可见 属性的页面元素, 再对分别自目标页面和参考页面筛选出的页面元素 进行差分处理的方式; 或者, 通过先经页面源代码、 dom树或 render 树等对该两个页面进行差分处理, 得到候选页面差分信息, 再筛选出 该候选页面差分信息中具有操作可见属性的页面元素, 作为页面差分 信息的方式, 获得与所述目标页面相对应的页面差分信息。 在此, 具 有操作可见属性的页面元素,初始在移动设备 1的目标页面中显示时, 是不可见的, 浏览器根据用户的特定操作, 如点击特定的按钮、 或仅 点击页面等页面操作, 将该具有操作可见属性的页面元素展现为可 见。 优选地, 差分处理装置 23还可以根据目标页面及与该目标页面 相对应的参考页面, 并结合所述目标页面中页面元素的视觉可见属性 与操作可见属性, 对所述目标页面进行差分处理, 以获得与所述目标 页面相对应的页面差分信息。 本领域技术人员应能理解上述可见属性 仅为举例, 其他现有的或今后可能出现的可见属性如可适用于本发 明, 也应包含在本发明保护范围以内, 并所述在此以引用方式包含于 此。 在此, 本发明可以确定仅具有视觉可见属性的页面元素的页面差 分信息、 或者确定仅具有操作可见属性的页面元素的页面差分信息, 使得页面差分信息更小, 更加便于传输、 节省传输时间及流量, 提升 用户的浏览效率。
更优选地, 当所述可见属性包括所述目标页面中页面元素的操作 可见属性, 网络设备 2中的差分处理装置 23才艮据所述目标页面, 在页 面属性库中进行匹配查询, 以获得所述目标页面中页面元素的操作可见 属性; 根据与所述目标页面相对应的参考页面, 并结合所述操作可见 属性, 对所述目标页面进行差分处理, 以获得所述页面差分信息。 具 体地, 当所述可见属性包括所述目标页面中页面元素的操作可见属 性, 差分处理装置 23根据页面获取装置 22所获取的目标页面, 在页 面属性库中进行匹配查询, 以确定该目标页面中具有操作可见属性的 页面元素, 从而获得该目标页面中页面元素的操作可见属性; 随后, 差分处理装置 23根据目标页面, 及与该目标页面相对应的参考页面, 通过先在该两个页面中先筛选出具有操作可见属性的页面元素, 再对 分别自目标页面和参考页面筛选出的页面元素进行差分处理的方式; 或者, 通过先经页面源代码、 dom树或 render树等对该两个页面进行 差分处理, 得到候选页面差分信息, 再筛选出该候选页面差分信息中 具有操作可见属性的页面元素, 作为页面差分信息的方式, 获得与所 述目标页面相对应的页面差分信息。 在此, 所述页面属性库中存储有 页面中页面元素的操作可见属性, 该页面属性库既可以位于网络设备 2中, 也可以位于与该网络设备 2通过网络相连接的第三方设备中。 更优选地, 网络设备 2还包括属性更新装置 (未示出), 该属性更 新装置根据候选页面的历史访问记录, 获取所述候选页面中页面元素的 操作可见属性; 根据所述候选页面中页面元素的操作可见属性, 建立或 更新所述页面属性库。 具体地, 在页面的历史访问记录中, 如当用户对 一候选页面进行页面操作之后, 该候选页面中的某些页面元素被展现, 则可认为该被展现的页面元素具有操作可见属性, 属性更新装置通过与 网络设备 2或其他存储有页面的历史访问记录的第三方设备的交互, 获 取该候选页面中页面元素的操作可见属性; 进一步地, 通过数据库更新 的方式, 将该候选页面中页面元素的操作可见属性存入该页面属性库, 以建立或更新该页面属性库。 本领域技术人员应能理解上述建立或更 新页面属性库的方式仅为举例, 其他现有的或今后可能出现的建立或 更新页面属性库的方式如可适用于本发明, 也应包含在本发明保护范 围以内, 并所述在此以引用方式包含于此。
图 2示出根据本发明一个优选实施例的用于获取目标页面的设备 示意图; 其中, 网络设备 2中的请求接收装置 21 '、 页面获取装置 22' 和差分信息发送装置 24'分别与图 1所示对应装置 21、 22和 24相同或 基本相同, 故此处不再赘述, 并通过引用的方式包含于此; 移动设备 1 中的请求发送装置 11 '、 差分信息接收装置 12'和页面提供装置 14'分 别与图 1所示对应装置 11、 12和 14相同或基本相同, 故此处不再赘 述, 并通过引用的方式包含于此。
在本实施例中, 由网络设备 2确定与所述目标页面相对应的参考 页面。 其中, 网络设备中的差分处理装置 23,根据所述目标页面, 在 与所述移动设备相对应的页面访问记录中进行匹配查询, 以获得与所 述目标页面相对应的参考页面; 根据所述参考页面, 并结合所述目标 页面中页面元素的可见属性, 对所述目标页面进行差分处理, 以获得 与所述目标页面相对应的页面差分信息; 其中, 所述差分信息发送装 置 24,将所述页面差分信息与所述参考页面的第一标识信息发送至所 述移动设备 1。 具体地, 差分处理装置 23, 根据页面获取装置 22,所 获取的目标页面, 在与所述移动设备 1相对应的页面访问记录中进行 匹配查询, 以获得与所述目标页面相对应的参考页面, 如才艮据该目标 页面的页面内容在页面访问记录中匹配出页面内容最相近的参考页 面, 或才艮据该目标页面的页面地址在页面访问记录中匹配出页面地址 最相近的参考页面等; 随后, 差分处理装置 23,根据经上述方式匹配 得到的参考页面, 及页面获取装置 22,所获取的目标页面中页面元素 的可见属性, 对该目标页面进行差分处理, 以获得与该目标页面相对 应的页面差分信息。 在此, 差分处理装置 23,根据所述参考页面, 并 结合所述目标页面中页面元素的可见属性, 对所述目标页面进行差分 处理, 以获得与所述目标页面相对应的页面差分信息; 这一过程与图 1 中差分处理装置 23,的操作过程基本相同, 为简明起见, 此处不再 赘述, 并通过引用的方式包含于此。 在此, 所述页面访问记录存储有 用户在移动设备 1的关于页面的访问历史记录, 该页面访问记录与移 动设备 1中的页面访问历史记录同步, 以实现当网络设备 2根据目标 页面匹配得到参考页面时, 移动设备 1可以根据该参考页面的页面标 识, 在该移动设备 1中的页面访问历史记录中同样匹配得到该参考页 面。 该页面访问记录既可以位于网络设备 2中, 也可以位于与该网络 设备 2通过网络相连接的第三方设备中。 随后, 差分信息发送装置 24, 通过一次或多次调用移动设备 1 所提供的应用程序接口 (API )或其他 约定的通信方式, 将所述页面差分信息与所述参考页面的第一标识信 息发送至所述移动设备 1。 在此, 差分信息发送装置 24,的工作过程 与图 1 中差分信息发送装置 24的工作过程基本相同, 为简明起见, 此处不再赘述, 并通过引用的方式包含于此。 本领域技术人员应能理 解上述确定参考页面的方式仅为举例, 其他现有的或今后可能出现的 确定参考页面的方式如可适用于本发明, 也应包含在本发明保护范围 以内, 并所述在此以引用方式包含于此。
接着,移动设备 1中的差分信息接收装置 12,接收自所述网络设备 2 所发送的所述页面差分信息和用于确定与所述目标页面相对应的参考 页面的第一标识信息; 其中, 所述页面生成装置 13 艮据所述页面差分 信息, 并结合与所述第一标识信息相对应的参考页面, 生成所述目标页 面。 具体地, 差分信息接收装置 12'例如通过前例中所述的 API或其他 约定的通信方式, 接收自网络设备 2所发送的页面差分信息和用于确定 与所述目标页面相对应的参考页面的第一标识信息; 随后, 页面生成装 置 13,根据该第一标识信息, 在该移动设备 1 中的页面访问历史记录中 进行匹配查询, 获得与该第一标识信息相对应的参考页面, 接着, 再通 过对页面源代码、 dom树或 render树进行叠加处理等方式, 将该差分信 息接收装置 12,所接收的页面差分信息叠加至该参考页面中, 从而生成 目标页面。 在此, 第一标识信息可以是参考页面的页面地址, 或移动设 备 1与网络设备 2预设的页面标识, 该页面标识与页面的映射关系可以 存储于该移动设备 1中的页面访问历史记录及网络设备 2中的页面访问 记录中。 在此, 由网络设备 2确定与目标页面相对应的参考页面, 移动 设备 1只需根据该参考页面的第一标识信息, 在移动设备端的页面访问 历史记录中进行匹配查询, 得到该参考页面, 减轻了移动设备的处理开 销。
优选地, 网络设备 2还包括记录更新装置 25,, 记录更新装置 25, 获取所述移动设备 1所对应的用户的页面操作; 根据所述页面操作, 建立或更新所述页面访问记录。 具体地, 用户通过与移动设备 1的交 互, 在该移动设备 1中进行打开页面、 关闭页面等页面操作; 记录更 新装置 25 '通过调用该移动设备 1所提供的应用程序接口( API )或其 他约定的通信方式, 如 http或 https等协议, 获取该用户所做的页面 操作, 并根据该页面操作, 通过数据库更新的方式, 建立或更新页面 访问记录, 如接收到关闭页面的页面操作时, 在该页面访问记录中删 除该页面操作所对应的页面的访问记录, 或者当接收到打开页面的页 面操作时, 在该该页面访问记录中增加关于该页面操作所对应的页面 的访问记录。 本领域技术人员应能理解上述建立或更新页面访问记录 的方式仅为举例, 其他现有的或今后可能出现的建立或更新页面访问 记录的方式如可适用于本发明, 也应包含在本发明保护范围以内, 并 所述在此以引用方式包含于此。 在此, 网络设备 2根据用户的页面操 作, 建立或更新页面访问记录, 使得该页面访问记录与移动设备 1中 的页面访问历史记录同步, 以实现当网络设备 2根据目标页面匹配得 到参考页面时, 移动设备 1可以根据该参考页面的第一标识信息, 在 该移动设备 1中的页面访问历史记录中同样匹配得到该参考页面。
在此, 本领域技术人员应能理解, 网络设备 2 中的记录更新装置 与该网络设备 2 中的其他装置所执行的操作没有时间上的先后顺序关 系。
本领域技术人员还应能理解, 上述属性更新装置和记录更新装置 仅为示例, 在实践中, 它们可以是两个独立的模块, 也可集成在一个模 块中。
在一个优选实施例中(参见图 1 ), 由移动设备 1确定与所述目标 页面相对应的参考页面。 移动设备 1 中的请求发送装置 11获取所述 用户通过所述移动设备 1提交的关于目标页面的访问请求; 确定与所 述目标页面相对应的参考页面;向所述网络设备 2发送所述访问请求, 其中, 所述访问请求包括与所述参考页面相对应的第二标识信息。 网 络设备 2中的请求接收装置 21接收自所述移动设备 1所发送的关于 目标页面的所述访问请求, 其中, 所述访问请求包括用于确定与所述 目标页面相对应的参考页面的第二标识信息; 其中, 所述差分处理装 置 23根据与所述第二标识信息相对应的所述参考页面, 并结合所述 目标页面中页面元素的可见属性, 对所述目标页面进行差分处理, 以 获得所述页面差分信息。 具体地, 用户通过与移动设备 1的交互, 在 该移动设备 1中通过点击、 划动、 长按或输入网址等方式, 提交了关 于目标页面的访问请求; 请求发送装置 11通过调用该移动设备 1所 提供的应用程序接口 (API )、 或通过诸如 JSP、 ASP, PHP等页面技 术, 获取该用户所提交的关于目标页面的访问请求; 接着, 请求发送 装置 11 根据该访问请求中关于该目标页面的页面标识、 页面地址等 标识信息,通过在该移动设备 1的页面访问历史记录中进行匹配查询, 确定与该目标页面相对应的参考页面, 如以与该目标页面的页面地址 最相近的页面作为参考页面、 以与该目标页面的页面内容最相近的页 面作为参考页面等; 随后, 请求发送装置 11 将该上述参考页面的页 面标识、 页面地址等作为其第二标识信息, 再通过将该第二标识信息 写入访问请求的特定字段的方式, 通过一次或多次调用网络设备 2所 提供的应用程序接口 (API ) 或其他约定的通信方式, 向所述网络设 备 2发送所述访问请求,其中,所述访问请求包括所述第二标识信息。 网络设备 2中的请求接收装置 21例如通过前例中所述的 API或其他 约定的通信方式,接收自所述移动设备 1所发送的关于目标页面的所 述访问请求, 其中, 所述访问请求包括用于确定与所述目标页面相对 应的参考页面的第二标识信息。 随后, 差分处理装置 23从该访问请 求的特定字段或数据单元中提取出第二标识信息,根据该第二标识信 息, 通过在诸如页面信息库或页面访问记录中进行匹配查询, 获取与 该第二标识信息相对应的参考页面, 接着, 差分处理装置 23根据经 上述方式匹配得到的参考页面, 及页面获取装置 22所获取的目标页 面中页面元素的可见属性, 对该目标页面进行差分处理, 以获得与该 目标页面相对应的页面差分信息。 在此, 差分处理装置 23根据所述 参考页面, 并结合所述目标页面中页面元素的可见属性, 对所述目标 页面进行差分处理, 以获得与所述目标页面相对应的页面差分信息; 这一过程与图 1所对应其他实施例中差分处理装置 23的操作过程基 本相同, 为简明起见, 此处不再赘述, 并通过引用的方式包含于此。 在此, 本发明由移动设备确定参考页面, 使得参考页面的匹配更加精 确, 网络设备只需根据该参考页面的第二标识信息, 在页面访问记录 或者直接在页面信息库中匹配查询, 获得参考页面。
图 3示出根据本发明另一个方面的用于获取目标页面的方法流程 图。
移动设备 1包括但不限于任何一种可与用户通过键盘、 触摸板、 触摸屏或手写设备等方式进行人机交互的移动电子产品, 例如笔记 本、 手机、 PDA、 掌上电脑 PPC或平板电脑等。 网络设备 2包括但不 限于网络主机、 单个网络服务器、 多个网络服务器集或多个服务器构 成的云。 在此, 云由基于云计算(Cloud Computing )的大量计算机或 网络服务器构成, 其中, 云计算是分布式计算的一种, 由一群松散耦 合的计算机集组成的一个超级虚拟计算机。 移动设备 1与网络设备 2 之间的通信相互独立, 包括但不限于基于诸如 TCP/IP协议、 UDP协 议等的分组数据传输。 本领域技术人员应能理解上述移动设备 1、 网 络设备 2, 以及连接其间的网络、 通信方式仅为举例, 其他现有的或 今后可能出现的移动设备、 网络设备或网络、 通信方式如可适用于本 发明,也应包含在本发明保护范围以内,并在此以引用方式包含于此。
移动设备 1和网络设备 2之间的各个步骤之间互相配合, 以完成 获取目标页面。 具体地, 在步骤 S1 中, 移动设备 1向网络设备 2发 送用户通过移动设备 1提交的关于目标页面的访问请求; 网络设备 2 接收自移动设备 1所发送的关于目标页面的访问请求;在步骤 S2中, 网络设备 2根据所述访问请求, 获取所述目标页面; 在步骤 S3中, 网络设备 2根据与所述目标页面相对应的参考页面, 并结合所述目标 页面中页面元素的可见属性, 对所述目标页面进行差分处理, 以获得 与所述目标页面相对应的页面差分信息; 在步骤 S4 中, 网络设备 2 将所述页面差分信息发送至所述移动设备 1 ; 移动设备 1接收自所述 网络设备 2所发送的与所述目标页面相对应的页面差分信息;在步骤 S5 中, 移动设备 1根据所述页面差分信息, 并结合与所述目标页面相对应 的参考页面, 生成所述目标页面; 在步骤 S5中, 移动设备 1将所述目 标页面提供至所述移动设备 1。 上述各个步骤之间是持续不断工作的。 在此, 本领域技术人员应理解 "持续" 是指上述各步骤分别不断地进 行关于目标页面的访问请求的发送与接收、 目标页面的获取与差分处 理、 页面差分信息的发送与接收、 目标页面的生成与提供, 直至该用 户停止通过移动设备 1提交关于目标页面的访问请求。
在步骤 S1 中, 移动设备 1向网络设备 2发送用户通过移动设备 1 提交的关于目标页面的访问请求。 具体地, 用户通过与移动设备 1 的交互,在该移动设备 1中通过点击、划动、长按或输入网址等方式, 提交了关于目标页面的访问请求; 在步骤 S1 中, 移动设备 1通过调 用该移动设备 1所提供的应用程序接口(API )、或通过诸如 JSP、ASP、 PHP等页面技术, 获取该用户所提交的关于目标页面的访问请求, 再 通过一次或多次调用网络设备 2所提交的应用程序接口 (API ) 或其 他约定的通信方式, 向网络设备 2发送该关于目标页面的访问请求。 在此, 该访问请求中包括目标页面的页面地址、 页面名称、 页面标识 等标识信息, 或者, 该访问请求还可以包括用户的当前浏览页面、 该 移动设备所确定的参考页面的页面地址、 页面名称、 页面标识等标识 信息; 在步骤 S1 中, 移动设备 1通过将上述目标页面、 参考页面或 两者的标识信息写入特定字段或数据单元的方式, 生成所述访问请 求。 例如, 用户正在浏览的当前浏览页面为 P1 , 该用户通过在该页 面中点击关于目标页面 P2的链接,提交了关于该目标页面 P2的访问 请求; 在步骤 S1 中, 移动设备 1通过诸如 JSP等页面技术, 获取该 用户提交的访问请求, 并通过将该当前浏览页面 P1 的标识信息、 该 目标页面 P2的标识信息等写入访问请求的特定字段的方式, 生成访 问请求, 然后, 调用网络设备 2所提交的应用程序接口 (API ) 或其 他约定的通信方式, 向网络设备 2发送该关于该目标页面 P2的访问 请求。 本领域技术人员应能理解上述发送关于目标页面的访问请求的 方式仅为举例, 其他现有的或今后可能出现的发送关于目标页面的访 问请求的方式如可适用于本发明, 也应包含在本发明保护范围以内, 并所述在此以引用方式包含于此。
在步骤 S1 中, 网络设备 2接收自移动设备 1所发送的关于目标 页面的访问请求。 具体地, 在步骤 S1 中, 网络设备 2例如通过上例 中所述的应用程序接口 (API ) 或其他约定的通信方式, 接收自移动 设备 1所发送的关于目标页面的访问请求。
在步骤 S2中, 网络设备 2根据所述访问请求, 获取所述目标页 面。 具体地, 在步骤 S2中, 网络设备 2根据在步骤 S1中所接收的关 于目标页面的访问请求, 从该请求的特定字段或数据单元中提取出关 于目标页面的页面地址、 页面名称、 页面标识等标识信息, 才艮据该标 识信息, 通过例如在页面信息库中进行匹配查询等方式, 获取与该标 识信息相对应的目标页面。 在此, 所述页面信息库中存储有页面与页 面地址、 页面标识等标识信息的映射关系, 其可以通过网络爬虫爬取 到不同页面并对该页面信息库进行建立或更新, 该页面信息库既可以 位于网络设备 2中, 也可以位于与该网络设备 2通过网络相连接的网 络站点等第三方设备中。 本领域技术人员应能理解上述获取目标页面 的方式仅为举例, 其他现有的或今后可能出现的获取目标页面的方式 如可适用于本发明, 也应包含在本发明保护范围以内, 并所述在此以 引用方式包含于此。
在步骤 S3中, 网络设备 2 根据与所述目标页面相对应的参考页 面, 并结合所述目标页面中页面元素的可见属性, 对所述目标页面进 行差分处理,以获得与所述目标页面相对应的页面差分信息。具体地, 在步骤 S3中, 网络设备 2根据在步骤 S2中所获取的目标页面, 确定 与该目标页面相对应的参考页面, 如将用户的当前浏览页面作为默认 的参考页面、或根据从访问请求的特定字段中提取的关于参考页面的 第二标识信息所获得的参考页面、或根据该目标页面在网络设备 2中 该移动设备 1所对应的页面访问记录中匹配得到的参考页面等, 结合 该目标页面中页面元素的诸如视觉可见、 操作可见等可见属性, 对该 目标页面进行差分处理, 以获得相应的页面差分信息。 在此, 在步骤 S3 中, 网络设备 2根据目标页面中页面元素的可见属性, 对该目标 页面进行差分处理的方式包括但不限于: 1 )根据参考页面的源代码, 对该目标页面的源代码直接进行差分处理, 获得候选页面差分信息, 再根据该候选页面差分信息中页面元素的可见属性, 筛选出具有如视 觉可见、 操作可见或两者组合的可见属性的页面元素, 以作为相应的 页面差分信息; 2 ) 先根据该参考页面和目标页面的页面代码, 生成 dom树或 render树, 再^!夸该两个页面的 dom树或 render树进行差分 处理, 例如通过最大公共子序列方式, 获得候选页面差分信息,接着, 根据该候选页面差分信息中页面元素的可见属性, 对该页面差分信息 进行歸选, 歸选出具有如视觉可见、 操作可见或两者组合的可见属性 的页面元素, 以作为相应的页面差分信息; 3 ) 先分别对该参考页面 和目标页面中的页面元素进行筛选处理, 筛选出具有如视觉可见、 操 作可见或两者组合的可见属性的页面元素, 再将分别自参考页面与目 标页面中筛选出的页面元素进行差分处理, 以获得页面差分信息。 例 如, 用户正在浏览的当前浏览页面为 P1 , 该用户通过在该页面中点 击关于目标页面 P2的链接, 提交了关于该目标页面 P2的访问请求, 在步骤 S1 中, 移动设备 1将该访问请求发送至网络设备 2, 该访问 请求中包括关于目标页面 P2的页面地址; 网络设备 2接收到该访问 请求; 在步骤 S2中, 网络设备 2从该访问请求的特定字段中提取出 目标页面 P2的页面地址, 通过在诸如页面信息库中进行匹配查询等 方式, 获取该目标页面 P2; 假设参考页面默认为移动设备 1 的当前 浏览页面 P1 , 在步骤 S3中, 网络设备 2根据与该目标页面 P2相对 应的参考页面, 即 P1 , 对该目标页面 P2与参考页面 P1进行差分处 理, 获得候选页面差分信息 Δ , 而该候选页面差分信息 Δ中的页面元 素都具有诸如视觉可见或操作可见的可见属性, 因此, 相应的页面差 分信息为八。 在此, 所述页面元素的视觉可见属性、 操作可见属性等 可见属性可以根据页面代码中页面元素所对应的信息确定, 或者在页 面属性库中根据对应的页面匹配查询获得, 该所述页面属性库中存储 有页面中页面元素的操作可见属性, 该页面属性库既可以位于网络设 备 2中,也可以位于与该网络设备 2通过网络相连接的第三方设备中。 本领域技术人员应能理解上述对目标页面进行差分处理的方式仅为 举例, 其他现有的或今后可能出现的对目标页面进行差分处理的方式 如可适用于本发明, 也应包含在本发明保护范围以内, 并所述在此以 引用方式包含于此。
在步骤 S4中, 网络设备 2将所述页面差分信息发送至所述移动 设备 1。 具体地, 在步骤 S4中, 网络设备 2实时、 定期或应事件触 发地, 通过一次或多次调用移动设备 1所提供的应用程序接口 (API ) 或其他约定的通信方式, 如 http或 https等网络协议, 将网络设备 2 在步骤 S3中所提供的该页面差分信息发送至移动设备 1。
在步骤 S4中, 移动设备 1接收自所述网络设备 2所发送的与所述 目标页面相对应的页面差分信息。 具体地, 在步骤 S4中, 移动设备 1 例如通过前例中所述的 API或其他约定的方式, 接收自网络设备 2所发 送的与所述目标页面相对应的页面差分信息。
在步骤 S5中, 移动设备 1根据所述页面差分信息, 并结合与所述 目标页面相对应的参考页面, 生成所述目标页面。 具体地, 在步骤 S5 中, 移动设备 1根据在步骤 S4中所接收到的页面差分信息, 再结合与 所述目标页面相对应的参考页面, 如将用户在移动设备 1中的当前浏览 页面作为默认的参考页面、 移动设备 1根据目标页面所匹配得到的参考 页面、 或移动设备 1根据从网络设备 2接收的第一标识信息所匹配得到 的参考页面, 通过对页面源代码、 dom树或 render树进行叠加处理等方 式, 将该页面差分信息与所述参考页面相叠加, 从而生成目标页面。 接 上例,经网络设备 2在步骤 S3中差分处理后所得的页面差分信息为△; 在步骤 S4中, 网络设备 2通过调用移动设备 1所提供的应用程序接 口 (API ), 将该页面差分信息 Δ发送至移动设备 1 ; 移动设备 1接收 到该页面差分信息△; 随后, 在步骤 S5中, 移动设备 1根据该页面 差分信息 Δ , 将该页面差分信息 Δ叠加至参考页面, 即用户的当前浏 览页面 P1上, 从而生成目标页面 P2。 优选地, 在步骤 S5中, 移动 设备 1在与所述目标页面相对应的参考页面中, 对所述页面差分信息所 对应的差分数据执行与所述差分数据相对应的增删操作, 以获得所述目 标页面。 具体地, 在步骤 S5中, 移动设备 1根据该页面差分信息, 如 该目标页面相对该参考页面的差分数据及其对应的增加或删除操作, 对 该参考页面的页面源代码、 dom树或 render树进行叠加处理, 如若该页 面差分信息包括一待删除的差分数据, 则在该参考页面的页面源代码、 dom树或 render树中与该差分数据相对应的位置删除相应的页面元素, 或者, 若该页面差分信息包括一待增加的差分数据, 则在该参考页面的 页面源代码、 dom树或 render树中与该差分数据相对应的位置插入相应 的页面元素, 故以获得对应的目标页面。 本领域技术人员应能理解上 述生成目标页面的方式仅为举例, 其他现有的或今后可能出现的生成 目标页面的方式如可适用于本发明, 也应包含在本发明保护范围以 内, 并所述在此以引用方式包含于此。 在此, 本发明才艮据页面的可见 属性,通过对参考页面及目标页面进行差分处理,得到页面差分信息, 网络设备只需将页面差分信息提供给移动设备, 移动设备在参考页面 的基础上叠加此页面差分信息, 得到目标页面, 使得用户在获取目标 页面的同时, 减少了等待时间、 节省流量, 提高了用户的浏览效率, 提升了用户的使用体验。
在步骤 S6中,移动设备 1将所述目标页面提供至所述移动设备 1。 具体的, 在步骤 S6中, 移动设备 1根据在步骤 S5中所生成的目标页 面, 通过诸如 ASP、 JSP, PHP等页面技术, 在该移动设备 1 中显示所 述目标页面, 以供用户进行浏览。
优选地, 所述可见属性包括以下至少任一项:
- 所述目标页面中页面元素的视觉可见属性;
- 所述目标页面中页面元素的操作可见属性。
具体地, 当所述可见属性包括所述目标页面中页面元素的视觉可见属 性, 在步骤 S3中, 网络设备 2根据目标页面及与该目标页面相对应 的参考页面, 通过先在该两个页面中先筛选出具有视觉可见属性的页 面元素, 再对分别自目标页面和参考页面筛选出的页面元素进行差分 处理的方式; 或者, 通过先经页面源代码、 dom树或 render树等对该 两个页面进行差分处理, 得到候选页面差分信息, 再筛选出该候选页 面差分信息中具有视觉可见属性的页面元素, 作为页面差分信息的方 式, 获得与所述目标页面相对应的页面差分信息。 在此, 具有视觉可 见属性的页面元素是移动设备 1的目标页面中显示可见的, 用户通过 直接观察, 即可浏览该页面元素。 当所述可见属性包括所述目标页面 中页面元素的操作可见属性, 在步骤 S3中, 网络设备 2根据目标页 面及与该目标页面相对应的参考页面, 通过先在该两个页面中先筛选 出具有操作可见属性的页面元素, 再对分别自目标页面和参考页面筛 选出的页面元素进行差分处理的方式; 或者, 通过先经页面源代码、 dom树或 render树等对该两个页面进行差分处理,得到候选页面差分 信息, 再筛选出该候选页面差分信息中具有操作可见属性的页面元 素, 作为页面差分信息的方式, 获得与所述目标页面相对应的页面差 分信息。 在此, 具有操作可见属性的页面元素, 初始在移动设备 1的 目标页面中显示时, 是不可见的, 浏览器根据用户的特定操作, 如点 击特定的按钮、 或仅点击页面等页面操作, 将该具有操作可见属性的 页面元素展现为可见。 优选地, 在步骤 S3中, 网络设备 2还可以根 据目标页面及与该目标页面相对应的参考页面, 并结合所述目标页面 中页面元素的视觉可见属性与操作可见属性, 对所述目标页面进行差 分处理, 以获得与所述目标页面相对应的页面差分信息。 本领域技术 人员应能理解上述可见属性仅为举例, 其他现有的或今后可能出现的 可见属性如可适用于本发明, 也应包含在本发明保护范围以内, 并所 述在此以引用方式包含于此。 在此, 本发明可以确定仅具有视觉可见 属性的页面元素的页面差分信息、或者确定仅具有操作可见属性的页 面元素的页面差分信息, 使得页面差分信息更小, 更加便于传输、 节 省传输时间及流量, 提升用户的浏览效率。
更优选地, 当所述可见属性包括所述目标页面中页面元素的操作 可见属性, 在步骤 S3中, 网络设备 2根据所述目标页面, 在页面属性 库中进行匹配查询, 以获得所述目标页面中页面元素的操作可见属性; 根据与所述目标页面相对应的参考页面, 并结合所述操作可见属性, 对所述目标页面进行差分处理, 以获得所述页面差分信息。 具体地, 当所述可见属性包括所述目标页面中页面元素的操作可见属性, 在步 骤 S3中, 网络设备 2根据在步骤 S2中所获取的目标页面, 在页面属 性库中进行匹配查询, 以确定该目标页面中具有操作可见属性的页面 元素, 从而获得该目标页面中页面元素的操作可见属性; 随后, 在步 骤 S3中, 网络设备 2根据目标页面, 及与该目标页面相对应的参考 页面, 通过先在该两个页面中先筛选出具有操作可见属性的页面元 素, 再对分别自目标页面和参考页面筛选出的页面元素进行差分处理 的方式; 或者, 通过先经页面源代码、 dom树或 render树等对该两个 页面进行差分处理, 得到候选页面差分信息, 再筛选出该候选页面差 分信息中具有操作可见属性的页面元素, 作为页面差分信息的方式, 获得与所述目标页面相对应的页面差分信息。 在此, 所述页面属性库 中存储有页面中页面元素的操作可见属性, 该页面属性库既可以位于 网络设备 2中, 也可以位于与该网络设备 2通过网络相连接的第三方 设备中。
更优选地, 在步骤 S8 (未示出) 中, 网络设备 2根据候选页面的 历史访问记录, 获取所述候选页面中页面元素的操作可见属性; 根据所 述候选页面中页面元素的操作可见属性, 建立或更新所述页面属性库。 具体地, 在页面的历史访问记录中, 如当用户对一候选页面进行页面操 作之后, 该候选页面中的某些页面元素被展现, 则可认为该 现的页 面元素具有操作可见属性, 在步骤 S8中, 网络设备 2通过与网络设备 2 或其他存储有页面的历史访问记录的第三方设备的交互, 获取该候选 页面中页面元素的操作可见属性; 进一步地, 通过数据库更新的方式, 将该候选页面中页面元素的操作可见属性存入该页面属性库, 以建立或 更新该页面属性库。 本领域技术人员应能理解上述建立或更新页面属 性库的方式仅为举例, 其他现有的或今后可能出现的建立或更新页面 属性库的方式如可适用于本发明, 也应包含在本发明保护范围以内, 并所述在此以引用方式包含于此。
图 4示出根据本发明一个优选实施例的用于获取目标页面的方法 流程图; 其中, 步骤 Sl,、 S2,、 S4,和 S6,分别与图 3所示对应步骤 Sl、 S2、 S4和 S6相同或基本相同, 故此处不再赘述, 并通过引用的方式包 含于此。
在本实施例中, 由网络设备 2确定与所述目标页面相对应的参考 页面。 其中, 在步骤 S3,中, 网络设备 2根据所述目标页面, 在与所 述移动设备相对应的页面访问记录中进行匹配查询, 以获得与所述目 标页面相对应的参考页面; 根据所述参考页面, 并结合所述目标页面 中页面元素的可见属性, 对所述目标页面进行差分处理, 以获得与所 述目标页面相对应的页面差分信息; 随后, 在步骤 S4'中, 网络设备 2 将所述页面差分信息与所述参考页面的第一标识信息发送至所述移 动设备 1。 具体地, 在步骤 S3,中, 网络设备 2根据在步骤 S2,中所获 取的目标页面, 在与所述移动设备 1相对应的页面访问记录中进行匹 配查询, 以获得与所述目标页面相对应的参考页面, 如根据该目标页 面的页面内容在页面访问记录中匹配出页面内容最相近的参考页面, 或才艮据该目标页面的页面地址在页面访问记录中匹配出页面地址最 相近的参考页面等; 随后, 在步骤 S3,中, 网络设备 2根据经上述方 式匹配得到的参考页面, 及在步骤 S2,中所获取的目标页面中页面元 素的可见属性, 对该目标页面进行差分处理, 以获得与该目标页面相 对应的页面差分信息。 在此, 在步骤 S3,中, 网络设备 2根据所述参 考页面, 并结合所述目标页面中页面元素的可见属性, 对所述目标页 面进行差分处理, 以获得与所述目标页面相对应的页面差分信息; 这 一过程与图 3中网络设备 2在步骤 S3中的操作过程基本相同, 为简 明起见, 此处不再赘述, 并通过引用的方式包含于此。 在此, 所述页 面访问记录存储有用户在移动设备 1的关于页面的访问历史记录, 该 页面访问记录与移动设备 1中的页面访问历史记录同步, 以实现当网 络设备 2根据目标页面匹配得到参考页面时, 移动设备 1可以根据该 参考页面的页面标识, 在该移动设备 1中的页面访问历史记录中同样 匹配得到该参考页面。 该页面访问记录既可以位于网络设备 2中, 也 可以位于与该网络设备 2通过网络相连接的第三方设备中。 随后, 在 步骤 S4,中, 网络设备 2通过一次或多次调用移动设备 1所提供的应用 程序接口 (API )或其他约定的通信方式, 将所述页面差分信息与所述 参考页面的第一标识信息发送至所述移动设备 1。 在此, 在步骤 S4, 中, 网络设备 2的工作过程与图 3中网络设备 2在步骤 S4中的工作 过程基本相同, 为简明起见, 此处不再赘述, 并通过引用的方式包含 于此。 本领域技术人员应能理解上述确定参考页面的方式仅为举例, 其他现有的或今后可能出现的确定参考页面的方式如可适用于本发 明, 也应包含在本发明保护范围以内, 并所述在此以引用方式包含于 此。
接着,移动设备 1接收自所述网络设备 2所发送的所述页面差分信 息和用于确定与所述目标页面相对应的参考页面的第一标识信息; 随 后, 在步骤 S5,中, 移动设备 1根据所述页面差分信息, 并结合与所述 第一标识信息相对应的参考页面, 生成所述目标页面。 具体地, 在步骤 S4,中,移动设备 1例如通过前例中所述的 API或其他约定的通信方式, 接收自网络设备 2所发送的页面差分信息和用于确定与所述目标页面相 对应的参考页面的第一标识信息; 随后, 在步骤 S5,中, 移动设备 1根 据该第一标识信息, 在该移动设备 1中的页面访问历史记录中进行匹配 查询, 获得与该第一标识信息相对应的参考页面, 接着, 再通过对页面 源代码、 dom树或 render树进行叠加处理等方式, 将该移动设备 1在步 骤 S4,中所接收的页面差分信息叠加至该参考页面中, 从而生成目标页 面。 在此, 第一标识信息可以是参考页面的页面地址, 或移动设备 1与 网络设备 2预设的页面标识, 该页面标识与页面的映射关系可以存储于 该移动设备 1 中的页面访问历史记录及网络设备 2 中的页面访问记录 中。 在此, 由网络设备 2确定与目标页面相对应的参考页面, 移动设备 1 只需才艮据该参考页面的第一标识信息, 在移动设备端的页面访问历史 记录中进行匹配查询, 得到该参考页面, 减轻了移动设备的处理开销。
优选地, 在步骤 S7,中, 网络设备 2获取所述移动设备 1所对应 的用户的页面操作; 才艮据所述页面操作, 建立或更新所述页面访问记 录。 具体地, 用户通过与移动设备 1的交互, 在该移动设备 1中进行 打开页面、 关闭页面等页面操作; 在步骤 S7'中, 网络设备 2通过调 用该移动设备 1所提供的应用程序接口 (API ) 或其他约定的通信方 式, 如 http或 https等协议, 获取该用户所做的页面操作, 并根据该 页面操作, 通过数据库更新的方式, 建立或更新页面访问记录, 如接 收到关闭页面的页面操作时, 在该页面访问记录中删除该页面操作所 对应的页面的访问记录, 或者当接收到打开页面的页面操作时, 在该 该页面访问记录中增加关于该页面操作所对应的页面的访问记录。 本 领域技术人员应能理解上述建立或更新页面访问记录的方式仅为举 例, 其他现有的或今后可能出现的建立或更新页面访问记录的方式如 可适用于本发明, 也应包含在本发明保护范围以内, 并所述在此以引 用方式包含于此。 在此, 网络设备 2根据用户的页面操作, 建立或更 新页面访问记录, 使得该页面访问记录与移动设备 1中的页面访问历 史记录同步,以实现当网络设备 2根据目标页面匹配得到参考页面时, 移动设备 1可以根据该参考页面的第一标识信息, 在该移动设备 1中 的页面访问历史记录中同样匹配得到该参考页面。
在此, 本领域技术人员应能理解, 网络设备 2在步骤 S7,中所执 行的操作与该网络设备 2在其他步骤中所执行的操作没有时间上的先 后顺序关系。
在一个优选实施例中(参见图 3 ), 由移动设备 1确定与所述目标 页面相对应的参考页面。 在步骤 S1 中, 移动设备 1获取所述用户通 过所述移动设备 1提交的关于目标页面的访问请求; 确定与所述目标 页面相对应的参考页面;向所述网络设备 2发送所述访问请求,其中, 所述访问请求包括与所述参考页面相对应的第二标识信息。 网络设备 2接收自所述移动设备 1所发送的关于目标页面的所述访问请求, 其 中, 所述访问请求包括用于确定与所述目标页面相对应的参考页面的 第二标识信息; 随后, 在步骤 S3中, 网络设备 2根据与所述第二标 识信息相对应的所述参考页面, 并结合所述目标页面中页面元素的可 见属性, 对所述目标页面进行差分处理, 以获得所述页面差分信息。 具体地,用户通过与移动设备 1的交互,在该移动设备 1中通过点击、 划动、 长按或输入网址等方式, 提交了关于目标页面的访问请求; 在 步骤 S1 中, 移动设备 1通过调用该移动设备 1所提供的应用程序接 口 (API )、 或通过诸如 JSP、 ASP, PHP等页面技术, 获取该用户所 提交的关于目标页面的访问请求; 接着, 移动设备 1根据该访问请求 中关于该目标页面的页面标识、 页面地址等标识信息, 通过在该移动 设备 1的页面访问历史记录中进行匹配查询, 确定与该目标页面相对 应的参考页面, 如以与该目标页面的页面地址最相近的页面作为参考 页面、 以与该目标页面的页面内容最相近的页面作为参考页面等; 随 后, 移动设备 1将该上述参考页面的页面标识、 页面地址等作为其第 二标识信息, 再通过将该第二标识信息写入访问请求的特定字段的方 式, 通过一次或多次调用网络设备 2所提供的应用程序接口 (API ) 或其他约定的通信方式,向所述网络设备 2发送所述访问请求,其中, 所述访问请求包括所述第二标识信息。 网络设备 2例如通过前例中所 述的 API或其他约定的通信方式,接收自所述移动设备 1所发送的关 于目标页面的所述访问请求, 其中, 所述访问请求包括用于确定与所 述目标页面相对应的参考页面的第二标识信息。 随后, 在步骤 S3中, 网络设备 2从该访问请求的特定字段或数据单元中提取出第二标识信 息, 根据该第二标识信息, 通过在诸如页面信息库或页面访问记录中 进行匹配查询, 获取与该第二标识信息相对应的参考页面, 接着, 在 步骤 S3中, 网络设备 2根据经上述方式匹配得到的参考页面, 及网 络设备 2在步骤 S2中所获取的目标页面中页面元素的可见属性, 对 该目标页面进行差分处理, 以获得与该目标页面相对应的页面差分信 息。 在此, 在步骤 S3中, 网络设备 2根据所述参考页面, 并结合所 述目标页面中页面元素的可见属性, 对所述目标页面进行差分处理, 以获得与所述目标页面相对应的页面差分信息; 这一过程与图 3所对 应其他实施例中网络设备 2在步骤 S3中所执行的操作过程基本相同, 为简明起见, 此处不再赘述, 并通过引用的方式包含于此。 在此, 本 发明由移动设备确定参考页面, 使得参考页面的匹配更加精确, 网络 设备只需根据该参考页面的第二标识信息, 在页面访问记录或者直接 在页面信息库中匹配查询, 获得参考页面。
对于本领域技术人员而言, 显然本发明不限于上述示范性实施例 的细节, 而且在不背离本发明的精神或基本特征的情况下, 能够以其 他的具体形式实现本发明。 因此, 无论从哪一点来看, 均应将实施例 看作是示范性的, 而且是非限制性的, 本发明的范围由所附权利要求 而不是上述说明限定, 因此旨在将落在权利要求的等同要件的含义和 范围内的所有变化涵括在本发明内。 不应将权利要求中的任何附图标 记视为限制所涉及的权利要求。 此外, 显然"包括"一词不排除其他单 元或步骤, 单数不排除复数。 装置权利要求中陈述的多个单元或装置 也可以由一个单元或装置通过软件或者硬件来实现。 第一, 第二等词 语用来表示名称, 而并不表示任何特定的顺序。

Claims

权 利 要 求 书
1. 一种在移动设备端用于获取目标页面的方法, 其中, 该方法 包括以下步骤:
A 向网络设备发送用户通过移动设备提交的关于目标页面的访 问请求;
B 接收自所述网络设备所发送的与所述目标页面相对应的页面差 分信息;
C根据所述页面差分信息, 并结合与所述目标页面相对应的参考 页面, 生成所述目标页面;
D将所述目标页面提供至所述移动设备。
2. 根据权利要求 1所述的方法, 其中, 所述步骤 B包括:
- 接收自所述网络设备所发送的所述页面差分信息和用于确定与 所述目标页面相对应的参考页面的第一标识信息;
其中, 所述步骤 C包括:
-根据所述页面差分信息,并结合与所述第一标识信息相对应的参 考页面, 生成所述目标页面。
3. 根据权利要求 1所述的方法, 其中, 所述步骤 A包括:
- 获取所述用户通过所述移动设备提交的关于目标页面的访问 请求;
- 确定与所述目标页面相对应的参考页面;
- 向所述网络设备发送所述访问请求, 其中, 所述访问请求包括 与所述参考页面相对应的第二标识信息。
4. 根据权利要求 1至 3中任一项所述的方法, 其中, 所述步骤 C包括:
- 在与所述目标页面相对应的参考页面中,对所述页面差分信息所 对应的差分数据执行与所述差分数据相对应的增删操作,以获得所述目 标页面。
5. —种在网络设备端用于辅助获取目标页面的方法, 其中, 该 方法包括以下步骤:
a接收自移动设备所发送的关于目标页面的访问请求;
b 根据所述访问请求, 获取所述目标页面;
c 根据与所述目标页面相对应的参考页面, 并结合所述目标页 面中页面元素的可见属性, 对所述目标页面进行差分处理, 以获得 与所述目标页面相对应的页面差分信息;
d 将所述页面差分信息发送至所述移动设备。
6. 根据权利要求 5所述的方法, 其中, 所述步骤 c包括:
- 才艮据所述目标页面,在与所述移动设备相对应的页面访问记录 中进行匹配查询, 以获得与所述目标页面相对应的参考页面;
- 根据所述参考页面,并结合所述目标页面中页面元素的可见属 性, 对所述目标页面进行差分处理, 以获得与所述目标页面相对应 的页面差分信息;
其中, 所述步骤 d包括:
- 将所述页面差分信息与所述参考页面的第一标识信息发送至 所述移动设备。
7. 根据权利要求 6所述的方法, 其中, 该方法还包括:
- 获取所述移动设备所对应的用户的页面操作;
- 根据所述页面操作, 建立或更新所述页面访问记录。
8. 根据权利要求 5所述的方法, 其中, 所述步骤 a包括:
- 接收自所述移动设备所发送的关于目标页面的所述访问请求, 其中, 所述访问请求包括用于确定与所述目标页面相对应的参考页 面的第二标识信息;
其中, 所述步骤 c包括:
- 根据与所述第二标识信息相对应的所述参考页面,并结合所述 目标页面中页面元素的可见属性, 对所述目标页面进行差分处理, 以获得所述页面差分信息。
9. 根据权利要求 5至 8中任一项所述的方法, 其中, 所述可见 属性包括以下至少任一项: - 所述目标页面中页面元素的视觉可见属性;
- 所述目标页面中页面元素的操作可见属性。
10. 根据权利要求 9所述的方法, 其中, 所述可见属性包括所述 目标页面中页面元素的操作可见属性, 其中, 所述步骤 c包括:
-根据所述目标页面, 在页面属性库中进行匹配查询, 以获得所述 目标页面中页面元素的操作可见属性;
- 根据与所述目标页面相对应的参考页面,并结合所述操作可见 属性, 对所述目标页面进行差分处理, 以获得所述页面差分信息。
11. 根据权利要求 10所述的方法, 其中, 该方法还包括:
-根据候选页面的历史访问记录,获取所述候选页面中页面元素的 操作可见属性;
-根据所述候选页面中页面元素的操作可见属性,建立或更新所述 页面属性库。
12. 一种用于获取目标页面的移动设备, 其中, 该设备包括: 请求发送装置, 用于向网络设备发送用户通过移动设备提交的 关于目标页面的访问请求;
差分信息接收装置, 用于接收自所述网络设备所发送的与所述目 标页面相对应的页面差分信息;
页面生成装置, 用于根据所述页面差分信息, 并结合与所述目标页 面相对应的参考页面, 生成所述目标页面;
页面提供装置, 用于将所述目标页面提供至所述移动设备。
13. 根据权利要求 12所述的移动设备, 其中, 所述差分信息接 收装置用于:
- 接收自所述网络设备所发送的所述页面差分信息和用于确定与 所述目标页面相对应的参考页面的第一标识信息;
其中, 所述页面生成装置用于:
-根据所述页面差分信息,并结合与所述第一标识信息相对应的参 考页面, 生成所述目标页面。
14. 根据权利要求 12所述的移动设备, 其中, 所述请求发送装 置用于:
- 获取所述用户通过所述移动设备提交的关于目标页面的访问 请求;
- 确定与所述目标页面相对应的参考页面;
- 向所述网络设备发送所述访问请求, 其中, 所述访问请求包括 与所述参考页面相对应的第二标识信息。
15. 根据权利要求 12至 14中任一项所述的移动设备, 其中, 所 述页面生成装置用于:
- 在与所述目标页面相对应的参考页面中,对所述页面差分信息所 对应的差分数据执行与所述差分数据相对应的增删操作,以获得所述目 标页面。
16. —种用于辅助获取目标页面的网络设备,其中,该设备包括: 请求接收装置, 用于接收自移动设备所发送的关于目标页面的 访问请求;
页面获取装置, 用于根据所述访问请求, 获取所述目标页面; 差分处理装置, 用于根据与所述目标页面相对应的参考页面, 并结合所述目标页面中页面元素的可见属性, 对所述目标页面进行 差分处理, 以获得与所述目标页面相对应的页面差分信息;
差分信息发送装置, 用于将所述页面差分信息发送至所述移动 设备。
17. 根据权利要求 16所述的网络设备, 其中, 所述差分处理装 置用于:
- 才艮据所述目标页面,在与所述移动设备相对应的页面访问记录 中进行匹配查询, 以获得与所述目标页面相对应的参考页面;
- 根据所述参考页面,并结合所述目标页面中页面元素的可见属 性, 对所述目标页面进行差分处理, 以获得与所述目标页面相对应 的页面差分信息;
其中, 所述差分信息发送装置用于:
- 将所述页面差分信息与所述参考页面的第一标识信息发送至 所述移动设备。
18. 根据权利要求 17所述的网络设备, 其中, 该设备还包括记 录更新装置, 用于:
- 获取所述移动设备所对应的用户的页面操作;
- 根据所述页面操作, 建立或更新所述页面访问记录。
19. 根据权利要求 16所述的网络设备, 其中, 所述请求接收装 置用于:
- 接收自所述移动设备所发送的关于目标页面的所述访问请求, 其中, 所述访问请求包括用于确定与所述目标页面相对应的参考页 面的第二标识信息;
其中, 所述差分处理装置用于:
- 根据与所述第二标识信息相对应的所述参考页面,并结合所述 目标页面中页面元素的可见属性, 对所述目标页面进行差分处理, 以获得所述页面差分信息。
20. 根据权利要求 16至 19中任一项所述的网络设备, 其中, 所 述可见属性包括以下至少任一项:
- 所述目标页面中页面元素的视觉可见属性;
- 所述目标页面中页面元素的操作可见属性。
21. 根据权利要求 20所述的网络设备, 其中, 所述可见属性包 括所述目标页面中页面元素的操作可见属性, 其中, 所述差分处理装 置用于:
-根据所述目标页面, 在页面属性库中进行匹配查询, 以获得所述 目标页面中页面元素的操作可见属性;
- 根据与所述目标页面相对应的参考页面,并结合所述操作可见 属性, 对所述目标页面进行差分处理, 以获得所述页面差分信息。
22. 根据权利要求 21 所述的网络设备, 其中, 该设备还包括属 性更新装置, 用于:
-根据候选页面的历史访问记录,获取所述候选页面中页面元素的 操作可见属性; -根据所述候选页面中页面元素的操作可见属性,建立或更新所述 页面属性库。
23. 一种用于获取目标页面的系统, 包括如权利要求 12至 15中 任一项所述的移动设备及如权利要求 16至 22 中任一项所述的网络设 备。
PCT/CN2012/078447 2011-08-02 2012-07-10 一种用于获取目标页面的方法与设备 WO2013017009A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011102201054A CN102298617A (zh) 2011-08-02 2011-08-02 一种用于获取目标页面的方法与设备
CN201110220105.4 2011-08-02

Publications (1)

Publication Number Publication Date
WO2013017009A1 true WO2013017009A1 (zh) 2013-02-07

Family

ID=45359031

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078447 WO2013017009A1 (zh) 2011-08-02 2012-07-10 一种用于获取目标页面的方法与设备

Country Status (2)

Country Link
CN (1) CN102298617A (zh)
WO (1) WO2013017009A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618787A (zh) * 2013-11-26 2014-03-05 优视科技有限公司 一种网页展现系统和方法
US10747951B2 (en) 2013-11-26 2020-08-18 Uc Mobile Co., Ltd. Webpage template generating method and server

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102298617A (zh) * 2011-08-02 2011-12-28 百度在线网络技术(北京)有限公司 一种用于获取目标页面的方法与设备
CN103678330A (zh) * 2012-09-04 2014-03-26 北京新岸线移动多媒体技术有限公司 网页数据加载方法、系统及装置
CN104516889B (zh) * 2013-09-27 2018-09-04 腾讯科技(深圳)有限公司 网页加载的方法、系统及浏览器和代理服务器
CN103685476B (zh) * 2013-11-26 2019-03-15 优视科技有限公司 利用网页模板实现网页展现的方法和网页模板服务器
CN103731493B (zh) * 2013-12-31 2017-10-24 优视科技有限公司 页面传输方法、装置及系统
CN103731492B (zh) * 2013-12-31 2017-08-04 优视科技有限公司 一种页面传输处理方法、装置和系统
CN104156232B (zh) * 2014-07-18 2018-09-07 百度在线网络技术(北京)有限公司 在线性页面结构下用于页面非线性跳转的方法和设备
CN105868129B (zh) * 2016-03-24 2018-12-28 安徽师范大学 嵌入式系统标定时工作页和参考页切换方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002023401A2 (en) * 2000-09-12 2002-03-21 Citrix Systems, Inc. A system and method for accessing web pages
CN101207605A (zh) * 2006-12-18 2008-06-25 国际商业机器公司 用于使通过网络的数据传输量最小化的系统和方法
US20090019133A1 (en) * 2007-07-13 2009-01-15 Stephen Brimley System, method and computer program for updating a web page in a web browser
CN101866362A (zh) * 2010-07-01 2010-10-20 优视科技有限公司 移动通讯设备终端的自动定位页面主要内容的方法及系统
CN102298617A (zh) * 2011-08-02 2011-12-28 百度在线网络技术(北京)有限公司 一种用于获取目标页面的方法与设备

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002023401A2 (en) * 2000-09-12 2002-03-21 Citrix Systems, Inc. A system and method for accessing web pages
CN101207605A (zh) * 2006-12-18 2008-06-25 国际商业机器公司 用于使通过网络的数据传输量最小化的系统和方法
US20090019133A1 (en) * 2007-07-13 2009-01-15 Stephen Brimley System, method and computer program for updating a web page in a web browser
CN101866362A (zh) * 2010-07-01 2010-10-20 优视科技有限公司 移动通讯设备终端的自动定位页面主要内容的方法及系统
CN102298617A (zh) * 2011-08-02 2011-12-28 百度在线网络技术(北京)有限公司 一种用于获取目标页面的方法与设备

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103618787A (zh) * 2013-11-26 2014-03-05 优视科技有限公司 一种网页展现系统和方法
CN103618787B (zh) * 2013-11-26 2017-03-15 优视科技有限公司 一种网页展现系统和方法
US10747951B2 (en) 2013-11-26 2020-08-18 Uc Mobile Co., Ltd. Webpage template generating method and server

Also Published As

Publication number Publication date
CN102298617A (zh) 2011-12-28

Similar Documents

Publication Publication Date Title
WO2013017009A1 (zh) 一种用于获取目标页面的方法与设备
US9183266B2 (en) Method, system, and computer program product for synchronizing data
CN104253857B (zh) 背靠背虚拟web实时通信代理以及相关的方法、系统
CN103023875B (zh) 一种账户管理系统及方法
CN102984159B (zh) 基于终端访问行为的安全接入逻辑控制方法及平台服务器
CN107463453B (zh) 同一终端不同应用间通信的方法、装置、设备和存储介质
CN105357240A (zh) 远程协助的控制方法及装置
CN105659557A (zh) 用于单点登录的基于网络的接口集成
CN102710736B (zh) 头戴型显示装置和客户端装置
TW200412060A (en) System and method for using portals by mobile devices in a disconnected mode
WO2013141977A1 (en) Seamless browsing between devices
JP2002533830A (ja) クライアント−サーバネットワークにおいてクライアントノードの近隣プログラムを判定するための装置および方法
JP6945211B2 (ja) コミュニケーション支援装置、方法、及びコンピュータプログラム
CN101848374A (zh) 无线视频监控系统及无线视频监控方法
WO2013078830A1 (zh) 一种处理移动终端的页面访问请求的方法、设备与系统
CN102468981A (zh) 用于业务网络管理发现和合并的系统和方法
JP2017513151A (ja) プライベートクラウド接続装置クラスタアーキテクチャ
TW201318394A (zh) 帳號建立及認證方法
CN105227592B (zh) 一种互联网架构及实现方法
CN104506624B (zh) 一种社交信息管理系统及管理方法
JP2016212656A (ja) 情報処理装置、端末、情報処理装置と端末を有するシステム、情報処理方法及びプログラム
TW200425696A (en) Method and system of using shared file for data collaboration
JP2009140163A (ja) セッション管理装置
JP2007035053A (ja) 異なる端末器間のセッション保持方法
CN105208010B (zh) 基于反向ssh的跨局域网远程数据连接方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12819362

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12819362

Country of ref document: EP

Kind code of ref document: A1