CN104268186A - Method and device for displaying webpages and mobile terminal - Google Patents

Method and device for displaying webpages and mobile terminal Download PDF

Info

Publication number
CN104268186A
CN104268186A CN201410473300.1A CN201410473300A CN104268186A CN 104268186 A CN104268186 A CN 104268186A CN 201410473300 A CN201410473300 A CN 201410473300A CN 104268186 A CN104268186 A CN 104268186A
Authority
CN
China
Prior art keywords
web page
content
current web
predefined type
webpage
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201410473300.1A
Other languages
Chinese (zh)
Inventor
李东辉
关翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Conew Network Technology Beijing Co Ltd
Original Assignee
Conew Network Technology Beijing Co Ltd
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 Conew Network Technology Beijing Co Ltd filed Critical Conew Network Technology Beijing Co Ltd
Priority to CN201410473300.1A priority Critical patent/CN104268186A/en
Publication of CN104268186A publication Critical patent/CN104268186A/en
Pending legal-status Critical Current

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
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

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

The invention provides a method and a device for displaying webpages and a mobile terminal. The method comprises the steps of receiving a trigger request of a user on a webpage reading mode identification, extracting the content of a predetermined type and the portal information of an associated webpage from the current webpage according to the trigger request, extracting the content of the predetermined type from the associated webpage according to the portal information and creating a new webpage, and injecting the extracted content of the predetermined type into the new webpage to display the new webpage. The method and the device for displaying the webpages and the mobile terminal have the advantages that the damage to the contents of the current webpage can be reduced, and compared with an existing method of displaying the extracted content on the current webpage, the processing course is simplified and the webpage displaying efficiency is improved.

Description

The exhibiting method of webpage, device and mobile terminal
Technical field
The present invention relates to mobile device technical field, particularly relate to a kind of exhibiting method of webpage, device and mobile terminal.
Background technology
Along with the development of mobile terminal and Internet technology, people use the access of the mobile terminal such as smart mobile phone, panel computer to carry out obtaining information more and more, wherein, by the various info webs that the browser browse network service provider in mobile terminal provides, become one of Internet user's Main Means obtaining the network information.
At present, user browses in the process of news web page or novel by the browser on mobile terminal, the content of news web page or novel shows usually on multiple page, user needs by clicking page up back and forth or lower one page checks relevant content, in order to reduce the operation of user's page turning back and forth, user can select reading model as required, and browser will be presented on current web page news or novel, and user is without the need to upper and lower page turning.Particularly, after user's selected use reading model, browser is according to general extracting rule, such as regular expression rule, extract the content in current web page, and obtain the entrance of associating web pages according to the lower one page mark in current web page, and from the associating web pages of correspondence, extract corresponding content, if there is lower one page mark in associating web pages, continue to extract the content in corresponding associating web pages, until extracted the content in last associating web pages.After extraction content, the content of current web page is removed or hides, and the content extracted is directly injected on current web page, current web page shows the content under reading model.
But because correlation technique needs first the content of current web page to be removed or hide, then the content extracted is injected current web page, complex operation, cause the destruction of current page content, Consumer's Experience is unsatisfactory simultaneously.
Summary of the invention
The present invention is intended to solve one of technical matters in correlation technique at least to a certain extent.For this reason, first object of the present invention is the exhibiting method proposing a kind of webpage, the method can reduce the destruction of the content to current web page by the content showing extraction in new web page, relative to the existing mode extracting content in current web page display, simplify processing procedure, what improve webpage represents efficiency, thus facilitates user to browse webpage, improves the Experience Degree that user browses webpage.
Second object of the present invention is the demonstration device proposing a kind of webpage.
3rd object of the present invention is to propose a kind of mobile terminal.
To achieve these goals, first aspect present invention embodiment proposes a kind of exhibiting method of webpage, comprising: receive user to the trigger request of web page browing pattern identification; From current web page, extract the content of predefined type and the access information of associating web pages according to trigger request, extract the content of predefined type according to access information from associating web pages, and create new web page; And the content of the predefined type extracted is injected new web page, to represent new web page.
Alternatively, before reception user is to the trigger request of web page browing pattern identification, also comprise: judge whether current web page supports reading model, if support reading model, then display web page reading model mark.
Alternatively, judge whether current web page supports reading model, comprising: the white list setting up web page address information, and judge whether current web page supports reading model according to white list.
Alternatively, judge whether current web page supports reading model, comprising according to white list: judge whether the web page address information that current web page is corresponding is included in white list, if be included in white list, then determine that current web page supports reading model.
Alternatively, from current web page, extract the content of predefined type according to trigger request, comprising: obtain the extracting rule mated with current web page; And utilize the extracting rule mated with current web page to extract the content of the predefined type of current web page.
Alternatively, utilizing after the extracting rule that mates with current web page extracts the content of current web page, also comprise: the content package of the predefined type extracted is become predetermined format.
Alternatively, predetermined format comprises JSON form.
Alternatively, the content of the predefined type extracted is injected new web page, comprising: the content of predetermined format is injected new web page.
The exhibiting method of the webpage of the embodiment of the present invention, receive user to the trigger request of web page browing pattern identification, and from current web page, extract the content of predefined type and the access information of associating web pages according to trigger request, the content of predefined type is extracted from associating web pages, and create new web page, and the content of the predefined type extracted is injected new web page.As can be seen here, the embodiment of the present invention is the content showing extraction in new web page, instead of directly in the content that current web page display is extracted, thus the destruction to current web page content can be reduced; Meanwhile, owing to showing the content of extraction in new web page, therefore do not need to remove the content of current web page or hide, because this simplify processing procedure, what improve webpage represents efficiency, thus facilitates user to browse webpage, improves the Experience Degree that user browses webpage.
To achieve these goals, second aspect present invention embodiment proposes a kind of demonstration device of webpage, comprising: receiver module, for receiving the trigger request of user to web page browing pattern identification; Processing module, for extracting the content of predefined type and the access information of associating web pages according to trigger request from current web page, extracting the content of predefined type, and creating new web page from associating web pages according to access information; And injection module, the content for the predefined type that will extract injects new web page, to represent new web page.
Alternatively, this device also comprises judgement display module, for before receiver module reception user is to the trigger request of web page browing pattern identification, judges whether current web page supports reading model, if support reading model, then and display web page reading model mark.
Alternatively, judge display module, specifically for: the white list setting up web page address information, and judge whether current web page supports reading model according to white list.
Alternatively, judge display module, specifically for: judge whether the web page address information that current web page is corresponding is included in white list, if be included in white list, then determine that current web page supports reading model.
Alternatively, processing module, specifically for: obtain the extracting rule mated with current web page; And
The extracting rule mated with current web page is utilized to extract the content of the predefined type of current web page.
Alternatively, this device also comprises: package module, for utilizing after the extracting rule mated with current web page extracts the content of current web page in processing module, the content package of the predefined type extracted is become predetermined format.
Alternatively, predetermined format comprises JSON form.
Alternatively, injection module, specifically for: the content of predetermined format is injected new web page.
The demonstration device of the webpage of the embodiment of the present invention, user is received to the trigger request of web page browing pattern identification by receiver module, processing module extracts the content of predefined type and the access information of associating web pages according to trigger request from current web page, the content of predefined type is extracted from associating web pages, and create new web page, and the content of the predefined type extracted is injected new web page by injection module.As can be seen here, the embodiment of the present invention is the content showing extraction in new web page, instead of directly in the content that current web page display is extracted, thus the destruction to current web page content can be reduced; Meanwhile, owing to showing the content of extraction in new web page, therefore do not need to remove the content of current web page or hide, because this simplify processing procedure, what improve webpage represents efficiency, thus facilitates user to browse webpage, improves the Experience Degree that user browses webpage.
To achieve these goals, third aspect present invention embodiment proposes a kind of mobile terminal, described mobile terminal comprises housing, processor, storer, circuit board and power circuit, wherein, described circuit board is placed in the interior volume that described housing surrounds, and described processor and described storer are arranged on described circuit board; Described power circuit, for powering for each circuit of described mobile terminal or device; Described storer is used for stores executable programs code; Described processor runs the program corresponding with executable program code by reading the executable program code stored in described storer, for execution following steps: receive user to the trigger request of web page browing pattern identification; From current web page, extract the content of predefined type and the access information of associating web pages according to trigger request, extract the content of predefined type according to access information from associating web pages, and create new web page; And the content of the predefined type extracted is injected new web page, to represent new web page.
The mobile terminal of the embodiment of the present invention, receive user to the trigger request of web page browing pattern identification, and from current web page, extract the content of predefined type and the access information of associating web pages according to trigger request, the content of predefined type is extracted from associating web pages, and create new web page, and the content of the predefined type extracted is injected new web page.As can be seen here, the embodiment of the present invention is the content showing extraction in new web page, instead of directly in the content that current web page display is extracted, thus the destruction to current web page content can be reduced; Meanwhile, owing to showing the content of extraction in new web page, therefore do not need to remove the content of current web page or hide, because this simplify processing procedure, what improve webpage represents efficiency, thus facilitates user to browse webpage, improves the Experience Degree that user browses webpage.
The aspect that the present invention adds and advantage will part provide in the following description, and part will become obvious from the following description, or be recognized by practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or additional aspect and advantage will become obvious and easy understand from the following description of the accompanying drawings of embodiments, wherein,
Fig. 1 is the process flow diagram of the exhibiting method of webpage according to an embodiment of the invention.
Fig. 2 is the structural representation of the demonstration device of webpage according to an embodiment of the invention.
Fig. 3 is the structural representation of the demonstration device of webpage in accordance with another embodiment of the present invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
In describing the invention, it is to be appreciated that term " first ", " second " etc. are only for describing object, and instruction or hint relative importance can not be interpreted as.In describing the invention, it should be noted that, unless otherwise clearly defined and limited, term " is connected ", " connection " should be interpreted broadly, such as, can be fixedly connected with, also can be removably connect, or connect integratedly; Can be mechanical connection, also can be electrical connection; Can be directly be connected, also indirectly can be connected by intermediary.For the ordinary skill in the art, concrete condition above-mentioned term concrete meaning in the present invention can be understood.In addition, in describing the invention, except as otherwise noted, the implication of " multiple " is two or more.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
Below with reference to the accompanying drawings the exhibiting method of the webpage according to the embodiment of the present invention, device and mobile terminal are described.
Fig. 1 is the process flow diagram of the exhibiting method of webpage according to an embodiment of the invention.
As shown in Figure 1, the exhibiting method of this webpage comprises:
S101, receives user to the trigger request of web page browing pattern identification.
In this embodiment, before execution S101, can also comprise: judge whether current web page supports reading model, if support reading model, then display web page reading model mark.Particularly, browse in the process of current web page user by the browser in mobile terminal, browser first can set up the white list of web page address information, and judges whether current web page supports reading model according to white list.
Specifically, web page address information such as URL(uniform resource locator) (the Uniform Resource Locator that current web page is corresponding can be judged, URL) whether be included in white list, if be included in white list, then determine that current web page supports reading model.Thus, judge whether current web page supports reading model by white list, can improve and judge whether webpage supports the efficiency of reading model.
In addition, the web page address information that current web page is corresponding if judge is URL(uniform resource locator) (Uniform Resource Locator such as, URL) be not included in white list, then illustrate that current web page does not support reading model, on current web page, display web page reading model does not identify.
Such as, current web page is Sina News, when user clicks Sina News website, by setting up white list in advance, browser judges whether Sina News supports reading model, namely judge whether address information (http://www.sina.com.cn/) corresponding to Sina News website is included in white list, if be included in white list, then determine that reading model is supported in Sina News website, and on the address field that Sina website is corresponding, eject a reading model mark.
S102, extracts the content of predefined type and the access information of associating web pages according to trigger request from current web page, extracts the content of predefined type, and create new web page according to access information from associating web pages.
Particularly, after reception user is to the trigger request of web page browing pattern identification, the extracting rule mated with current web page can be obtained, and utilize the extracting rule mated with current web page to extract the content of the predefined type of current web page.By the content using the extracting rule mated with current web page to extract the predefined type of current web page, the efficiency of the content extracting current web page can be improved.
In this embodiment, representing efficiency in order to what improve webpage, utilizing after the extracting rule mated with current web page extracts the content of current web page, the content package of the predefined type extracted can also be become predetermined format.Wherein, predetermined format can be JSON (JavaScript Object Notation) form or extended formatting, JSON form is a kind of data interchange format of lightweight, it adopts the text formatting being totally independent of language, have and be easy to read and write, also be easy to the feature that machine is resolved and generated, be a subset based on JavaScript (Standard ECMA-2623rd Edition-December 1999) simultaneously.
Such as, current web page is Sina News website, and the address field that Sina website is corresponding ejects a reading model mark, if user clicks reading model mark, then browser receives the trigger request of user, and the extracting rule such as regular expression matched with Sina News website is obtained according to trigger request, and the content of the word in Sina website is extracted by regular expression, and judge in Sina website, whether to there is lower one page mark, if there is lower one page mark, then extract the content of the predefined type such as word in associating web pages, if also there is lower one page mark in associating web pages, then continue the content of the word extracted in associating web pages, until by complete for the contents extraction of the word of all associating web pages, and be JSON form by the content package extracted.During owing to proposing the content of Sina website, only extract the content of predefined type such as word, therefore, by this kind of extracting mode, information such as advertisement irrelevant with word in Sina website can be removed.
Again such as, current web page is novel website, and the address field of novel website ejects a reading model mark, if user clicks reading model mark, browser receives the trigger request of user, and the extracting rule such as regular expression matched with novel website is obtained according to trigger request process novel website, and the content of the word in novel website is extracted by regular expression, and judge in novel website, whether to there is lower one page mark, if there is lower one page mark, then extract the content of the novel website such as word in associating web pages, if also there is lower one page mark in associating web pages, then continue the content of the word extracted in associating web pages, until by complete for the contents extraction of the word of all associating web pages, by extracting the content of predefined type such as word, information such as advertisement irrelevant with word in novel website can be removed, improve the Consumer's Experience that user reads novel.
Extract the content of predefined type in the content extracting predefined type from current web page and associating web pages while, a new webpage can also be generated, to facilitate the content extracted subsequently through new web page display, the content extracted is represented by new web page, show compared with the content that extracts on current web page with existing, the destruction of the content to current web page can be reduced.
S103, injects new web page, to represent new web page by the content of the predefined type extracted.
Particularly, can the content of packaged predetermined format such as JSON form be injected in new web page, in new web page, show the content of current web page under reading model to complete.User during reading content, without the need to page turning, decreases the page turn over operation in user's reading process in new web page; In addition, owing to being injected into the content only comprising predefined type such as word in the predetermined format in new web page, thus, the impact that the information that has nothing to do with predefined type such as word is read user can be reduced, improve the Consumer's Experience browsing webpage.
Such as, current web page is Sina News, be JSON form by regular expression by the content package in Sina News website, and after establishment new web page, the data of JSON form that can be corresponding by packaged Sina website are injected in new web page, JSON form is easy to resolve, and is conducive to improving new web page and loads and show the efficiency of the content extracted.Now, user can read the content in Sina website in new web page, and in the process that user reads, if user needs to check the webpage under current web page and non-reading model, user passes through switching webpage simply can realize the switching between reading model webpage and non-reading model webpage, thus, avoid the destruction to current web page content, relative to the existing mode extracting content in current web page display, simplify processing procedure, what improve webpage represents efficiency, thus facilitates user to browse webpage.
The exhibiting method embodiment of above-mentioned webpage, receive user to the trigger request of web page browing pattern identification, and from current web page, extract the content of predefined type and the access information of associating web pages according to trigger request, the content of predefined type is extracted from associating web pages, and create new web page, and the content of the predefined type extracted is injected new web page.As can be seen here, the embodiment of the present invention is the content showing extraction in new web page, instead of directly in the content that current web page display is extracted, thus the destruction to current web page content can be reduced; Meanwhile, owing to showing the content of extraction in new web page, therefore do not need to remove the content of current web page or hide, because this simplify processing procedure, what improve webpage represents efficiency, thus facilitates user to browse webpage, improves the Experience Degree that user browses webpage.
In order to realize above-described embodiment, the present invention also proposes a kind of demonstration device of webpage.
Fig. 2 is the structural representation of the demonstration device of webpage according to an embodiment of the invention.As shown in Figure 2, the demonstration device of this webpage comprises receiver module 100, processing module 200 and injection module 300, wherein:
Receiver module 100 is for receiving the trigger request of user to web page browing pattern identification; Processing module 200, for extracting the content of predefined type and the access information of associating web pages according to above-mentioned trigger request from current web page, is extracted the content of above-mentioned predefined type, and is created new web page from above-mentioned associating web pages according to above-mentioned access information; And injection module 300 is for injecting above-mentioned new web page by the content of the above-mentioned predefined type extracted, to represent above-mentioned new web page.
Above-mentioned processing module 300 specifically for: obtain the extracting rule that mates with above-mentioned current web page; And utilize the extracting rule mated with above-mentioned current web page to extract the content of the predefined type of above-mentioned current web page.Wherein, predefined type can include but are not limited to word, particularly, assuming that current web page is news website, processing module 200 obtains the extracting rule such as regular expression matched with unrestrained news website according to the trigger request of user, and the content of the word in Sina website is extracted by regular expression, and judge in Sina website, whether to there is lower one page mark, if there is lower one page mark, then extract the content of the predefined type such as word in associating web pages, if also there is lower one page mark in associating web pages, then continue the content of the word extracted in associating web pages, until by complete for the contents extraction of the word of all associating web pages, and be JSON form by the content package extracted.During owing to proposing the content of Sina website, only extract the content of predefined type such as word, therefore, by this kind of extracting mode, information such as advertisement irrelevant with word in Sina website can be removed.
In addition, as shown in Figure 3, said apparatus can also comprise and judges display module 400, this judgement display module 400 for receive at above-mentioned receiver module 100 user to the trigger request of web page browing pattern identification before, judge whether current web page supports reading model, if support reading model, then show above-mentioned web page browing pattern identification.Particularly, above-mentioned judgement display module 400 first can set up the white list of web page address information, and judges whether current web page supports reading model according to above-mentioned white list.
Specifically, judge whether the web page address information that display module 400 can judge that above-mentioned current web page is corresponding is included in above-mentioned white list, if be included in above-mentioned white list, then determine that above-mentioned current web page supports reading model.Assuming that current web page is Sina News, judge address information such as URL(uniform resource locator) (the Uniform Resource Locator that display module 400 can judge that news website is corresponding, URL) whether be included in white list, if be included in white list, then determine that current web page supports reading model, and on the address field that news website is corresponding, show reading model mark.
Said apparatus can also comprise package module 500, the content package of the predefined type extracted, for utilizing after the extracting rule mated with above-mentioned current web page extracts the content of above-mentioned current web page in above-mentioned processing module 200, is become predetermined format by this package module 500.Wherein, predetermined format can be JSON form, the form that also can be easy to parsing for other and generate.By the content package of the predefined type extracted being become predetermined format such as JSON form, the efficiency of follow-up new web page resolution data can be improved, and then the efficiency of new web page displaying contents can be improved.
After the content package of the predetermined format extracted is predetermined format by package module 500, the content of above-mentioned predetermined format can be injected above-mentioned new web page by above-mentioned injection module 300, shows the content of current web page under reading model to complete in new web page.
Comprise receiver module 100, processing module 200, injection module 300, judge that the demonstration device of the webpage of display module 400 and package module 500 carries out the process that webpage represents and see Fig. 1, can not repeat herein.
The demonstration device embodiment of above-mentioned webpage, user is received to the trigger request of web page browing pattern identification by receiver module, processing module extracts the content of predefined type and the access information of associating web pages according to trigger request from current web page, the content of predefined type is extracted from associating web pages, and create new web page, and the content of the predefined type extracted is injected new web page by injection module.As can be seen here, the embodiment of the present invention is the content showing extraction in new web page, instead of directly in the content that current web page display is extracted, thus the destruction to current web page content can be reduced; Meanwhile, owing to showing the content of extraction in new web page, therefore do not need to remove the content of current web page or hide, because this simplify processing procedure, what improve webpage represents efficiency, thus facilitates user to browse webpage, improves the Experience Degree that user browses webpage.
In order to realize above-described embodiment, the present invention also proposes a kind of mobile terminal, this mobile terminal comprises housing, processor, storer, circuit board and power circuit, wherein, foregoing circuit plate is placed in the interior volume that above-mentioned housing surrounds, and above-mentioned processor and above-mentioned storer are arranged on foregoing circuit plate; Above-mentioned power circuit, for powering for each circuit of above-mentioned mobile terminal or device; Above-mentioned storer is used for stores executable programs code; Above-mentioned processor runs the program corresponding with above-mentioned executable program code by reading the executable program code stored in above-mentioned storer, for execution following steps:
S101 ', receives user to the trigger request of web page browing pattern identification.
In this embodiment, before execution S101 ', can also comprise: judge whether current web page supports reading model, if support reading model, then display web page reading model mark.Particularly, browse in the process of current web page user by the browser in mobile terminal, first can set up the white list of web page address information, and judge whether current web page supports reading model according to white list.
Specifically, web page address information such as URL(uniform resource locator) (the UniformResource Locator that current web page is corresponding can be judged, URL) whether be included in white list, if be included in white list, then determine that current web page supports reading model.Thus, judge whether current web page supports reading model by white list, can improve and judge whether webpage supports the efficiency of reading model.
In addition, the web page address information that current web page is corresponding if judge is URL(uniform resource locator) (Uniform Resource Locator such as, URL) be not included in white list, then illustrate that current web page does not support reading model, on current web page, display web page reading model does not identify.
Such as, current web page is Sina News, when user clicks Sina News website, can judge whether Sina News supports reading model by setting up white list in advance, namely judge whether address information (http://www.sina.com.cn/) corresponding to Sina News website is included in white list, if be included in white list, then determine that reading model is supported in Sina News website, and on the address field that Sina website is corresponding, eject a reading model mark.
S102 ', extracts the content of predefined type and the access information of associating web pages according to trigger request from current web page, extracts the content of predefined type, and create new web page according to access information from associating web pages.
Particularly, after reception user is to the trigger request of web page browing pattern identification, the extracting rule mated with current web page can be obtained, and utilize the extracting rule mated with current web page to extract the content of the predefined type of current web page.By the content using the extracting rule mated with current web page to extract the predefined type of current web page, the efficiency of the content extracting current web page can be improved.
In this embodiment, representing efficiency in order to what improve webpage, utilizing after the extracting rule mated with current web page extracts the content of current web page, the content package of the predefined type extracted can also be become predetermined format.Wherein, predetermined format can be JSON (JavaScript Object Notation) form or extended formatting, JSON form is a kind of data interchange format of lightweight, it adopts the text formatting being totally independent of language, have and be easy to read and write, also be easy to the feature that machine is resolved and generated, be a subset based on JavaScript (Standard ECMA-2623rd Edition-December 1999) simultaneously.
Such as, current web page is Sina News website, and the address field that Sina website is corresponding ejects a reading model mark, if user clicks reading model mark, then receive the trigger request of user, and the extracting rule such as regular expression matched with Sina News website is obtained according to trigger request, and the content of the word in Sina website is extracted by regular expression, and judge in Sina website, whether to there is lower one page mark, if there is lower one page mark, then extract the content of the predefined type such as word in associating web pages, if also there is lower one page mark in associating web pages, then continue the content of the word extracted in associating web pages, until by complete for the contents extraction of the word of all associating web pages, and be JSON form by the content package extracted.During owing to proposing the content of Sina website, only extract the content of predefined type such as word, therefore, by this kind of extracting mode, information such as advertisement irrelevant with word in Sina website can be removed.
Again such as, current web page is novel website, and the address field of novel website ejects a reading model mark, if user clicks reading model mark, receive the trigger request of user, and the extracting rule such as regular expression matched with novel website is obtained according to trigger request process novel website, and the content of the word in novel website is extracted by regular expression, and judge in novel website, whether to there is lower one page mark, if there is lower one page mark, then extract the content of the novel website such as word in associating web pages, if also there is lower one page mark in associating web pages, then continue the content of the word extracted in associating web pages, until by complete for the contents extraction of the word of all associating web pages, by extracting the content of predefined type such as word, information such as advertisement irrelevant with word in novel website can be removed, improve the Consumer's Experience that user reads novel.
Extract the content of predefined type in the content extracting predefined type from current web page and associating web pages while, a new webpage can also be generated, to facilitate the content extracted subsequently through new web page display, the content extracted is represented by new web page, show compared with the content that extracts on current web page with existing, the destruction of the content to current web page can be reduced.
S103 ', injects new web page, to represent new web page by the content of the predefined type extracted.
Particularly, can the content of packaged predetermined format such as JSON form be injected in new web page, in new web page, show the content of current web page under reading model to complete.User during reading content, without the need to page turning, decreases the page turn over operation in user's reading process in new web page; In addition, owing to being injected into the content only comprising predefined type such as word in the predetermined format in new web page, thus, the impact that the information that has nothing to do with predefined type such as word is read user can be reduced, improve the Consumer's Experience browsing webpage.
Such as, current web page is Sina News, be JSON form by regular expression by the content package in Sina News website, and after establishment new web page, the data of JSON form that can be corresponding by packaged Sina website are injected in new web page, JSON form is easy to resolve, and is conducive to improving new web page and loads and show the efficiency of the content extracted.Now, user can read the content in Sina website in new web page, and in the process that user reads, if user needs to check the webpage under current web page and non-reading model, user passes through switching webpage simply can realize the switching between reading model webpage and non-reading model webpage, thus, avoid the destruction to current web page content, relative to the existing mode extracting content in current web page display, simplify processing procedure, what improve webpage represents efficiency, thus facilitates user to browse webpage.
Above-mentioned mobile terminal embodiment, receive user to the trigger request of web page browing pattern identification, and from current web page, extract the content of predefined type and the access information of associating web pages according to trigger request, the content of predefined type is extracted from associating web pages, and create new web page, and the content of the predefined type extracted is injected new web page.As can be seen here, the embodiment of the present invention is the content showing extraction in new web page, instead of directly in the content that current web page display is extracted, thus the destruction to current web page content can be reduced; Meanwhile, owing to showing the content of extraction in new web page, therefore do not need to remove the content of current web page or hide, because this simplify processing procedure, what improve webpage represents efficiency, thus facilitates user to browse webpage, improves the Experience Degree that user browses webpage.
In the description of this instructions, specific features, structure, material or feature that the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means to describe in conjunction with this embodiment or example are contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not must for be identical embodiment or example.And the specific features of description, structure, material or feature can combine in one or more embodiment in office or example in an appropriate manner.In addition, when not conflicting, the feature of the different embodiment described in this instructions or example and different embodiment or example can carry out combining and combining by those skilled in the art.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in process flow diagram or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this instructions, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), ROM (read-only memory) (ROM), erasablely edit ROM (read-only memory) (EPROM or flash memory), fiber device, and portable optic disk ROM (read-only memory) (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanning to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer memory.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the special IC of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (17)

1. an exhibiting method for webpage, is characterized in that, comprising:
Receive user to the trigger request of web page browing pattern identification;
From current web page, extract the content of predefined type and the access information of associating web pages according to described trigger request, extract the content of described predefined type according to described access information from described associating web pages, and create new web page; And
The content of the described predefined type extracted is injected described new web page, to represent described new web page.
2. method according to claim 1, is characterized in that, before described reception user is to the trigger request of web page browing pattern identification, also comprises:
Judge whether current web page supports reading model, if support reading model, then show described web page browing pattern identification.
3. method according to claim 2, is characterized in that, describedly judges whether current web page supports reading model, comprising:
Set up the white list of web page address information, and judge whether current web page supports reading model according to described white list.
4. method according to claim 3, is characterized in that, describedly judges whether current web page supports reading model, comprising according to described white list:
Judge whether the web page address information that described current web page is corresponding is included in described white list, if be included in described white list, then determine that described current web page supports reading model.
5. method according to claim 1, is characterized in that, the described content extracting predefined type according to described trigger request from current web page, comprising:
Obtain the extracting rule mated with described current web page; And
The extracting rule mated with described current web page is utilized to extract the content of the predefined type of described current web page.
6. method according to claim 5, is characterized in that, the extracting rule mated with described current web page in described utilization also comprises after extracting the content of described current web page:
The content package of the predefined type extracted is become predetermined format.
7. method according to claim 6, is characterized in that, described predetermined format comprises JSON form.
8. method according to claim 7, is characterized in that, the described content by the described predefined type extracted injects described new web page, comprising:
The content of described predetermined format is injected described new web page.
9. a demonstration device for webpage, is characterized in that, comprising:
Receiver module, for receiving the trigger request of user to web page browing pattern identification;
Processing module, for extracting the content of predefined type and the access information of associating web pages according to described trigger request from current web page, extracting the content of described predefined type, and creating new web page from described associating web pages according to described access information; And
Injection module, for the content of the described predefined type extracted is injected described new web page, to represent described new web page.
10. device according to claim 9, is characterized in that, also comprises:
Judge display module, for before described receiver module reception user is to the trigger request of web page browing pattern identification, judges whether current web page supports reading model, if support reading model, then show described web page browing pattern identification.
11. devices according to claim 10, is characterized in that, described judgement display module, specifically for:
Set up the white list of web page address information, and judge whether current web page supports reading model according to described white list.
12. devices according to claim 11, is characterized in that, described judgement display module, specifically for:
Judge whether the web page address information that described current web page is corresponding is included in described white list, if be included in described white list, then determine that described current web page supports reading model.
13. devices according to claim 9, is characterized in that, described processing module, specifically for:
Obtain the extracting rule mated with described current web page; And
The extracting rule mated with described current web page is utilized to extract the content of the predefined type of described current web page.
14. devices according to claim 13, is characterized in that, also comprise:
Package module, for utilizing after the extracting rule mated with described current web page extracts the content of described current web page in described processing module, becomes predetermined format by the content package of the predefined type extracted.
15. devices according to claim 14, is characterized in that, described predetermined format comprises JSON form.
16. devices according to claim 15, is characterized in that, described injection module, specifically for:
The content of described predetermined format is injected described new web page.
17. 1 kinds of mobile terminals, described mobile terminal comprises housing, processor, storer, circuit board and power circuit, and wherein, described circuit board is placed in the interior volume that described housing surrounds, and described processor and described storer are arranged on described circuit board; Described power circuit, for powering for each circuit of described mobile terminal or device; Described storer is used for stores executable programs code; Described processor runs the program corresponding with described executable program code by reading the executable program code stored in described storer, for execution following steps:
Receive user to the trigger request of web page browing pattern identification;
From current web page, extract the content of predefined type and the access information of associating web pages according to described trigger request, extract the content of described predefined type according to described access information from described associating web pages, and create new web page; And
The content of the described predefined type extracted is injected described new web page, to represent described new web page.
CN201410473300.1A 2014-09-16 2014-09-16 Method and device for displaying webpages and mobile terminal Pending CN104268186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410473300.1A CN104268186A (en) 2014-09-16 2014-09-16 Method and device for displaying webpages and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410473300.1A CN104268186A (en) 2014-09-16 2014-09-16 Method and device for displaying webpages and mobile terminal

Publications (1)

Publication Number Publication Date
CN104268186A true CN104268186A (en) 2015-01-07

Family

ID=52159708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410473300.1A Pending CN104268186A (en) 2014-09-16 2014-09-16 Method and device for displaying webpages and mobile terminal

Country Status (1)

Country Link
CN (1) CN104268186A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666249A (en) * 2020-05-11 2020-09-15 上海连尚网络科技有限公司 Method and equipment for acquiring target reading mode in reading application

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222086A (en) * 2011-05-18 2011-10-19 广州市动景计算机科技有限公司 Webpage viewing method and webpage viewing device based on mobile terminal as well as mobile terminal
CN102841900A (en) * 2011-06-23 2012-12-26 腾讯科技(深圳)有限公司 Page processing method and device
CN102955800A (en) * 2011-08-25 2013-03-06 腾讯科技(深圳)有限公司 Method, system and terminal for website access
CN103514203A (en) * 2012-06-27 2014-01-15 腾讯科技(深圳)有限公司 Method and system for browsing webpage in reading mode
CN103577466A (en) * 2012-08-03 2014-02-12 腾讯科技(深圳)有限公司 Method and device for displaying webpage content in browser
US20140082484A1 (en) * 2012-09-20 2014-03-20 Tencent Technology (Shenzhen) Company Limited Method and apparatus for obtaining information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102222086A (en) * 2011-05-18 2011-10-19 广州市动景计算机科技有限公司 Webpage viewing method and webpage viewing device based on mobile terminal as well as mobile terminal
CN102841900A (en) * 2011-06-23 2012-12-26 腾讯科技(深圳)有限公司 Page processing method and device
CN102955800A (en) * 2011-08-25 2013-03-06 腾讯科技(深圳)有限公司 Method, system and terminal for website access
CN103514203A (en) * 2012-06-27 2014-01-15 腾讯科技(深圳)有限公司 Method and system for browsing webpage in reading mode
CN103577466A (en) * 2012-08-03 2014-02-12 腾讯科技(深圳)有限公司 Method and device for displaying webpage content in browser
US20140082484A1 (en) * 2012-09-20 2014-03-20 Tencent Technology (Shenzhen) Company Limited Method and apparatus for obtaining information

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111666249A (en) * 2020-05-11 2020-09-15 上海连尚网络科技有限公司 Method and equipment for acquiring target reading mode in reading application
CN111666249B (en) * 2020-05-11 2024-02-09 上海连尚网络科技有限公司 Method and device for acquiring target reading mode in reading application

Similar Documents

Publication Publication Date Title
CN104461484B (en) The implementation method and device of front-end template
WO2018223717A1 (en) Webpage front-end testing method, device, system, apparatus and readable storage medium
US9471714B2 (en) Method for increasing the security level of a user device that is searching and browsing web pages on the internet
CN102591971B (en) Method and device for extracting webpage information
RU2604326C2 (en) Webpage browsing method, webapp framework, method and device for executing javascript and mobile terminal
CN101782913A (en) Update notifying method and browser
CN103714115A (en) Method and device for loading web page content
CN104035753A (en) Double-WebView customized page display method and system
CN103729285A (en) Method, device and system for testing web page
CN105450586A (en) Information pushing method and system, server and client
CN104462131A (en) Method and device for processing information issuing page
CN104866512A (en) Method, device and system for extracting webpage content
CN102385594A (en) Method and device for controlling inner cores of multi-core browser
CN103546505A (en) Method, system and device for displaying page blocks in priority order
CN104239298A (en) Text message recommendation method, server, browser and system
CN108334508B (en) Webpage information extraction method and device
CN102982129A (en) Method and system and device for labeling and reminding content in webpage
CN104133884A (en) Webpage displaying method and device
CN104063401A (en) Webpage style address merging method and device
CN106547511A (en) A kind of voice broadcasts method, browser client and the server of reading web page information
CN105808587A (en) Method and system for embedding information into webpage and gateway device
CN105138568A (en) Method and apparatus for presenting search results and search engine
CN105205072A (en) Webpage information display method and system
CN103544150A (en) Method and system for providing recommendation information for mobile terminal browser
CN104899203B (en) Webpage generation method and device and terminal equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150107