WO2015055125A1 - 网页信息的处理方法及装置 - Google Patents
网页信息的处理方法及装置 Download PDFInfo
- Publication number
- WO2015055125A1 WO2015055125A1 PCT/CN2014/088694 CN2014088694W WO2015055125A1 WO 2015055125 A1 WO2015055125 A1 WO 2015055125A1 CN 2014088694 W CN2014088694 W CN 2014088694W WO 2015055125 A1 WO2015055125 A1 WO 2015055125A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- webpage
- link
- loaded
- user terminal
- user
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9574—Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
Definitions
- the present invention relates to the field of Internet technologies, and in particular, to processing webpage information.
- HTML Hypertext Markup Language
- the current web browser does offline page saves for those pages that the user has opened, not for those pages that are not open. For example, there are many webpage links in the currently open page.
- the offline savepage page can only save the currently opened page. For the link, it cannot be opened under offline conditions. If the user wants to access the link, it must be re-networked. Access, the process is very cumbersome and consumes traffic.
- the embodiment of the invention provides a method and a device for processing webpage information, which can download and save a webpage corresponding to a link in a webpage.
- An embodiment of the present invention provides a method for processing webpage information, which may include: loading a webpage, displaying a link in the webpage; acquiring a first link in the loaded webpage; and virtually opening the first link in the background Corresponding webpage, and save the virtual open webpage and the loaded webpage.
- An embodiment of the present invention provides a device for processing webpage information, which may include: a loading module, configured to load a webpage, wherein the webpage displays a link; and an obtaining module, configured to acquire a first link in the loaded webpage And a saving module, configured to dynamically open the webpage corresponding to the first link in the background, and save the virtualized webpage and the loaded webpage.
- the webpage corresponding to the one or more first links in the loaded page is dynamically opened in the background, and the virtualized webpage and the loaded webpage are saved, and the loaded webpage and the loaded webpage may be The webpage data corresponding to the one or more first links in the loaded webpage is saved, so that the user can quickly access the loaded webpage and the first link in the loaded webpage in an offline state. Page.
- FIG. 1 is a schematic flowchart diagram of a method for processing webpage information according to a first embodiment of the present invention.
- FIG. 2 is a schematic flow chart of step S12 in FIG. 1.
- FIG. 3 is a schematic flow chart of step S13 in FIG. 1.
- FIG. 4 is a schematic flowchart diagram of a method for processing webpage information according to a second embodiment of the present invention.
- FIG. 5 is a schematic structural diagram of a device for processing webpage information according to a third embodiment of the present invention.
- FIG. 6 is a schematic structural diagram of the acquisition module of FIG. 5.
- FIG. 7 is a schematic structural view of the save module of FIG. 5.
- FIG. 8 is a schematic structural diagram of a device for processing webpage information according to a fourth embodiment of the present invention.
- FIG. 9 is a diagram of an application environment according to an embodiment of the present invention.
- FIG. 10 is a schematic structural diagram of the user terminal of FIG. 9.
- FIG. 1 is a schematic flowchart diagram of a method for processing webpage information according to a first embodiment of the present invention.
- This embodiment is a method for processing webpage information executed by a user terminal.
- the method may include the following steps S11 to S13.
- step S11 a webpage is loaded, and a link is displayed in the webpage.
- the browser sends an HTTP request for the webpage to the server, receives the HTTP response returned by the server, and displays the webpage data included in the HTTP response on the user terminal. Specifically, a link of one or more other web pages is displayed on the webpage.
- Step S12 Acquire a first link in the loaded webpage.
- obtaining the first link in the loaded webpage may default to obtaining all links in the loaded webpage.
- All links within the loaded web page can be obtained by parsing the script of the web page.
- a web page in an HTML-encoded format is implemented by adding a series of tags to a text file to implement a web page display of the browser.
- obtaining the first link in the loaded webpage may be obtaining a link selected by the user from all links in the loaded webpage.
- step S12 may specifically include:
- Step S121 displaying all the links in the loaded webpage to the user for selection by the user.
- a link selection window may be generated, the link selection window including all links within the loaded web page.
- each link in the link selection window can correspond to a check box.
- each link in the link selection window, each link can be displayed as a title + link.
- Step S122 Acquire one or more first links selected by the user.
- the user can select one or more links in the link selection window, for example, by clicking the left button on the link displayed in the link selection window by the mouse and dragging, selecting the link corresponding to the webpage that you want to save, or using the shortcut key to match the mouse.
- the specific embodiment of the present invention is not limited thereto, or is selected by checking a check box.
- the first link in the loaded webpage may also be obtained by acquiring one or more links selected by the user directly in the loaded page.
- the user can directly select a link corresponding to the saved webpage in the loaded webpage, for example, by clicking a left button on the link displayed on the loaded webpage by using a mouse.
- the specific embodiment of the present invention is not limited thereto by dragging to select, or by using a shortcut key to match the mouse selection and the like.
- step S13 the webpage corresponding to the first link is dynamically opened in the background, and the virtualized webpage and the loaded webpage are saved.
- step S13 may include:
- Step S131 Acquire a uniform resource locator corresponding to the first link.
- the first link in the loaded webpage may be one or more. Therefore, the Uniform Resource Locator (abbreviated as URL) corresponding to each first link may be acquired in step S131.
- the URL corresponding to each first link can also be obtained by a script that parses the webpage, such as the attribute content of the href in each ⁇ a> tag in the HTML script.
- Step S132 sending an HTTP request to the server according to the uniform resource locator.
- Step S133 receiving an HTTP response returned by the server
- Step S134 the background virtual opening the webpage included in the HTTP response, and saving the virtualized webpage and the loaded webpage.
- the virtually opened web page and the loaded web page can be saved locally.
- the virtual open web page and the loaded web page can be saved to a local RAM, ROM, hard disk, or the like.
- the virtually opened web page and the loaded web page can be saved to other storage devices that are wired or wirelessly connected to the local device.
- the virtual open web page and the loaded web page can be saved to a floppy disk, an optical disk, a USB disk, etc., or saved to other devices wirelessly connected to the device.
- the processing method of the webpage information may further include: monitoring whether an event of the link in the downloaded webpage in the browser is triggered.
- the flow described in this embodiment is executed. If the event that the link in the download webpage is not detected is triggered, the flow described in this embodiment is not executed.
- the method for processing webpage information by dynamically opening one or more first links in the loaded webpage in the background, and saving the opened webpage and the loaded webpage, the loaded webpage and the loaded webpage may be loaded.
- the webpage data corresponding to one or more first links in the webpage is saved, so that the user can quickly access the loaded webpage and the webpage corresponding to the first link in the loaded webpage in an offline state, without re-networking access.
- FIG. 4 is a schematic flowchart diagram of a method for processing webpage information according to a second embodiment of the present invention.
- This embodiment is a method for processing webpage information executed by a user terminal.
- the method may include the following steps S21 to S27.
- step S21 user terminal information is sent to the server.
- the user terminal information may be a UA field, and the UA field may be carried in an HTTP request sent by the user terminal to the server to access the current webpage.
- the UA field (User Agent String), also known as the user agent field, is widely used to identify the browser terminal information. It can facilitate the website server to obtain the terminal information to understand how the website content is displayed on the terminal, usually by letters and numbers. composition.
- the UA field may carry basic information of the terminal, such as a terminal model, a browser version, and the like.
- the server may determine, according to the terminal information in the UA field, whether the user terminal is a mobile terminal device such as a mobile phone or a PC terminal device.
- step S22 a webpage is loaded, and a link is displayed in the webpage.
- the user terminal information is a UA field and the UA field is carried in an HTTP request sent by the user terminal to the server to access the current webpage, receiving an HTTP response returned by the server, and loading the HTTP response according to the HTTP response Web page.
- Step S23 The receiving server determines, according to the user terminal information, whether the user terminal is a mobile terminal.
- step S24 is performed; if the result of the determination is YES, step S26 is performed.
- Step S24 Detect whether the network environment of the user terminal is a Wi-Fi (Wireless Fidelity) environment.
- Wi-Fi Wireless Fidelity
- step S25 is performed; if it is a Wi-Fi environment, step S26 is performed.
- Step S26 Acquire a first link in the loaded webpage.
- Step S27 The webpage virtually opens the webpage corresponding to the first link, and saves the virtualized webpage and the loaded webpage.
- the user may output a traffic prompt message to the user, prompting the user to download the link in the loaded webpage to consume traffic, and popping up a selection window for the user to select whether Continue to download and continue or end according to the user's actions.
- the user terminal can also automatically monitor its own network environment. If the user converts the network into 2G/3G and other methods that require traffic, the user terminal can pop up a prompt message to prompt the user to pause the download and automatically monitor the network environment changes when the network When switching to a Wi-Fi environment, automatic breakpoints are resumed.
- the method for processing the webpage information in the embodiment of the present invention can enable the mobile terminal to download and save the Wi-Fi environment.
- the webpage corresponding to the first link in the loaded webpage when the mobile terminal leaves the Wi-Fi environment or offline, can quickly access the loaded webpage and the webpage corresponding to the first link in the loaded webpage, No longer consume any traffic.
- the method for processing the webpage information in the embodiment of the present invention can not only enable the user to quickly access the loaded webpage and the first link in the loaded webpage in the case of disconnection of the network.
- the webpage and even if the user terminal is not disconnected from the network, the user can quickly access the loaded webpage and the webpage corresponding to the first link in the loaded webpage by the method, without waiting for the webpage to be opened. A long process.
- step S22 may be performed before step S21, or may be performed after step S23, or simultaneously with step S21 or S23.
- the method for processing webpage information can dynamically open the acquired one or more first links in the background, and save the opened webpage and the loaded webpage to save the user.
- the web page corresponding to the first webpage in the loaded webpage and the webpage corresponding to the first webpage in the loaded webpage are not required to be re-networked.
- FIG. 5 is a schematic structural diagram of a device for processing webpage information according to a third embodiment of the present invention. It should be noted that the device in the embodiment of the present invention may be loaded into a browser of the user terminal, and the device may be applied to the foregoing method. Referring to FIG. 5, the apparatus 30 in this embodiment may include:
- a loading module 31 configured to load a webpage, where the webpage displays a link
- An obtaining module 32 configured to acquire a first link in the loaded webpage
- the saving module 33 is configured to dynamically open a webpage corresponding to the first link in the background, and save the virtualized webpage and the loaded webpage.
- the obtaining Module 32 can include:
- a link display unit 321, configured to display all links in the loaded webpage to a user
- the selection obtaining unit 322 is configured to acquire a link selected by the user from all the links, wherein the link selected from the all links is the first link.
- the link display unit 321 may be further configured to generate a link selection window, where the link selection window displays all the links in the loaded webpage.
- each link in the link selection window can correspond to a check box.
- each link in the link selection window, each link can be displayed as a title + link.
- the user can select one or more links in the link selection window, for example, by clicking the left button on the link displayed in the link selection window and dragging, select the link corresponding to the webpage to be saved, or select the mouse button with the shortcut key.
- the specific embodiment of the present invention is not limited thereto.
- the obtaining module may be configured to acquire one or more links selected by the user directly in the loaded webpage.
- the user can directly select a link corresponding to the webpage to be saved in the loaded webpage, for example, by clicking a left button and dragging on the link displayed on the loaded webpage by a mouse, or by using a shortcut key.
- the specific embodiments of the present invention are not limited thereto.
- the first link in the loaded webpage may also default to all links in the webpage.
- the saving module 33 may further include:
- a locator acquiring unit 331, configured to acquire a uniform resource locator corresponding to the first link
- the request sending unit 332 is configured to send an HTTP request to the server according to the uniform resource locator
- the response receiving unit 333 is configured to receive an HTTP response returned by the server
- the background saving unit 334 is configured to dynamically open a webpage included in the HTTP response in the background, and save the virtual opened webpage and the loaded webpage.
- the first link in the loaded webpage may be one or more. Therefore, the Uniform Resource Locator (abbreviated as URL) corresponding to each first link is obtained in step S131.
- the URL corresponding to each link can also be obtained by parsing the script of the webpage, such as the attribute content of the href in each ⁇ a> tag in the HTML script.
- the apparatus 30 may further include a monitoring module 34 for monitoring whether an event in the browser downloading a link within the webpage is triggered when the browser of the user terminal is turned on.
- the device for processing webpage information by dynamically opening one or more first links in the loaded webpage by the background, and saving the opened webpage and the loaded webpage, the user may be The webpage corresponding to the first webpage in the loaded webpage and the webpage corresponding to the first webpage in the loaded webpage is not required to be re-networked.
- FIG. 8 is a schematic structural diagram of a device for processing webpage information according to a fourth embodiment of the present invention. It should be noted that the device in the embodiment of the present invention may be loaded into a browser of the user terminal, and the device may be applied to the foregoing method. Referring to FIG. 8, the device 40 in this embodiment may include:
- a loading module 41 configured to load a webpage, where the webpage displays a link
- An obtaining module 42 configured to acquire a first link in the loaded webpage
- the saving module 43 is configured to dynamically open a webpage corresponding to the first link in the background, and save the virtualized webpage and the loaded webpage.
- the apparatus 40 may further include a judgment execution module 44, the judgment The execution module 44 includes a transmitting unit 441, a result receiving unit 442, and a detecting unit 443.
- the sending unit 441 is configured to send user terminal information to the server.
- the result receiving unit 442 is configured to receive a determination result of the user terminal type according to the user terminal information.
- the detecting unit 443 is configured to detect, if the user terminal is a mobile terminal, whether the network environment of the user terminal is a Wi-Fi environment.
- the obtaining module 42 is specifically configured to acquire a first link in the loaded webpage if it is a Wi-Fi environment.
- the user terminal information may be a UA field (User Agent String), which is also referred to as a user agent field, and is widely used to identify the browser terminal information, which may facilitate the website server to obtain the information of the terminal, so as to understand the manner in which the website content is displayed on the terminal, usually It is made up of letters and numbers.
- the UA field may carry basic information of the terminal, such as a terminal model, a browser version, and the like.
- the server may determine, according to the terminal information in the UA field, whether the user terminal is a mobile terminal device such as a mobile phone or a PC terminal device.
- the device may further include a prompting unit. If it is not a Wi-Fi environment, the prompting unit 444 may further output a traffic prompting message to the user, prompting the user to download the link in the loaded webpage. The traffic is consumed, and a selection window pops up for the user to select whether to continue the download and continue or end according to the user's operation.
- the user terminal can also automatically monitor its own network environment. If the user converts the network into 2G/3G and other methods that require traffic, the user terminal can pop up a prompt message to prompt the user to pause the download and automatically monitor the network environment changes when the network When switching to a Wi-Fi environment, automatic breakpoints are resumed.
- the processing device of the webpage information in the mobile terminal can download and save the first link in the loaded webpage in the Wi-Fi environment, and the mobile terminal can quickly access the mobile terminal when leaving the Wi-Fi environment or offline.
- the loaded webpage and the webpage corresponding to the first link in the loaded webpage no longer consume any traffic.
- the processing device for the webpage information in the embodiment of the present invention can not only enable the user to quickly access the loaded webpage and the first link in the loaded webpage in the case of disconnection of the network. Webpage, and even if the user terminal is not disconnected from the network, the user can quickly access the loaded webpage and the webpage corresponding to the first link in the loaded webpage through the device, without waiting for the webpage to be opened. A long process.
- the processing device for webpage information virtually opens one or more first links in the loaded page by the background, and saves the opened webpage and the loaded webpage.
- the user can be made to quickly access the loaded webpage and the webpage corresponding to the first link in the loaded webpage in an offline state.
- FIG. 9 is an application environment diagram of a method and an apparatus for processing webpage information according to the present invention.
- the server 100 is connected to the user terminal 200 through a wired or wireless network.
- the server can be a web server or other type of server that can provide various resources and services to the user.
- the user terminal 200 is installed with a browser, and the data interaction between the browser and the server 100 adopts Hypertext Transfer Protocol (HTTP).
- HTTP Hypertext Transfer Protocol
- the user terminal 200 may be a terminal device such as a PC, a tablet computer, a mobile phone, an e-reader, a notebook computer, a smart TV, a set top box, or an in-vehicle terminal.
- FIG. 10 shows a partial structural diagram of the user terminal 200.
- the user terminal includes: a radio frequency (RF) circuit 1010, a memory 1020, an input unit 1030, a display unit 1040, a sensor 1050, an audio circuit 1060, a wireless fidelity (WiFi) module 1070, and processing.
- RF radio frequency
- Device 1080 and components such as power supply 1090.
- Those skilled in the art can understand that the structure shown in FIG. 10 does not constitute a user end. The definition of the ends may include more or fewer components than those illustrated, or some components may be combined, or different component arrangements. The components of the user terminal will be specifically described below with reference to FIG.
- the RF circuit 1010 can be used to transmit and receive information and receive and transmit signals during a call.
- RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
- LNA Low Noise Amplifier
- RF circuit 1010 can also communicate with the network and other devices via wireless communication.
- the above wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code Division). Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), and the like.
- GSM Global System of Mobile communication
- GPRS General Packet Radio Service
- CDMA Code Division Multiple Access
- WCDMA Wideband Code Division Multiple Access
- LTE Long Term Evolution
- E-mail Short Messaging Service
- the memory 1020 can be used to store software programs and modules, and the processor 1080 executes various functional applications and data processing of the user terminals by running software programs and modules stored in the memory 1020.
- the memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the user terminal (such as audio data, etc.).
- memory 1020 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
- the input unit 1030 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the user terminal.
- the input unit 1030 may include a touch panel 1031 and other input devices 1032.
- the touch panel 1031 also referred to as a touch screen, can collect touch operations on or near the user (such as a user using a finger, a stylus, etc.) Any suitable object or accessory is operated on or near the touch panel 1031, and the corresponding connecting device is driven according to a preset program.
- the touch panel 1031 may include two parts: a touch detection device and a touch controller.
- the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
- the processor 1080 is provided and can receive commands from the processor 1080 and execute them.
- the touch panel 1031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
- the input unit 1030 may also include other input devices 1032.
- other input devices 1032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
- the display unit 1040 can be used to display information input by the user or information provided to the user as well as various menus of the user terminal.
- the display unit 1040 may include a display panel 1041.
- the display panel 1041 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
- the touch panel 1031 may cover the display panel 1041, and when the touch panel 1031 detects a touch operation thereon or nearby, the touch panel 1031 transmits to the processor 1080 to determine the type of the touch event, and then the processor 1080 according to the touch event. The type provides a corresponding visual output on display panel 1041.
- touch panel 1031 and the display panel 1041 are used as two independent components to implement the input and input functions of the user terminal in FIG. 10, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated.
- the input and output functions of the user terminal are implemented.
- various resources and services provided by the server may be displayed on the display unit 1040 in the form of a webpage through a browser, and the webpage may include text, pictures, videos, webpage links, and the like.
- the user terminal may also include at least one type of sensor 1050, such as a light sensor, motion sensor, and other sensors.
- the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of the ambient light.
- the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity.
- the posture of the user terminal such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for the gyroscope, barometer, hygrometer, thermometer, infrared sensor and other sensors that can be configured in the user terminal, here No longer.
- An audio circuit 1060, a speaker 1061, and a microphone 1062 can provide an audio interface between the user and the user terminal.
- the audio circuit 1060 can transmit the converted electrical data of the received audio data to the speaker 1061, and convert it into a sound signal output by the speaker 1061; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, by the audio circuit 1060. After receiving, it is converted into audio data, and then processed by the audio data output processor 1080, sent to, for example, another user terminal via the RF circuit 1010, or outputted to the memory 1020 for further processing.
- WiFi is a short-range wireless transmission technology.
- the user terminal can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 1070. It provides wireless broadband Internet access for users.
- Processor 1080 is the control center of the user terminal, connecting various portions of the entire user terminal using various interfaces and lines, by running or executing software programs and/or modules stored in memory 1020, and recalling data stored in memory 1020.
- the user terminal performs various functions and processing data, thereby performing overall monitoring on the user terminal.
- the processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
- the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1080.
- the user terminal also includes a power source 1090 (such as a battery) that supplies power to the various components.
- a power source 1090 such as a battery
- the power source can be logically coupled to the processor 1080 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
- the user terminal may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
- the processor 1080 included in the user terminal may execute program instructions stored in the memory 1020 to perform the following functions: loading a webpage, displaying a link in the webpage; and acquiring the loaded webpage The first link in the background; and the webpage virtual opening the webpage corresponding to the first link, and saving the virtualized webpage and the loaded webpage.
- the obtaining the first link in the webpage includes: displaying all links in the loaded webpage to a user; and acquiring a link selected by the user from all the links, wherein the The link selected in all links is the first link.
- the foregoing background virtual opening the webpage corresponding to the first link, and saving the virtualized webpage and the loaded webpage includes: acquiring a uniform resource locator corresponding to the first link; a uniform resource locator, sending an HTTP request to the server; receiving an HTTP response returned by the server; and dynamically opening a webpage included in the HTTP response in the background, and saving the virtual opened webpage and the loaded webpage.
- the processor 1080 may further execute program instructions stored in the memory 1020 to perform the following functions: sending user terminal information to the server; and receiving, by the server, a determination result of whether the user terminal is a mobile terminal according to the user terminal information; If the determination result is yes, detecting whether the network environment of the user terminal is a Wi-Fi environment, if not a Wi-Fi environment, ending, or outputting traffic prompt information to the user, prompting the user to download the loaded webpage. The link will consume traffic and a selection window will pop up for the user to choose whether to continue downloading.
- the processor 1080 may further execute program instructions stored in the memory 1020 to perform the following functions: sending user terminal information to the server; and receiving, by the server, a determination result of whether the user terminal is a mobile terminal according to the user terminal information; If the determination result is yes, it is detected whether the network environment of the user terminal is a Wi-Fi environment, and if it is a Wi-Fi environment, the step of acquiring the first link in the loaded webpage is performed.
- the processor 1080 can also execute program instructions stored in the memory 1020 to perform the function of detecting whether an event in the browser downloading a link within the web page is triggered.
- a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
- the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.
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)
Abstract
本发明公开了网页信息的处理方法及装置,其中的方法包括:加载一网页,所述网页内显示有链接;获取所述加载的网页内的第一链接;以及后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。本发明可以将当前网页以及当前网页内的第一链接的网页数据保存下来,使得用户可以在离线状态下很快的访问当前网页以及当前网页中被保存的链接所对应的网页。
Description
本申请要求于2013年10月18日提交中国专利局、申请号为201310492597.1、发明名称为“网页信息的处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及一种互联网技术领域,具体涉及网页信息的处理。
用户在浏览网页时,主要通过网页浏览器。在浏览网页时,网页浏览器与万维网服务器(WWW)的数据交互采用超文本传输协议(HTTP)。WWW服务器向终端发送的网页数据包括超丈本标记语言(HTML)等格式的文本文件以及相关媒体资源。终端的网页浏览器在获取上述文件和资源后,将其绘制到网页浏览器的窗口中,以供与用户进行交互。
当前网页浏览器做离线页面保存都是针对那些用户已打开的页面,而非针对那些未打开的页面。比如:在当前打开的页面中有很多网页链接,离线保存页面只能保存当前已打开的页面,对于其中的链接是无法在离线情况下打开的,用户想要访问其中的链接,必须重新联网进行访问,过程十分的繁琐且耗费流量。
发明内容
本发明实施例提供一种网页信息的处理方法及装置,可下载并保存网页内的链接所对应的网页。
本发明实施例提供了一种网页信息的处理方法,可包括:加载一网页,所述网页内显示有链接;获取所述加载的网页内的第一链接;以及后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
本发明实施例提供了一种网页信息的处理装置,可包括:加载模块,用于加载一网页,所述网页内显示有链接;获取模块,用于获取所述加载的网页内的第一链接;以及保存模块,用于后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
本发明实施例通过后台虚拟打开所述加载的页面中的一个或多个第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存,可以将所述加载的网页以及所述加载的网页内的一个或多个第一链接对应的网页数据保存下来,使得用户可以在离线状态下很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明第一实施例提供的网页信息的处理方法的流程示意图。
图2为图1中步骤S12的流程示意图。
图3为图1中步骤S13的流程示意图。
图4为本发明第二实施例提供的网页信息的处理方法的流程示意图。
图5为本发明第三实施例提供的网页信息的处理装置的结构示意图。
图6为图5中获取模块的结构示意图。
图7为图5中保存模块的结构示意图。
图8为本发明第四实施例提供的网页信息的处理装置的结构示意图。
图9为本发明实施例的应用环境图。
图10为图9中用户终端的一种结构示意图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
第一实施例
请参见图1,为本发明第一实施例提供的网页信息的处理方法的流程示意图。本实施例为用户终端所执行的网页信息的处理方法。该方法可包括以下步骤S11至步骤S13。
步骤S11,加载一网页,所述网页内显示有链接。
具体的,用户浏览器被开启后,浏览器向服务器发送网页的HTTP请求,接收服务器返回的HTTP响应,并将HTTP响应中包含的网页数据显示在用户终端上。具体地,所述网页上显示有一个或多个其他网页的链接。
步骤S12,获取所述加载的网页内的第一链接。
在一种实现方式中,获取所述加载的网页内的第一链接可以默认为获取所述加载的网页内的所有链接。
通过解析网页的脚本可以获取所述加载的网页内的所有链接。以
HTML编码格式的网页为例,通过在文本文件中加入一系列的标签(tag)实现浏览器的网页显示。HTML语法的基本元素由“<”和“>”对组成,两者之间是标签的内容。例如<a href==“http://www.sina.com.cn”>新浪网</a>,表示用鼠标点击网页上显示的“新浪网”时,浏览器会自动打开http://www.sina.com.cn指向的网页。也就是说,网页的链接会包括有http、https、ftp、www等这些标识,通过解析网页的脚本,可以获取包含这些标识的所有链接。
在另一种实现方式中,获取所述加载的网页内的第一链接可以为获取所述用户从所述加载的网页内的所有链接中选择的链接。请参照图2,于本发明的一种具体实施方式中,步骤S12具体可以包括:
步骤S121,将所述加载的网页内的所有链接展示给用户、供用户选择。
具体的,可以生成链接选择窗口,所述链接选择窗口包括所述加载的网页内的所有链接。可选的,在链接选择窗口中的每个链接可以对应一个复选框。可选的,在链接选择窗口中,每个链接可以以标题+链接的方式展示。
步骤S122,获取用户所选择的一个或多个第一链接。
用户可以在链接选择窗口中选取一个或多个链接,例如,通过鼠标在链接选择窗口显示的链接上点击左键并拖动,选中想要保存的网页所对应的链接,或通过快捷键配合鼠标选取,或者通过勾选复选框选取等等,本发明的具体实施方式并不以此为限。
于本发明的另一种具体实施方式中,也可以通过获取用户直接在所述加载的页面中所选择的一个或多个链接来作为所述加载的网页内的第一链接。也就是说,用户可以直接在所述加载的网页中选取想用保存的网页所对应的链接,例如通过鼠标在所述加载的网页显示的链接上点击左键并
拖动来选取,或通过快捷键配合鼠标选取等等,本发明的具体实施方式并不以此为限。
步骤S13,后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
请参照图3,步骤S13可以包括:
步骤S131,获取所述第一链接对应的统一资源定位符。
所述加载的网页内的第一链接可以是一个或多个,因此,步骤S131中获取的可以是与每个第一链接对应的统一资源定位符(Uniform Resource Locator,缩写为URL)。每个第一链接对应的URL也可以通过解析网页的脚本获得,例如HTML脚本中每一<a>标签中href的属性内容。
步骤S132,根据所述统一资源定位符,向服务器发送HTTP请求。
步骤S133,接收服务器返回的HTTP响应;以及
步骤S134,后台虚拟打开HTTP响应中包含的网页,并将虚拟打开的网页以及所述加载的网页进行保存。
在一种实现方式中,可以将虚拟打开的网页以及所述加载的网页保存至本地。例如,可以将虚拟打开的网页以及所述加载的网页保存至本地的RAM,ROM,硬盘等。
在另一种实现方式中,可以将虚拟打开的网页以及所述加载的网页保存至与本机有线或无线连接的其他存储设备上。例如,可以将虚拟打开的网页以及所述加载的网页保存至软盘,光盘,U盘等,或保存至与本机无线连接的其他设备上。
进一步地,在步骤S11的加载并显示一网页之前或者之后,所述网页信息的处理方法还可以包括:监测浏览器中的下载网页内链接的事件是否被触发。
其中,当用户点击浏览器中的下载网页内链接事件的触发控件(例如
按钮),或者用户选择浏览器中的下载网页内链接事件的选择控件(例如勾选框)时,或者进行其他类似操作时,可以判定为已监测到下载网页内链接的事件被触发。也就是说,当监测到自动下载已打开网页内自带链接的功能被开启时,即可认为监测到了下载网页内链接的事件被触发。
当监测到了下载网页内链接的事件被触发之后,执行本实施例所述的流程。如果没有监测到下载网页内链接的事件被触发,则不执行本实施例所述的流程。
本发明实施例提出的网页信息的处理方法,通过后台虚拟打开加载的网页内的一个或多个第一链接,并将打开后的网页以及加载的网页进行保存,可以将加载的网页以及加载的网页内的一个或多个第一链接对应的网页数据保存下来,使得用户可以在离线状态下很快的访问加载的网页以及与加载的网页中的第一链接对应的网页,不需要再重新联网访问。
第二实施例
请参见图4,为本发明第二实施例提供的网页信息的处理方法的流程示意图。本实施例为用户终端所执行的网页信息的处理方法。该方法可包括以下步骤S21至步骤S27。
步骤S21,向服务器发送用户终端信息。
具体地,该用户终端信息可以是UA字段,该UA字段可以携带在用户终端向服务器发送的访问所述当前网页的HTTP请求中。
UA字段(User Agent String),也称为用户代理字段,被广泛用来标识浏览器终端信息,可以方便网站服务器获取终端的信息,以了解网站内容在终端的展现方式,通常是由字母和数字组成。UA字段中可以携带有终端的基本信息,例如终端型号、浏览器版本等等。于本实施例中,服务器可以根据UA字段中的终端信息判断所述用户终端为手机等移动终端设备,还是PC终端设备。
步骤S22,加载一网页,所述网页内显示有链接。
在用户终端信息为UA字段并且该UA字段携带在用户终端向服务器发送的访问所述当前网页的HTTP请求中的情况下,接收所述服务器返回的HTTP响应,并根据所述HTTP响应加载所述网页。
步骤S23,接收服务器根据所述用户终端信息对用户终端是否为移动终端的判断结果。
如果判断结果为是,则执行步骤S24;如果判断结果为不是,则执行步骤S26。
步骤S24,检测所述用户终端的网络环境是否为Wi-Fi(Wireless Fidelity,无线保真)环境。
如果不是Wi-Fi环境,则执行步骤S25;如果是Wi-Fi环境,则执行步骤S26。
步骤S25,结束。
步骤S26,获取所述加载的网页内的第一链接。
步骤S27,后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
于本发明的其他具体实施方式中,如果不是Wi-Fi环境,还可以向用户输出流量提示信息,提示用户下载所述加载的网页内的链接将消耗流量,并弹出选择窗口,供用户选择是否继续下载,并根据用户的操作继续执行或结束。用户终端还可以自动监测自身的网络环境,如果用户将网络转换为2G/3G等需要耗费流量的方式时,用户终端可以弹出提示消息,提示用户暂停下载,并自动监测网络环境的变化,当网络转变为Wi-Fi环境时,自动断点续传。
对于移动终端的用户,用户对流量消耗十分的敏感,本发明实施例中的网页信息的处理方法,可以使移动终端在Wi-Fi环境中下载并保存所述
加载的网页中的第一链接对应的网页,当移动终端离开Wi-Fi环境或者离线时,可以很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页,不再耗费任何流量。
对于PC终端的用户,本发明实施例中的网页信息的处理方法,不仅可以使用户在断网的情况下很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页,而且即使用户终端没有断网,通过该方法,用户也可以很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页,不需要再等待打开网页的漫长过程。
在本实施例中所公开的方法包括多个步骤。该步骤的执行顺序不是固定的,在不与本实施例的方法的实现冲突的情况下,这些步骤的执行顺序可以改变前后顺序,或者并行执行。例如,步骤S22可以在步骤S21之前执行,也可以在步骤S23之后执行,或者与步骤S21或S23同时执行。
综上所述,本发明实施例提出的网页信息的处理方法,通过后台虚拟打开所获取的一个或多个第一链接,并将打开后的网页以及所述加载的网页进行保存,可以使得用户在离线状态下很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页,不需要再重新联网访问。
第三实施例
图5为本发明第三实施例提供的网页信息的处理装置的结构示意图。需要说明的是,本发明实施例的装置可以加载于用户终端的浏览器,且该装置可以应用于上述的方法中。请参照图5,本实施例中的装置30可包括:
加载模块31,用于加载一网页,所述网页内显示有链接;
获取模块32,用于获取所述加载的网页内的第一链接;以及
保存模块33,用于后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
请参照图6,进一步的,于本发明的一种具体实施方式中,所述获取
模块32可以包括:
链接展示单元321,用于将所述加载的网页内的所有链接展示给用户;以及
选择获取单元322,用于获取用户从所述所有链接中选择的链接,其中,所述从所述所有链接中选择的链接为所述第一链接。
进一步的,所述链接展示单元321还可以用于生成链接选择窗口,所述链接选择窗口显示有所述加载的网页内的所有链接。可选的,在链接选择窗口中的每个链接可以对应一个复选框。可选的,在链接选择窗口中,每个链接可以以标题+链接的方式展示。
用户可以在链接选择窗口中选取一个或多个链接,例如,通过鼠标在链接选择窗口显示的链接上点击左键并拖动,选中想要保存的网页对应的链接,或通过快捷键配合鼠标选取,或者通过勾选复选框选取等等,本发明的具体实施方式并不以此为限。
于本发明的另一种具体实施方式中,所述获取模块可以用于获取用户直接在所述加载的网页中所选择的一个或多个链接。也就是说,用户可以直接在所述加载的网页中选取想要保存的网页对应的链接,例如通过鼠标在所述加载的网页显示的链接上点击左键并拖动来选取,或通过快捷键配合鼠标选取等等,本发明的具体实施方式并不以此为限。
另外,在其他的具体实施方式中,所述加载的网页内的第一链接也可以默认为所述网页中的所有链接。
请参照图7,进一步的,所述保存模块33还可以包括:
定位符获取单元331,用于获取所述第一链接对应的统一资源定位符;
请求发送单元332,用于根据所述统一资源定位符,向服务器发送HTTP请求;
响应接收单元333,用于接收服务器返回的HTTP响应;以及
后台保存单元334,用于后台虚拟打开HTTP响应中包含的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
所述加载的网页内的第一链接可以是一个或多个,因此,步骤S131中获取的是与每个第一链接对应的统一资源定位符(Uniform Resource Locator,缩写为URL)。每个链接对应的URL也可以通过解析网页的脚本获得,例如HTML脚本中每一<a>标签中href的属性内容。
装置30还可进一步包括监测模块34,用于当用户终端的浏览器被开启时,监测浏览器中的下载网页内链接的事件是否被触发。
需要说明的是,本发明实施例的网页信息的处理装置的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,在此不赘述。
本发明实施例提出的网页信息的处理装置,通过后台虚拟打开所述加载的网页中的一个或多个第一链接,并将打开后的网页以及所述加载的网页进行保存,可以使得用户在离线状态下很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页,不需要再重新联网访问。
第四实施例
图8为本发明第四实施例提供的网页信息的处理装置的结构示意图。需要说明的是,本发明实施例的装置可以加载于用户终端的浏览器,且该装置可以应用于上述的方法中。请参照图8,本实施例中的装置40可包括:
加载模块41,用于加载一网页,所述网页内显示有链接;
获取模块42,用于获取所述加载的网页内的第一链接;以及
保存模块43,用于后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
于本实施例中,装置40还可进一步包括判断执行模块44,所述判断
执行模块44包括发送单元441,结果接收单元442以及检测单元443。
发送单元441用于向服务器发送用户终端信息。
结果接收单元442用于接收服务器根据所述用户终端信息对所述用户终端类型的判断结果。
检测单元443用于,如果判断结果为所述用户终端是移动终端,则检测所述用户终端的网络环境是否为Wi-Fi环境。
所述获取模块42具体用于,如果是Wi-Fi环境,则获取所述加载的网页内的第一链接。
用户终端信息可以是UA字段(User Agent String),也称为用户代理字段,被广泛用来标识浏览器终端信息,可以方便网站服务器获取终端的信息,以了解网站内容在终端的展现方式,通常是由字母和数字组成。UA字段中可以携带有终端的基本信息,例如终端型号、浏览器版本等等。于本实施例中,服务器可以根据UA字段中的终端信息判断所述用户终端为手机等移动终端设备,还是PC终端设备。
于本发明的其他具体实施方式中,所述装置还可以包括提示单元,如果不是Wi-Fi环境,提示单元444还可以向用户输出流量提示信息,提示用户下载所述加载的网页内的链接将消耗流量,并弹出选择窗口,供用户选择是否继续下载,并根据用户的操作继续执行或结束。用户终端还可以自动监测自身的网络环境,如果用户将网络转换为2G/3G等需要耗费流量的方式时,用户终端可以弹出提示消息,提示用户暂停下载,并自动监测网络环境的变化,当网络转变为Wi-Fi环境时,自动断点续传。
需要说明的是,本发明实施例的终端的各功能模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,在此不赘述。
对于移动终端的用户,用户对流量消耗十分的敏感,本发明实施例
中的网页信息的处理装置,可以使移动终端在Wi-Fi环境中下载并保存所述加载的网页中的第一链接,当移动终端离开Wi-Fi环境或者离线时,可以很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页,不再耗费任何流量。
对于PC终端的用户,本发明实施例中的网页信息的处理装置,不仅可以使用户在断网的情况下很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页,而且即使用户终端没有断网,通过该装置,用户也可以很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页,不需要再等待打开网页的漫长过程。
综上所述,本发明实施例提出的网页信息的处理装置,通过后台虚拟打开所加载的页面中的一个或多个第一链接,并将打开后的网页以及所述加载的网页进行保存,可以使得用户在离线状态下很快的访问所述加载的网页以及所述加载的网页中的第一链接所对应的网页。
图9为本发明的网页信息的处理方法及装置的应用环境图。如图9所示,服务器100通过有线或无线网络与用户终端200连接。服务器可以是万维网服务器或其他类型的服务器,其可以向用户提供各种资源和服务。用户终端200安装有浏览器,浏览器与服务器100的数据交互采用超文本传输协议(HTTP)。用户终端200可以是PC、平板电脑、手机、电子阅读器、笔记本电脑、智能电视、机顶盒、车载终端等终端设备。
本发明的网页信息的处理方法及装置由用户终端200执行。图10示出了用户终端200的部分结构示意图。
参考图10,该用户终端包括:射频(Radio Frequency,RF)电路1010、存储器1020、输入单元1030、显示单元1040、传感器1050、音频电路1060、无线保真(wireless fidelity,WiFi)模块1070、处理器1080、以及电源1090等部件。本领域技术人员可以理解,图10中示出的结构并不构成对用户终
端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。下面结合图10对用户终端的各个构成部件进行具体的介绍。
RF电路1010可用于收发信息或通话过程中,信号的接收和发送。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1010还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯***(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器1020可用于存储软件程序以及模块,处理器1080通过运行存储在存储器1020的软件程序以及模块,从而执行用户终端的各种功能应用以及数据处理。存储器1020可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据用户终端的使用所创建的数据(比如音频数据等)等。此外,存储器1020可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元1030可用于接收输入的数字或字符信息,以及产生与用户终端的用户设置以及功能控制有关的键信号输入。具体地,输入单元1030可包括触控面板1031以及其他输入设备1032。触控面板1031,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等
任何适合的物体或附件在触控面板1031上或在触控面板1031附近的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板1031可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1080,并能接收处理器1080发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1031。除了触控面板1031,输入单元1030还可以包括其他输入设备1032。具体地,其他输入设备1032可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元1040可用于显示由用户输入的信息或提供给用户的信息以及用户终端的各种菜单。显示单元1040可包括显示面板1041,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1041。进一步的,触控面板1031可覆盖显示面板1041,当触控面板1031检测到在其上或附近的触摸操作后,传送给处理器1080以确定触摸事件的类型,随后处理器1080根据触摸事件的类型在显示面板1041上提供相应的视觉输出。虽然在图10中,触控面板1031与显示面板1041是作为两个独立的部件来实现用户终端的输入和输入功能,但是在某些实施例中,可以将触控面板1031与显示面板1041集成而实现用户终端的输入和输出功能。在本发明中,服务器提供的各种资源和服务可以通过浏览器以网页的形式显示在显示单元1040上,该网页上可包括文本、图片、视频、网页链接等。
用户终端还可包括至少一种传感器1050,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1041的亮度。
作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别用户终端姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;至于用户终端还可配置的陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路1060、扬声器1061,传声器1062可提供用户与用户终端之间的音频接口。音频电路1060可将接收到的音频数据转换后的电信号,传输到扬声器1061,由扬声器1061转换为声音信号输出;另一方面,传声器1062将收集的声音信号转换为电信号,由音频电路1060接收后转换为音频数据,再将音频数据输出处理器1080处理后,经RF电路1010以发送给比如另一用户终端,或者将音频数据输出至存储器1020以便进一步处理。
WiFi属于短距离无线传输技术,用户终端通过WiFi模块1070可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。
处理器1080是用户终端的控制中心,利用各种接口和线路连接整个用户终端的各个部分,通过运行或执行存储在存储器1020内的软件程序和/或模块,以及调用存储在存储器1020内的数据,执行用户终端的各种功能和处理数据,从而对用户终端进行整体监控。可选的,处理器1080可包括一个或多个处理单元;优选的,处理器1080可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作***、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1080中。
用户终端还包括给各个部件供电的电源1090(比如电池),优选的,电源可以通过电源管理***与处理器1080逻辑相连,从而通过电源管理***实现管理充电、放电、以及功耗管理等功能。
尽管未示出,用户终端还可以包括摄像头、蓝牙模块等,在此不再赘述。
在本发明实施例中,该用户终端所包括的处理器1080可执行存储在存储器1020中的程序指令,以执行以下功能:加载一网页,所述网页内显示有链接;获取所述加载的网页内的第一链接;以及后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
可选地,上述获取所述网页内的第一链接包括:将所述加载的网页内的所有链接展示给用户;以及获取用户从所述所有链接中选择的链接,其中,所述从所述所有链接中选择的链接为所述第一链接。
可选地,上述后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存包括:获取所述第一链接对应的统一资源定位符;根据所述统一资源定位符,向服务器发送HTTP请求;接收服务器返回的HTTP响应;以及后台虚拟打开HTTP响应中包含的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
可选地,处理器1080还可执行存储在存储器1020中的程序指令,以执行以下功能:向服务器发送用户终端信息;接收服务器根据所述用户终端信息对用户终端是否为移动终端的判断结果;如果判断结果为是,则检测所述用户终端的网络环境是否为Wi-Fi环境,如果不是Wi-Fi环境,则结束,或者向用户输出流量提示信息,提示用户下载所述加载的网页内的链接将消耗流量,并弹出选择窗口,供用户选择是否继续下载。
可选地,处理器1080还可执行存储在存储器1020中的程序指令,以执行以下功能:向服务器发送用户终端信息;接收服务器根据所述用户终端信息对用户终端是否为移动终端的判断结果;如果判断结果为是,则检测所述用户终端的网络环境是否为Wi-Fi环境,如果是Wi-Fi环境,则执行获取所述加载的网页内的第一链接的步骤。
可选地,处理器1080还可执行存储在存储器1020中的程序指令,以执行以下功能:检测浏览器中的下载网页内链接的事件是否被触发。
需要说明的是,本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于装置类实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个......”限定的要素,并不排除在包括所述要素的过程、方法、物品或者装置中还存在另外的相同要素。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容做出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。
Claims (20)
- 一种网页信息的处理方法,其特征在于,包括:加载一网页,所述网页内显示有链接;获取所述加载的网页内的第一链接;以及后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
- 如权利要求1所述的方法,其特征在于,所述获取所述加载的网页内的第一链接的步骤,包括:将所述加载的网页内的所有链接展示给用户;以及获取用户从所述所有链接中选择的链接,其中,所述从所述所有链接中选择的链接为所述第一链接。
- 如权利要求2所述的方法,其特征在于,所述将所述加载的网页内的所有链接展示给用户以及获取用户从所述所有链接中选择的链接的步骤,包括:生成链接选择窗口,所述链接选择窗口用于显示所述加载的网页内的所有链接并获取用户从所述所有链接中选择的链接。
- 如权利要求1所述的方法,其特征在于,所述获取所述加载的网页内的第一链接的步骤,包括:获取所述加载的网页内的所有链接,其中,所述所有链接为所述第一链接。
- 如权利要求1所述的方法,其特征在于,所述后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存的步骤,包括:获取所述第一链接对应的统一资源定位符;根据所述统一资源定位符,向服务器发送HTTP请求;接收服务器返回的HTTP响应;以及后台虚拟打开HTTP响应中包含的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
- 如权利要求1所述的方法,其特征在于,所述获取所述加载的网页内的第一链接的步骤之前,还包括:向服务器发送用户终端信息;接收服务器根据所述用户终端信息对用户终端是否为移动终端的判断结果;如果判断结果为是,则检测所述用户终端的网络环境是否为Wi-Fi环境,如果不是Wi-Fi环境,则结束,或者向用户输出流量提示信息,提示用户下载所述加载的网页内的链接将消耗流量,并弹出选择窗口,供用户选择是否继续下载。
- 如权利要求1所述的方法,其特征在于,所述获取所述加载的网页内的第一链接的步骤之前,还包括:向服务器发送用户终端信息;接收服务器根据所述用户终端信息对用户终端是否为移动终端的判断结果;如果判断结果为是,则检测所述用户终端的网络环境是否为Wi-Fi环境,如果是Wi-Fi环境,则执行获取所述加载的网页内的第一链接的步骤。
- 如权利要求1所述的方法,其特征在于,所述获取所述加载的网页内的第一链接的步骤之前,还包括:向服务器发送用户终端信息;接收服务器根据所述用户终端信息对用户终端是否为移动终端的判断结果;如果判断结果为不是,则执行获取所述加载的网页内的第一链接的步骤。
- 如权利要求1-8中任一项所述的方法,其特征在于,在获取所述加载的网页内的第一链接的步骤之前,所述方法还包括:检测浏览器中的下载网页内链接的事件是否被触发,如果被触发,则执行获取所述加载的网页内的第一链接的步骤。
- 如权利要求1-8中任一项所述的方法,将该虚拟打开的网页以及所述加载的网页进行保存包括:将该虚拟打开的网页以及所述加载的网页保存至本地。
- 一种网页信息的处理装置,其特征在于,包括:加载模块,用于加载一网页,所述网页内显示有链接;获取模块,用于获取所述加载的网页内的第一链接;以及保存模块,用于后台虚拟打开所述第一链接对应的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
- 如权利要求11所述的装置,其特征在于,所述获取模块包括:链接展示单元,用于将所述加载的网页内的所有链接展示给用户;以及选择获取单元,用于获取用户从所述所有链接中选择的链接,其中,所述从所述所有链接中选择的链接为所述第一链接。
- 如权利要求12所述的装置,其特征在于,所述链接展示单元还用于生成链接选择窗口,所述链接选择窗口用于显示所述加载的网页内的所有链接并获取用户从所述所有链接中选择的链接。
- 如权利要求11所述的装置,其特征在于,所述获取模块包括:获取单元,用于获取所述加载的网页内的所有链接,其中,所述所有链接为所述第一链接。
- 如权利要求11所述的装置,其特征在于,所述保存模块包括:定位符获取单元,用于获取所述第一链接对应的统一资源定位符;请求发送单元,用于根据所述统一资源定位符,向服务器发送HTTP请求;响应接收单元,用于接收服务器返回的HTTP响应;以及后台保存单元,用于后台虚拟打开HTTP响应中包含的网页,并将该虚拟打开的网页以及所述加载的网页进行保存。
- 如权利要求11所述的装置,其特征在于,所述装置还包括判断执行模块,所述判断执行模块包括:发送单元,用于向服务器发送用户终端信息;结果接收单元,用于接收服务器根据所述用户终端信息对用户终端类型的判断结果;检测单元,用于如果判断结果为所述用户终端是移动终端,则检测所述用户终端的网络环境是否为Wi-Fi环境;相应地,所述获取模块进一步用于,如果是Wi-Fi环境,则获取所述加载的网页内的第一链接。
- 如权利要求11所述的装置,其特征在于,所述装置还包括判断执行模块,所述判断执行模块包括:发送单元,用于向服务器发送用户终端信息;结果接收单元,用于接收服务器根据所述用户终端信息对用户终端类型的判断结果;检测单元,用于如果判断结果为所述用户终端是移动终端,则检测所述用户终端的网络环境是否为Wi-Fi环境;提示单元,用于如果所述检测单元检测所述用户终端的网络环境不是Wi-Fi环境,向用户输出流量提示信息,提示用户下载所述加载的网页内的链接将消耗流量,并弹出选择窗口,供用户选择是否继续下载;相应地,所述获取模块进一步用于,如果用户选择继续下载,则获取所述加载的网页内的第一链接。
- 如权利要求11所述的装置,其特征在于,所述装置还包括判断执行模块,所述判断执行模块包括:发送单元,用于向服务器发送用户终端信息;结果接收单元,用于接收服务器根据所述用户终端信息对用户终端类型的判断结果;相应地,所述获取模块进一步用于,如果判断结果为所述用户终端不是移动终端,则获取所述加载的网页内的第一链接。
- 如权利要求11-18中任一项所述的装置,其特征在于,所述装置还包括监测模块,用于监测浏览器中的下载网页内链接的事件是否被触发。
- 如权利要求11-18中任一项所述的方法,所述保存模块用于将该虚拟打开的网页以及所述加载的网页保存至本地。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310492597.1 | 2013-10-18 | ||
CN201310492597.1A CN104572710B (zh) | 2013-10-18 | 2013-10-18 | 网页信息的处理方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015055125A1 true WO2015055125A1 (zh) | 2015-04-23 |
Family
ID=52827673
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2014/088694 WO2015055125A1 (zh) | 2013-10-18 | 2014-10-16 | 网页信息的处理方法及装置 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104572710B (zh) |
WO (1) | WO2015055125A1 (zh) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109376323A (zh) * | 2018-09-11 | 2019-02-22 | 平安科技(深圳)有限公司 | 应用运行方法、装置、计算机装置及存储介质 |
CN110909271A (zh) * | 2019-11-11 | 2020-03-24 | 青岛海信移动通信技术股份有限公司 | 一种通信终端、与通信终端互连的服务器及控制方法 |
CN114786053A (zh) * | 2022-03-31 | 2022-07-22 | 贝壳找房网(北京)信息技术有限公司 | 视频预加载方法、装置及电子设备 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055588A (zh) * | 2016-05-20 | 2016-10-26 | 青岛海信电器股份有限公司 | 离线资源处理方法及装置 |
CN107370829A (zh) * | 2017-08-31 | 2017-11-21 | 江西博瑞彤芸科技有限公司 | 一种数据加载方法 |
CN112231599B (zh) * | 2020-09-28 | 2024-03-08 | 深圳市世强元件网络有限公司 | 一种元器件电商平台中元器件型号收藏方法 |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075236A (zh) * | 2006-06-12 | 2007-11-21 | 腾讯科技(深圳)有限公司 | 一种加快浏览器网页显示的装置和方法 |
CN102737037A (zh) * | 2011-04-07 | 2012-10-17 | 北京搜狗科技发展有限公司 | 一种网页预读取的方法、装置及一种浏览器 |
CN102812452A (zh) * | 2010-09-07 | 2012-12-05 | Sk普兰尼特有限公司 | 用于显示缓存网页的***、服务器、终端、方法、以及记录该方法的计算机可读记录介质 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110078580A1 (en) * | 2009-09-30 | 2011-03-31 | Logicplant | Method and system for providing interface of web page |
CN102065108A (zh) * | 2009-11-17 | 2011-05-18 | ***通信集团广东有限公司 | 一种实现预下载的方法、无线通信终端及客户端浏览器 |
CN103338254B (zh) * | 2013-06-28 | 2015-05-27 | 腾讯科技(深圳)有限公司 | 跨终端的应用推送方法、装置、终端及*** |
-
2013
- 2013-10-18 CN CN201310492597.1A patent/CN104572710B/zh active Active
-
2014
- 2014-10-16 WO PCT/CN2014/088694 patent/WO2015055125A1/zh active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101075236A (zh) * | 2006-06-12 | 2007-11-21 | 腾讯科技(深圳)有限公司 | 一种加快浏览器网页显示的装置和方法 |
CN102812452A (zh) * | 2010-09-07 | 2012-12-05 | Sk普兰尼特有限公司 | 用于显示缓存网页的***、服务器、终端、方法、以及记录该方法的计算机可读记录介质 |
CN102737037A (zh) * | 2011-04-07 | 2012-10-17 | 北京搜狗科技发展有限公司 | 一种网页预读取的方法、装置及一种浏览器 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109376323A (zh) * | 2018-09-11 | 2019-02-22 | 平安科技(深圳)有限公司 | 应用运行方法、装置、计算机装置及存储介质 |
CN110909271A (zh) * | 2019-11-11 | 2020-03-24 | 青岛海信移动通信技术股份有限公司 | 一种通信终端、与通信终端互连的服务器及控制方法 |
CN114786053A (zh) * | 2022-03-31 | 2022-07-22 | 贝壳找房网(北京)信息技术有限公司 | 视频预加载方法、装置及电子设备 |
Also Published As
Publication number | Publication date |
---|---|
CN104572710A (zh) | 2015-04-29 |
CN104572710B (zh) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10643021B2 (en) | Method and device for processing web page content | |
US9843616B2 (en) | Method, apparatus and system for sharing webpage | |
WO2015055125A1 (zh) | 网页信息的处理方法及装置 | |
CN106708496B (zh) | 图形界面中标签页的处理方法和装置 | |
US20150020058A1 (en) | Method and System for Prompting Application Update | |
US20150082379A1 (en) | Page display method, apparatus and terminal | |
CN104123276B (zh) | 一种浏览器中弹窗的拦截方法、装置和*** | |
CN105975190B (zh) | 一种图形界面的处理方法、装置及*** | |
US10956653B2 (en) | Method and apparatus for displaying page and a computer storage medium | |
CN110020293B (zh) | 多媒体数据展示方法、装置及存储介质 | |
WO2017028692A1 (zh) | 一种视频播放器调用方法、装置及存储介质 | |
WO2014206143A1 (zh) | 未读消息数目显示方法、装置和设备 | |
WO2018107941A1 (zh) | 一种ar场景下的多屏联动方法和*** | |
CN111316618B (zh) | 一种网络页面保存方法及终端 | |
US20150128033A1 (en) | Method and apparatus for webpage browsing | |
WO2015010466A1 (zh) | 信息显示方法、装置和移动终端 | |
CN106156097B (zh) | 一种浏览器输入记录的处理方法及装置 | |
WO2015003636A1 (zh) | 一种页面元素的拦截方法和装置 | |
WO2015067142A1 (zh) | 网页显示方法及装置 | |
WO2014169669A1 (en) | Method and apparatus for processing reading history | |
US9582584B2 (en) | Method, apparatus and system for filtering data of web page | |
JP6915074B2 (ja) | メッセージ通知方法及び端末 | |
CN108182090B (zh) | 基于blink内核的Flash插件加载方法及装置 | |
WO2018209802A1 (zh) | 一种显示设备标识的方法、移动终端及终端设备 | |
WO2017005080A1 (zh) | 网页显示方法、终端设备及存储介质 |
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: 14853419 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: 14853419 Country of ref document: EP Kind code of ref document: A1 |