WO2018040807A1 - Method and device for browsing front-end auxiliary converted data - Google Patents

Method and device for browsing front-end auxiliary converted data Download PDF

Info

Publication number
WO2018040807A1
WO2018040807A1 PCT/CN2017/094499 CN2017094499W WO2018040807A1 WO 2018040807 A1 WO2018040807 A1 WO 2018040807A1 CN 2017094499 W CN2017094499 W CN 2017094499W WO 2018040807 A1 WO2018040807 A1 WO 2018040807A1
Authority
WO
WIPO (PCT)
Prior art keywords
transcoding
link
text
comment
target page
Prior art date
Application number
PCT/CN2017/094499
Other languages
French (fr)
Chinese (zh)
Inventor
张研
Original Assignee
北京奇虎科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京奇虎科技有限公司 filed Critical 北京奇虎科技有限公司
Publication of WO2018040807A1 publication Critical patent/WO2018040807A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • 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
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • 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
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Definitions

  • the present invention relates to the technical field of electronic browsing, and more particularly to a method and apparatus for browsing a front-end assisted transcoding.
  • China's mobile reading users have a certain scale. According to CNNIC statistics, in 2013, China's mobile phone reading users reached 370 million, an increase of 25.3% over the previous year. iResearch believes that with the acceleration of network infrastructure construction, mobile phone readers will maintain steady and rapid growth. It is estimated that by 2017, China Mobile's reading users will reach 620 million.
  • the mobile end is different from the PC end, the display interface of the mobile end is small, the network speed of the mobile network is limited, and the processor of the mobile end cannot be compared with the CPU of the computer, which puts more stringent "precision" on the mobile application. Convenient" requirements.
  • crawler technology is one of the important means of information acquisition.
  • the website content crawler containing the preset keywords is downloaded to the local server, and then the server transcodes, and finally the transcoded purified content is sent to the client application. Show on.
  • the client's novel APP by searching for keywords, the related content that has been transcoded is downloaded from the local server, and the related content is displayed in the search result.
  • the client application can only download the website content pre-stored by the local server from the local server. This will lead to many problems. On the one hand, the access to resources is very simple, and the information obtained by users is not comprehensive enough. On the other hand, if the local server stops or stops updating, the corresponding client application cannot update the reading. Also, the reading content stored by the local server is slow to update, and the user needs to obtain the latest content in real time. These factors have hindered the further popularization of mobile reading technology to a certain extent.
  • the present invention proposes a browsing method and apparatus for front-end assisted transcoding.
  • a method for browsing a front-end assisted transcoding is provided in the embodiment of the present invention, including:
  • transcoding rule includes at least determining a coded label of the text paragraph, the author information, and the original text link from the target page;
  • an embodiment of the present invention provides a browsing device for front-end assisted transcoding, including:
  • a page search unit configured to search for a target page from the mobile internet according to a preset keyword
  • a rule query unit configured to query a transcoding rule of the target page, where the transcoding rule includes at least a coded label for determining a text paragraph, an author information, and a text link from the target page;
  • a content downloading unit configured to download a text paragraph, author information, and a text link from the target page according to the encoded label in the transcoding rule
  • a content display unit for displaying downloaded content.
  • an embodiment of the present invention provides a computer program, including computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform a browsing method according to the front end assisted transcoding described above. .
  • embodiments of the present invention provide a computer readable medium storing a computer program as described above.
  • the solution provided by the present invention searches for a target page from the mobile Internet according to a preset keyword, and is no longer limited to obtaining website content from a local server, thereby saving maintenance costs and storage space for the local server.
  • the local server only analyzes and stores the transcoding rule of the webpage.
  • the client application queries the local server for the transcoding rule of the target page, and the transcoding rule at least includes determining from the target page.
  • the coded label for the text paragraph, the author information, and the original link The client application then downloads the text paragraph, the author information, and the original text link from the target page according to the encoded label in the transcoding rule, and displays the downloaded content.
  • the solution of the present invention can expand the access method of the reading content, and the reading content is updated and time-sensitive, and is not limited to the local server.
  • the local server mining transcoding rules can assist the client application to quickly obtain reading content without The entire target page is downloaded to the client, and the client application does not need to analyze and mine the webpage components of the target webpage, thereby ensuring the speed and stability of the application.
  • the transcoding rules are simple, the client application can also mine itself.
  • the scheme can adaptively adjust the font, line spacing, and paging according to the interface size of the client to generate a transcoded page for reading.
  • FIG. 1 is a flowchart of a method for browsing a front-end assisted transcoding according to the present invention
  • FIG. 2 is a schematic diagram of a target page searched from the mobile Internet according to the present invention.
  • 3-1 is a schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention
  • 3-2 is a second schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention.
  • FIG. 4 is still another schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention.
  • FIG. 5 is a flowchart of an embodiment of a method for browsing a front-end assisted transcoding according to the present invention
  • FIG. 6 is a schematic diagram of a front end auxiliary transcoding browsing device according to the present invention.
  • FIG. 7 is a schematic diagram of an embodiment of a front end auxiliary transcoding browsing device according to the present invention.
  • Figure 8 shows schematically a block diagram of a computing device for performing the method according to the invention
  • Fig. 9 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • FIG. 1 is a flowchart of a method for browsing a front-end assisted transcoding according to the present invention, including:
  • S101 Search for a target page from a mobile Internet according to a preset keyword
  • S102 Query a transcoding rule of the target page, where the transcoding rule includes at least a coded label that determines a text paragraph, an author information, and a text link from the target page;
  • S103 Download a text paragraph, an author information, and a text link from the target page according to the coded label in the transcoding rule;
  • FIG. 2 is a schematic diagram of a target page searched from the mobile Internet according to the present invention.
  • the solution of the present invention will be further described below with reference to Figs.
  • the webpage needs to be transcoded from
  • the format suitable for the display of the computer screen is converted into a format suitable for the screen display of the mobile phone, so that the mobile user's reading is read, and the mobile phone webpage after the transcoding is called a transcoding page.
  • the client application searches for the target page from the mobile Internet according to the preset keyword.
  • the novel APP can search for "horror novels" / "modern” through the mobile Internet search according to the preset keyword "horror novel” / "modern novel” and the like.
  • the news app can search for a target page based on the preset keyword “Finance” / "Entertainment”. Or, further, the target page is searched for based on the novel name or the news title. In this way, it is no longer limited to obtaining website content from a local server, which saves maintenance costs and storage space for the local server.
  • the local server has powerful processing capabilities relative to the client.
  • the client application queries the local server for the transcoding rules of the target page, and the local server obtains the target page for analysis and mining.
  • Transcoding rules of the target page, the transcoding rules at least including encoding tags for determining text paragraphs, author information, and original text links from the target page.
  • the local server feeds the above encoded tag as a query result to the client application.
  • the client application then downloads the text paragraph, the author information, and the original text link from the target page according to the encoded label in the transcoding rule, and displays the downloaded content.
  • the encoding tags of the text paragraph include ⁇ p>... ⁇ /p>, ⁇ body>... ⁇ /body>, etc.
  • the encoding tag of the original link includes ⁇ a>... ⁇ /a> and so on.
  • the solution of the present invention does not need to identify all the tags of all webpage editing languages, because the application of the client does not necessarily support the reality of all the tags, and the more tags are loaded, the slower the display speed of the webpages.
  • the transcoding rule of the solution of the present invention includes at least a text paragraph, an author information, and a coded label of the original link in response to the need of copyright protection. Regardless of the webpage editing language used by the webpage, the above text paragraphs, author information and original text links are obviously necessary.
  • the client application only searches from the two websites.
  • the transcoding rules can be further simplified. The client application does not need to query the local server, but only needs to query the transcoding rules stored in the client database to further speed up the display.
  • the solution of the present invention can expand the access method of the reading content, and the reading content is updated and time-sensitive, and is not limited to the local server.
  • the transcoding rule of the local server mining can assist the client application to quickly obtain the reading content, without downloading the entire target page to the client, and the client application does not need to analyze and mine the webpage component of the target webpage to ensure that the webpage component of the target webpage is analyzed and mined. The speed and stability of the application.
  • the transcoding rules are simple, the client application can also mine itself.
  • the scheme can adaptively adjust the font, line spacing, and paging according to the interface size of the client to generate a transcoded page for reading.
  • FIG. 3-1 is a schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention.
  • FIG. 3-2 is a second schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention.
  • FIG. 3-1 and FIG. 3-2 are transcoded pages suitable for mobile phone display after transcoding the news of FIG. 2.
  • the following embodiments take the news subject as an example and expand the description.
  • the inventive solution can also be used for the novel theme, or other transliteration reading of the textual subject matter.
  • the transcoding rule further includes determining from the page The encoding label of the image, the step of downloading the text paragraph, the author information and the original text link from the target page according to the encoding label in the transcoding rule, further includes:
  • the picture is downloaded from the target page according to the coded label of the picture in the transcoding rule.
  • A3 is a picture of the target page. Obviously, if the big picture is loaded on the client's application, it will consume more traffic resources and wait longer.
  • the decision is left to the user to set, and according to the preset setting of the user, it is determined whether the picture of the target page needs to be displayed.
  • the picture includes a still picture, a moving picture, and the like.
  • the client application downloads the picture from the target page according to the encoded tag of the picture in the transcoding rule.
  • the judgment is no, the picture shown is not loaded.
  • the transcoding rule further includes determining an encoded label of the hyperlink from the page, and downloading a text paragraph, the author from the target page according to the encoded label in the transcoding rule.
  • the steps of linking the information and the original text also include:
  • the hyperlink is downloaded from the target page according to the encoded tag of the picture in the transcoding rule.
  • A5 is a hyperlink. After conversion according to the transcoding rules, place it in the “Related Recommendations” section of the B5 navigation bar as shown in Figure 3-2. This part also respects the user's needs and loads according to the user's preset settings to improve the user experience.
  • FIG. 4 is still another schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention.
  • the transcoding rule further includes determining, from the page, an encoding label of the plug-in link, and downloading the text paragraph, the author from the target page according to the encoding label in the transcoding rule.
  • the steps of linking the information and the original text also include:
  • the plug-in link is downloaded from the target page according to the encoded tag of the picture in the transcoding rule, and the plug-in link includes one of a voice link, a video link, and an application link.
  • B41 is a video plugin and B42 is an application plugin.
  • B42 is an application plugin.
  • B41 is a video plugin and B42 is an application plugin.
  • FIG. 5 is a flowchart of an embodiment of a method for browsing a front-end assisted transcoding according to the present invention. Compared with FIG. 1, the embodiment of FIG. 5 further includes a function of searching according to an input keyword of a user, re-formatting a client according to an interface layout, and adding a comment bar.
  • S201 Receive a preset keyword input by a user
  • S202 Search for a target page from a mobile Internet according to a preset keyword
  • S203 Query a transcoding rule of the target page, where the transcoding rule includes at least a coding label for determining a text paragraph, an author information, and a text link from the target page;
  • S204 Download a text paragraph, an author information, and a text link from the target page according to the coded label in the transcoding rule;
  • S205 Typesetting the downloaded content according to a local interface layout, where the interface layout includes at least a text window for placing the text paragraph, a title bar for placing the author information, and the original text for placing the original text. Link to the landing page of the link;
  • step S206 the process proceeds to step S207 or step S208 or step S209;
  • S207 Receive a trigger instruction of the user clicking the form button on the comment bar, and send the trigger instruction of the form button and the associated comment object to the cloud server;
  • S208 Receive text information input by the user in the form text box on the comment bar, and send the text information of the form text box and the associated comment object to the cloud server;
  • step S209 the process proceeds to step S210 or step S211;
  • the downloaded content is typeset according to a local interface layout, wherein the interface layout includes at least a text window B11 for placing the text paragraph A11, a title bar B12 for placing the author information A12, and a placement window.
  • the target web link B13 of the original link A13 is described.
  • the interface layout further includes a picture for placing the picture column.
  • the interface layout further includes a plug-in window for placing the plug-in link, wherein the plug-in link includes one of a sound link, a video link, and an application link.
  • the plug-in link includes one of a sound link, a video link, and an application link.
  • B41 Video Plugin Window
  • B42 Application Plugin Window.
  • the interface layout further includes a navigation bar B5 for placing the hyperlink.
  • the invention can search by default keywords, for example, according to the "entertainment" theme to obtain relevant entertainment news. It is also possible to provide a search bar B2, receive a preset keyword input by the user, and search for a target page from the mobile internet according to the preset keyword. Then, the client application queries the local server or the client database to query the transcoding rule of the target page, and the transcoding rule at least includes determining the code segment of the text paragraph, the author information, and the original link from the target page. . The text paragraph, the author information, and the original text link are downloaded from the target page according to the encoded label in the transcoding rule.
  • the invention does not download the entire webpage content of the target page to the client, but selects the necessary part of the client according to the transcoding rule to download.
  • the transcoding rule includes at least three encoded tags that respect the copyrighted text paragraph, the author information, and the original text link.
  • the downloaded content is typeset according to the interface layout of the local client, wherein the interface layout includes at least a text window for placing the text paragraph, and the user information for placing the author.
  • a title bar, a link to a landing page for placing the original text link is Obviously, this step is a re-layout of the target webpage, and the order of the labels is not necessarily in accordance with the order of the target webpages.
  • the downloaded content is displayed, and a comment bar B10 is added at the end of the page.
  • Receiving a trigger instruction of the user clicking the form button N1 on the comment bar sending the trigger instruction of the form button N1 and its associated comment object to the cloud server; receiving the user input in the form text box N3 on the comment bar
  • the text information is sent to the cloud server by the text information of the form text box N3 and its associated comment object.
  • the comment object includes an article review object N21 and a message comment object N22. It should be added that when the scheme is applied to the novel APP, the above comment bar can be used to display the comment information on a novel.
  • the invention can expand the access method of the reading content, and the reading content is updated and time-sensitive, and the entire target page does not need to be downloaded to the client, thereby ensuring the speed and stability of the application.
  • FIG. 6 is a schematic diagram of a front end auxiliary transcoding browsing device according to the present invention, including:
  • a page search unit configured to search for a target page from the mobile internet according to a preset keyword
  • a rule query unit configured to query a transcoding rule of the target page, where the transcoding rule includes at least a coded label for determining a text paragraph, an author information, and a text link from the target page;
  • a content downloading unit configured to download a text paragraph, author information, and a text link from the target page according to the encoded label in the transcoding rule
  • a content display unit for displaying downloaded content.
  • Figure 6 corresponds to Figure 1, and the embodiment of the unit in the Figure is the same as in the method.
  • the transcoding rule further includes determining a coded label of the picture from the page, and the content downloading unit includes:
  • a picture determining unit configured to determine, according to a preset setting of the user, whether the picture of the target page needs to be displayed
  • a picture downloading unit configured to: when the determination is yes, download a picture from the target page according to the coded label of the picture in the transcoding rule.
  • the transcoding rule further includes determining, from the page, an encoded tag of the hyperlink, the content downloading unit, including:
  • a hyperlink determining unit configured to determine, according to a preset setting of the user, whether a hyperlink of the target page needs to be displayed
  • a hyperlink downloading unit configured to: when the determination is yes, download the hyperlink from the target page according to the encoded label of the picture in the transcoding rule.
  • the transcoding rule further includes determining, from the page, a coded tag of the plugin link, the content downloading unit, including:
  • a plug-in determining unit configured to determine, according to a preset setting of the user, whether a plug-in link of the target page needs to be displayed
  • a plug-in downloading unit configured to download a plug-in link from the target page according to an encoding tag of a picture in the transcoding rule when the determination is yes, the plug-in link includes a sound link, a video link, and an application chain One of them.
  • FIG. 7 is a schematic diagram of an embodiment of a front end auxiliary transcoding browsing device according to the present invention.
  • the device includes:
  • a search receiving unit connected to the page search unit, configured to receive a preset keyword input by the user.
  • the device further includes:
  • a page transcoding unit connected between the content downloading unit and the content display unit, and the downloaded content is typeset according to a local interface layout, wherein the interface layout includes at least text for placing the text paragraph a window, a title bar for placing the author information, and a landing page link for placing the original text link.
  • the interface layout further includes a picture bar
  • the page transcoding unit is further configured to place the picture in the picture bar.
  • the interface layout further includes a plug-in window, where the page transcoding unit is further configured to place the plug-in link in the plug-in window, wherein the plug-in link includes a sound link, a video One of the links and application links.
  • the interface layout further includes a navigation bar
  • the page transcoding unit is further configured to place the hyperlink in the navigation bar.
  • the device further includes:
  • a first comment receiving unit connected to the page transcoding unit, configured to receive a trigger instruction of a user clicking a form button on the comment bar, and a first comment sending unit connected to the first comment receiving unit, for The triggering instruction of the form button and its associated comment object are sent to the cloud server; and/or,
  • a second comment receiving unit connected to the page transcoding unit, configured to receive, on the comment bar, text information input by a user in a form text box, and a second comment sending unit connected to the second comment receiving unit, Send the text information of the form text box and its associated comment object to the cloud server.
  • the device when the interface layout further includes a comment bar, the device, the comment obtaining unit connected to the page transcoding unit, is configured to obtain a comment object from the cloud server;
  • a comment display unit connected to the comment obtaining unit, configured to display, on the comment bar, the number of clicks of the form button counted by the cloud server when the comment object is associated with a form button; when the comment When the object is associated with a form text box, the cloud server stores the The textual information of the form text box.
  • the device can be applied to a novel APP, a news reading app, or an APP program of other writing materials.
  • the various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor may be used in practice to implement some or all of the functionality of some or all of the components of the front-end assisted transcoding browsing device in accordance with embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • Figure 8 shows a block diagram of a computing device for performing the method in accordance with the present invention.
  • the computing device conventionally includes a processor 810 and a computer program product or computer readable medium in the form of a memory 820.
  • the memory 820 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • Memory 820 has a memory space 830 that stores program code 831 for performing any of the method steps described above.
  • storage space 830 for program code may include various program code 831 for implementing various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products.
  • These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such computer program products are typically portable or fixed storage units such as those described in FIG.
  • the storage unit may have storage segments, storage spaces, and the like that are similar to the storage 820 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit stores computer readable program code 831' for performing the steps of the method in accordance with the present invention, i.e., may be comprised of something such as 810
  • the program code read by the processor, when executed by the computing device causes the computing device to perform various steps in the methods described above.

Abstract

The invention discloses a method and device for browsing front-end auxiliary converted data. The method comprises: searching, according to a preconfigured keyword, and from mobile Internet, a target page; querying a conversion rule of the target page, wherein the conversion rule comprises determining, from the target page, an encoding tag associated with a text paragraph, author information, and a source text link; downloading, according to the encoding tag, and from the target page, the text paragraph, the author information, and the source text link; and displaying the downloaded content. The invention is adopted to expand sources of acquiring reading content, providing reading content having high update time effectiveness without downloading to a client terminal the entire target page, and ensuring a speed and stability of an application.

Description

一种前端辅助转码的浏览方法和装置Method and device for browsing front end auxiliary transcoding 技术领域Technical field
本发明涉及电子阅览的技术领域,更具体地,涉及一种前端辅助转码的浏览方法和装置。The present invention relates to the technical field of electronic browsing, and more particularly to a method and apparatus for browsing a front-end assisted transcoding.
背景技术Background technique
我国移动阅读用户已具备一定规模。据CNNIC统计,2013年,我国手机阅读用户达到3.7亿,比上年增长25.3%。艾瑞咨询认为,随着网络设施建设的加快,手机阅读用户将保持平稳快速增长,预计到2017年,中国移动阅读用户规模将达到6.2亿。移动端不同于PC端,移动端的显示界面较小,移动网络的网速有限,移动端的处理器也无法跟电脑的cpu相比,这就对移动端的应用程序提出了更严苛的“精准、便捷”的要求。China's mobile reading users have a certain scale. According to CNNIC statistics, in 2013, China's mobile phone reading users reached 370 million, an increase of 25.3% over the previous year. iResearch believes that with the acceleration of network infrastructure construction, mobile phone readers will maintain steady and rapid growth. It is estimated that by 2017, China Mobile's reading users will reach 620 million. The mobile end is different from the PC end, the display interface of the mobile end is small, the network speed of the mobile network is limited, and the processor of the mobile end cannot be compared with the CPU of the computer, which puts more stringent "precision" on the mobile application. Convenient" requirements.
在移动互联网技术迅速发展的今天,人们通过移动网络获取信息日益便捷。但同时也引起了信息冗杂、超量等问题。在这样的条件下,通过挖掘文本来获取关键信息成为改善互联网用户体验、提高工作与阅读效率的重要手段,使用爬虫技术是信息获取的重要手段之一。现有技术当中,首先通过搜索各个网站的文本段落,将包含预设关键字的网站内容爬虫下载到本地服务器,再进行服务端转码,最后将转码后的净化内容发送到客户端的应用程序上进行展示。例如,可以在客户端的小说APP上,通过搜索关键字,从本地服务器上下载已经转码的相关内容,将相关内容显示在搜索结果当中。又例如,可以在客户端的新闻阅读APP上,看到以“娱乐”/“军事”为主题的相关新闻,因为本地服务器已经以“娱乐”/“军事”为关键字预先抓取并转码了相关新闻,以供客户端展示在新闻阅读APP的各个栏目当中。Today, with the rapid development of mobile Internet technology, people are getting more and more convenient information through mobile networks. But it also caused problems such as redundant information and excess information. Under such conditions, it is an important means to improve the Internet user experience and improve the efficiency of work and reading by mining texts. The use of crawler technology is one of the important means of information acquisition. In the prior art, first, by searching the text paragraphs of each website, the website content crawler containing the preset keywords is downloaded to the local server, and then the server transcodes, and finally the transcoded purified content is sent to the client application. Show on. For example, on the client's novel APP, by searching for keywords, the related content that has been transcoded is downloaded from the local server, and the related content is displayed in the search result. For another example, you can see related news on the client's news reading app with the theme of “entertainment”/“military”, because the local server has pre-fetched and transcoded the keyword “entertainment”/“military”. Relevant news for the client to display in the various sections of the news reading app.
但是,现有技术当中,客户端的应用程序只能从本地服务器上下载本地服务器预先存储的网站内容。这将导致诸多问题,一方面,资源的获取途径非常单一,用户获得的信息不够全面。另一方面,如果本地服务器停转或停止更新,相应的客户端应用程序也无法更新阅读内容。还有,本地服务器存储的阅读内容的更新速度较慢,不能满足用户实时获取最新内容的需要。这些因素一定程度上阻碍了移动阅读技术的进一步普及。 However, in the prior art, the client application can only download the website content pre-stored by the local server from the local server. This will lead to many problems. On the one hand, the access to resources is very simple, and the information obtained by users is not comprehensive enough. On the other hand, if the local server stops or stops updating, the corresponding client application cannot update the reading. Also, the reading content stored by the local server is slow to update, and the user needs to obtain the latest content in real time. These factors have hindered the further popularization of mobile reading technology to a certain extent.
发明内容Summary of the invention
鉴于上述问题,本发明提出了一种前端辅助转码的浏览方法和装置。In view of the above problems, the present invention proposes a browsing method and apparatus for front-end assisted transcoding.
本发明实施例中提供了一种前端辅助转码的浏览方法,包括:A method for browsing a front-end assisted transcoding is provided in the embodiment of the present invention, including:
按照预设关键字从移动互联网上搜索目标页面;Search for the target page from the mobile internet according to the preset keyword;
查询所述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签;Querying a transcoding rule of the target page, where the transcoding rule includes at least determining a coded label of the text paragraph, the author information, and the original text link from the target page;
根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接;Downloading a text paragraph, author information, and a text link from the target page according to the encoded label in the transcoding rule;
显示下载的内容。Show downloaded content.
相应地,本发明实施例提供了一种前端辅助转码的浏览装置,包括:Correspondingly, an embodiment of the present invention provides a browsing device for front-end assisted transcoding, including:
页面搜索单元,用于按照预设关键字从移动互联网上搜索目标页面;a page search unit, configured to search for a target page from the mobile internet according to a preset keyword;
规则查询单元,用于查询所述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签;a rule query unit, configured to query a transcoding rule of the target page, where the transcoding rule includes at least a coded label for determining a text paragraph, an author information, and a text link from the target page;
内容下载单元,用于根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接;a content downloading unit, configured to download a text paragraph, author information, and a text link from the target page according to the encoded label in the transcoding rule;
内容显示单元,用于显示下载的内容。A content display unit for displaying downloaded content.
相应地,本发明实施例提供了一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算设备上运行时,导致所述计算设备执行根据上述的前端辅助转码的浏览方法。Correspondingly, an embodiment of the present invention provides a computer program, including computer readable code, when the computer readable code is run on a computing device, causing the computing device to perform a browsing method according to the front end assisted transcoding described above. .
相应地,本发明实施例提供了一种计算机可读介质,其中存储了如上所述的计算机程序。Accordingly, embodiments of the present invention provide a computer readable medium storing a computer program as described above.
相对于现有技术,本发明提供的方案,按照预设关键字从移动互联网上搜索目标页面,不再局限于从本地服务器上获取网站内容,节省了对本地服务器的维护成本以及存储空间。而本地服务器仅分析和存储网页的转码规则,客户端应用程序在搜索到目标页面后,向本地服务器查询所述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签。客户端应用程序再根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接,并显示下载的内容。故此,本发明方案可以扩大阅读内容的获取途径,阅读内容的更新时效性强,不受限于本地服务器。进一步地,本地服务器挖掘的转码规则可以协助客户端应用程序快速地获取阅读内容,无需 将整个目标页面下载到客户端,而且也无需客户端应用程序对目标网页的网页组件进行分析挖掘,保证了应用程序的速度和稳定性。当然,如果转码规则简单,客户端应用程序也可自行挖掘。同时,本方案可以根据客户端的界面大小,自适应地调整字体、行距、分页来生成转码页,以便于阅读。Compared with the prior art, the solution provided by the present invention searches for a target page from the mobile Internet according to a preset keyword, and is no longer limited to obtaining website content from a local server, thereby saving maintenance costs and storage space for the local server. The local server only analyzes and stores the transcoding rule of the webpage. After searching the target page, the client application queries the local server for the transcoding rule of the target page, and the transcoding rule at least includes determining from the target page. The coded label for the text paragraph, the author information, and the original link. The client application then downloads the text paragraph, the author information, and the original text link from the target page according to the encoded label in the transcoding rule, and displays the downloaded content. Therefore, the solution of the present invention can expand the access method of the reading content, and the reading content is updated and time-sensitive, and is not limited to the local server. Further, the local server mining transcoding rules can assist the client application to quickly obtain reading content without The entire target page is downloaded to the client, and the client application does not need to analyze and mine the webpage components of the target webpage, thereby ensuring the speed and stability of the application. Of course, if the transcoding rules are simple, the client application can also mine itself. At the same time, the scheme can adaptively adjust the font, line spacing, and paging according to the interface size of the client to generate a transcoded page for reading.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention. Other drawings can also be obtained from those skilled in the art based on these drawings without paying any creative effort.
图1为本发明一种前端辅助转码的浏览方法的流程图;1 is a flowchart of a method for browsing a front-end assisted transcoding according to the present invention;
图2为本发明从移动互联网上搜索的目标页面示意图;2 is a schematic diagram of a target page searched from the mobile Internet according to the present invention;
图3-1为本发明一种前端辅助转码的浏览方法的转码页示意图之一;3-1 is a schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention;
图3-2为本发明一种前端辅助转码的浏览方法的转码页示意图之二;3-2 is a second schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention;
图4为本发明一种前端辅助转码的浏览方法的转码页的又一示意图;4 is still another schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention;
图5为本发明一种前端辅助转码的浏览方法的实施例流程图;FIG. 5 is a flowchart of an embodiment of a method for browsing a front-end assisted transcoding according to the present invention; FIG.
图6为本发明一种前端辅助转码的浏览装置的示意图;6 is a schematic diagram of a front end auxiliary transcoding browsing device according to the present invention;
图7为本发明一种前端辅助转码的浏览装置的实施例示意图;FIG. 7 is a schematic diagram of an embodiment of a front end auxiliary transcoding browsing device according to the present invention; FIG.
图8示意性地示出了用于执行根据本发明的方法的计算设备的框图;以及Figure 8 shows schematically a block diagram of a computing device for performing the method according to the invention;
图9示意性地示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。Fig. 9 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
图示中的标号分别表示,A11:文本段落,A12:作者信息,A13:原文链接,A3:图片,A4:插件,A5:超链接,B11:文本窗口,B12:标题栏,B13:目标网页链接,B2:搜索栏,B41:视频插件窗口,B42:应用程序插件窗口,B5:导航栏,B10:评论栏,N1:表单按钮,N21:文章评论对象,N22:留言评论对象,N3:表单文本框。The labels in the figure indicate, A11: text paragraph, A12: author information, A13: original link, A3: picture, A4: plugin, A5: hyperlink, B11: text window, B12: title bar, B13: landing page Link, B2: Search Bar, B41: Video Plugin Window, B42: Application Plugin Window, B5: Navigation Bar, B10: Comment Bar, N1: Form Button, N21: Article Review Object, N22: Message Comment Object, N3: Form Text box.
具体实施例Specific embodiment
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。 The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
在本发明的说明书和权利要求书及上述附图中的描述的一些流程中,包含了按照特定顺序出现的多个操作,但是应该清楚了解,这些操作可以不按照其在本文中出现的顺序来执行或并行执行,操作的序号如101、102等,仅仅是用于区分开各个不同的操作,序号本身不代表任何的执行顺序。另外,这些流程可以包括更多或更少的操作,并且这些操作可以按顺序执行或并行执行。需要说明的是,本文中的“第一”、“第二”等描述,是用于区分不同的消息、设备、模块等,不代表先后顺序,也不限定“第一”和“第二”是不同的类型。In the flow of the description of the invention and the claims and the above-described figures, a plurality of operations in a particular order are included, but it should be clearly understood that these operations may not follow the order in which they appear in this document. Execution or parallel execution, the serial number of the operation such as 101, 102, etc., is only used to distinguish different operations, and the serial number itself does not represent any execution order. Additionally, these processes may include more or fewer operations, and these operations may be performed sequentially or in parallel. It should be noted that the descriptions of “first” and “second” in this document are used to distinguish different messages, devices, modules, etc., and do not represent the order, nor the “first” and “second”. It is a different type.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图1为本发明一种前端辅助转码的浏览方法的流程图,包括:FIG. 1 is a flowchart of a method for browsing a front-end assisted transcoding according to the present invention, including:
S101:按照预设关键字从移动互联网上搜索目标页面;S101: Search for a target page from a mobile Internet according to a preset keyword;
S102:查询所述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签;S102: Query a transcoding rule of the target page, where the transcoding rule includes at least a coded label that determines a text paragraph, an author information, and a text link from the target page;
S103:根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接;S103: Download a text paragraph, an author information, and a text link from the target page according to the coded label in the transcoding rule;
S104:显示下载的内容。S104: Display the downloaded content.
图2为本发明从移动互联网上搜索的目标页面示意图。下面结合图1、2对本发明方案做进一步说明。如图2所示,现在大部分的网页都是因应电脑终端所设计的,而电脑显示屏要比手机显示屏大得多,故而,当使用手机打开网页时,需要对网页进行转码,从适于电脑屏幕显示的格式转换为适用手机屏幕显示的格式,以便于移动用户的阅读,人们将转码后的手机网页称为转码页。客户端的应用程序按照预设关键字从移动互联网上搜索目标页面,例如,小说APP可以根据预设关键字“恐怖小说”/“近代小说”等,通过移动互联网搜索包含“恐怖小说”/“近代小说”的目标页面。新闻APP可以根据预设关键字“财经”/“娱乐”等搜索目标页面。或者,进一步地,根据小说名称或新闻标题搜索目标页面。如此,不再局限于从本地服务器上获取网站内容,节省了对本地服务器的维护成本以及存储空间。2 is a schematic diagram of a target page searched from the mobile Internet according to the present invention. The solution of the present invention will be further described below with reference to Figs. As shown in Figure 2, most of the web pages are now designed according to the computer terminal, and the computer display screen is much larger than the mobile phone display screen. Therefore, when using the mobile phone to open the webpage, the webpage needs to be transcoded from The format suitable for the display of the computer screen is converted into a format suitable for the screen display of the mobile phone, so that the mobile user's reading is read, and the mobile phone webpage after the transcoding is called a transcoding page. The client application searches for the target page from the mobile Internet according to the preset keyword. For example, the novel APP can search for "horror novels" / "modern" through the mobile Internet search according to the preset keyword "horror novel" / "modern novel" and the like. The target page of the novel. The news app can search for a target page based on the preset keyword "Finance" / "Entertainment". Or, further, the target page is searched for based on the novel name or the news title. In this way, it is no longer limited to obtaining website content from a local server, which saves maintenance costs and storage space for the local server.
本地服务器相对于客户端来说,具有强大的处理能力,客户端应用程序向本地服务器查询目标页面的转码规则,本地服务器获取目标页面进行分析和挖掘所 述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签。本地服务器将上述编码标签作为查询结果反馈给客户端应用程序。The local server has powerful processing capabilities relative to the client. The client application queries the local server for the transcoding rules of the target page, and the local server obtains the target page for analysis and mining. Transcoding rules of the target page, the transcoding rules at least including encoding tags for determining text paragraphs, author information, and original text links from the target page. The local server feeds the above encoded tag as a query result to the client application.
客户端应用程序再根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接,并显示下载的内容。以HTML语言为例,文本段落的编码标签包括<p>…</p>、<body>...</body>等,作者信息的编码标签包括<meta name="author"content="…"/>,原文链接的编码标签包括<a>…</a>等。对于不同的网页编辑语言,会有不同。在此不一一例举,但均可被挖掘,能适用于本发明实现方案。需要特别说明的是,本发明方案无需识别所有网页编辑语言的所有标签,因为客户端的应用程序不一定都能支持所有标签的现实,另外,加载的标签越多,网页的显示速度也会越慢。在此,本发明方案的转码规则因应版权保护的需要,至少包括文本段落、作者信息和原文链接的编码标签。不管网页是使用什么网页编辑语言,上述的文本段落、作者信息和原文链接也显然是必备的。The client application then downloads the text paragraph, the author information, and the original text link from the target page according to the encoded label in the transcoding rule, and displays the downloaded content. Taking the HTML language as an example, the encoding tags of the text paragraph include <p>...</p>, <body>...</body>, etc., and the encoding tags of the author information include <meta name="author"content="... "/>, the encoding tag of the original link includes <a>...</a> and so on. There will be differences for different web editing languages. This is not an example, but can be excavated and can be applied to the implementation of the present invention. It should be specially noted that the solution of the present invention does not need to identify all the tags of all webpage editing languages, because the application of the client does not necessarily support the reality of all the tags, and the more tags are loaded, the slower the display speed of the webpages. . Here, the transcoding rule of the solution of the present invention includes at least a text paragraph, an author information, and a coded label of the original link in response to the need of copyright protection. Regardless of the webpage editing language used by the webpage, the above text paragraphs, author information and original text links are obviously necessary.
进一步地,如果进一步限定可供搜索的网站,或者转码规则只限定于数个常用的编码标签,例如,与中华网、凤凰网建立合作关系,客户端应用程序仅从这两个网站上搜索目标页面,则转码规则可以被进一步简化,客户端应用程序无需向本地服务器查询,而只需查询客户端数据库内存储的转码规则,进一步加快显示速度。Further, if the website to be searched is further limited, or the transcoding rule is limited to a plurality of commonly used coding tags, for example, a partnership relationship with China.com and Phoenix.com, the client application only searches from the two websites. On the target page, the transcoding rules can be further simplified. The client application does not need to query the local server, but only needs to query the transcoding rules stored in the client database to further speed up the display.
故此,本发明方案可以扩大阅读内容的获取途径,阅读内容的更新时效性强,不受限于本地服务器。进一步地,本地服务器挖掘的转码规则可以协助客户端应用程序快速地获取阅读内容,无需将整个目标页面下载到客户端,而且也无需客户端应用程序对目标网页的网页组件进行分析挖掘,保证了应用程序的速度和稳定性。当然,如果转码规则简单,客户端应用程序也可自行挖掘。同时,本方案可以根据客户端的界面大小,自适应地调整字体、行距、分页来生成转码页,以便于阅读。Therefore, the solution of the present invention can expand the access method of the reading content, and the reading content is updated and time-sensitive, and is not limited to the local server. Further, the transcoding rule of the local server mining can assist the client application to quickly obtain the reading content, without downloading the entire target page to the client, and the client application does not need to analyze and mine the webpage component of the target webpage to ensure that the webpage component of the target webpage is analyzed and mined. The speed and stability of the application. Of course, if the transcoding rules are simple, the client application can also mine itself. At the same time, the scheme can adaptively adjust the font, line spacing, and paging according to the interface size of the client to generate a transcoded page for reading.
图3-1为本发明一种前端辅助转码的浏览方法的转码页示意图之一。图3-2为本发明一种前端辅助转码的浏览方法的转码页示意图之二。与图2相比,图3-1和图3-2是对图2的新闻进行转码后,适于手机显示的转码页。下述实施例以新闻题材为例,展开说明,事实上,本发明方案也可以用于小说题材,或其他文字类题材的转码阅读。FIG. 3-1 is a schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention. FIG. 3-2 is a second schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention. Compared with FIG. 2, FIG. 3-1 and FIG. 3-2 are transcoded pages suitable for mobile phone display after transcoding the news of FIG. 2. The following embodiments take the news subject as an example and expand the description. In fact, the inventive solution can also be used for the novel theme, or other transliteration reading of the textual subject matter.
在其中一个实施例当中,本发明方案,所述转码规则还包括从所述页面中确定 图片的编码标签,根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接的步骤,还包括:In one embodiment, in the solution of the present invention, the transcoding rule further includes determining from the page The encoding label of the image, the step of downloading the text paragraph, the author information and the original text link from the target page according to the encoding label in the transcoding rule, further includes:
根据用户的预先设置,判断是否需要显示所述目标页面的图片;Determining whether it is necessary to display a picture of the target page according to a preset setting of the user;
当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载图片。When the determination is yes, the picture is downloaded from the target page according to the coded label of the picture in the transcoding rule.
如图2所示,A3为所述目标页面的图片。显然,如果客户端的应用程序上要加载该大图,则需要耗费更多的流量资源,以及等待更长的时间。本实施方案将这一决定交由用户自主设置,根据用户的预先设置,判断是否需要显示所述目标页面的图片。所述图片包括静态图片和动图图片等。当判断是时,客户端应用程序根据所述转码规则中图片的编码标签从所述目标页面下载图片。当判断否时,则不加载所示图片。As shown in FIG. 2, A3 is a picture of the target page. Obviously, if the big picture is loaded on the client's application, it will consume more traffic resources and wait longer. In this embodiment, the decision is left to the user to set, and according to the preset setting of the user, it is determined whether the picture of the target page needs to be displayed. The picture includes a still picture, a moving picture, and the like. When the determination is yes, the client application downloads the picture from the target page according to the encoded tag of the picture in the transcoding rule. When the judgment is no, the picture shown is not loaded.
在其中一个实施例当中,本发明方案,所述转码规则还包括从所述页面中确定超链接的编码标签,根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接的步骤,还包括:In one embodiment, in the solution of the present invention, the transcoding rule further includes determining an encoded label of the hyperlink from the page, and downloading a text paragraph, the author from the target page according to the encoded label in the transcoding rule. The steps of linking the information and the original text also include:
根据用户的预先设置,判断是否需要显示所述目标页面的超链接;Determining whether a hyperlink of the target page needs to be displayed according to a preset setting of the user;
当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载超链接。When the determination is yes, the hyperlink is downloaded from the target page according to the encoded tag of the picture in the transcoding rule.
如图2所示,A5为超链接。根据转码规则转换后,放置于如图3-2所示的B5导航栏“相关推荐”部分。这部分也是尊重用户需要,根据用户的预先设置进行加载,提高用户体验。As shown in Figure 2, A5 is a hyperlink. After conversion according to the transcoding rules, place it in the “Related Recommendations” section of the B5 navigation bar as shown in Figure 3-2. This part also respects the user's needs and loads according to the user's preset settings to improve the user experience.
图4为本发明一种前端辅助转码的浏览方法的转码页的又一示意图。FIG. 4 is still another schematic diagram of a transcoding page of a front-end assisted transcoding browsing method according to the present invention.
在又一个实施例当中,本发明方案,所述转码规则还包括从所述页面中确定插件链接的编码标签,根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接的步骤,还包括:In still another embodiment, in the solution of the present invention, the transcoding rule further includes determining, from the page, an encoding label of the plug-in link, and downloading the text paragraph, the author from the target page according to the encoding label in the transcoding rule. The steps of linking the information and the original text also include:
根据用户的预先设置,判断是否需要显示所述目标页面的插件链接;Determining whether it is necessary to display a plug-in link of the target page according to a preset setting of the user;
当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载插件链接,所述插件链接包括声音链接、视频链接和应用程序链接的其中一种。When the determination is yes, the plug-in link is downloaded from the target page according to the encoded tag of the picture in the transcoding rule, and the plug-in link includes one of a voice link, a video link, and an application link.
如图4所示,B41为视频插件,B42为应用程序插件。同理,也尊重用户需要,根据用户的预先设置进行加载,提高用户体验。As shown in Figure 4, B41 is a video plugin and B42 is an application plugin. In the same way, it also respects the user's needs and loads according to the user's preset settings to improve the user experience.
图5为本发明一种前端辅助转码的浏览方法的实施例流程图。与图1相比,图5实施例进一步包括根据用户的输入关键字进行搜索、根据界面布局进行客户端的重新排版,以及添加评论栏等功能。 FIG. 5 is a flowchart of an embodiment of a method for browsing a front-end assisted transcoding according to the present invention. Compared with FIG. 1, the embodiment of FIG. 5 further includes a function of searching according to an input keyword of a user, re-formatting a client according to an interface layout, and adding a comment bar.
S201:接收用户输入的预设关键字;S201: Receive a preset keyword input by a user;
S202:按照预设关键字从移动互联网上搜索目标页面;S202: Search for a target page from a mobile Internet according to a preset keyword;
S203:查询所述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签;S203: Query a transcoding rule of the target page, where the transcoding rule includes at least a coding label for determining a text paragraph, an author information, and a text link from the target page;
S204:根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接;S204: Download a text paragraph, an author information, and a text link from the target page according to the coded label in the transcoding rule;
S205:按照本地的界面布局对下载的内容进行排版,其中,所述界面布局至少包括用于放置所述文本段落的文本窗口、用于放置所述作者信息的标题栏、用于放置所述原文链接的目标网页链接;S205: Typesetting the downloaded content according to a local interface layout, where the interface layout includes at least a text window for placing the text paragraph, a title bar for placing the author information, and the original text for placing the original text. Link to the landing page of the link;
S206:显示下载的内容;S206: displaying the downloaded content;
S206步骤之后转入S207步骤或S208步骤或S209步骤;After step S206, the process proceeds to step S207 or step S208 or step S209;
S207:在所述评论栏上接收用户点击表单按钮的触发指令,将所述表单按钮的触发指令及其关联的评论对象发送到云端服务器;S207: Receive a trigger instruction of the user clicking the form button on the comment bar, and send the trigger instruction of the form button and the associated comment object to the cloud server;
S208:在所述评论栏上接收用户在表单文本框输入的文字信息,将该表单文本框的文字信息及其关联的评论对象发送到云端服务器;S208: Receive text information input by the user in the form text box on the comment bar, and send the text information of the form text box and the associated comment object to the cloud server;
S209:从所述云端服务器获取评论对象;S209: Obtain a comment object from the cloud server.
S209步骤之后转入S210步骤或S211步骤;After step S209, the process proceeds to step S210 or step S211;
S210:当所述评论对象关联有表单按钮时,在所述评论栏上显示所述云端服务器统计的该表单按钮的被点击次数;S210: When the comment object is associated with a form button, displaying, on the comment bar, the number of clicks of the form button counted by the cloud server;
S211:当所述评论对象关联有表单文本框时,在所述评论栏上显示所述云端服务器存储的该表单文本框的文字信息。S211: When the comment object is associated with the form text box, the text information of the form text box stored by the cloud server is displayed on the comment bar.
以下结合图2-图5做详细说明。其中,图示中的标号分别表示,A11:文本段落,A12:作者信息,A13:原文链接,A3:图片,A4:插件,A5:超链接,B11:文本窗口,B12:标题栏,B13:目标网页链接,B2:搜索栏,B41:视频插件窗口,B42:应用程序插件窗口,B5:导航栏,B10:评论栏,N1:表单按钮,N21:文章评论对象,N22:留言评论对象,N3:表单文本框。The details will be described below with reference to FIGS. 2 to 5. Among them, the labels in the figure indicate, A11: text paragraph, A12: author information, A13: original link, A3: picture, A4: plug-in, A5: hyperlink, B11: text window, B12: title bar, B13: Landing page link, B2: Search bar, B41: Video plugin window, B42: Application plugin window, B5: Navigation bar, B10: Comment bar, N1: Form button, N21: Article comment object, N22: Message comment object, N3 : Form text box.
按照本地的界面布局对下载的内容进行排版,其中,所述界面布局至少包括用于放置所述文本段落A11的文本窗口B11、用于放置所述作者信息A12的标题栏B12、用于放置所述原文链接A13的目标网页链接B13。The downloaded content is typeset according to a local interface layout, wherein the interface layout includes at least a text window B11 for placing the text paragraph A11, a title bar B12 for placing the author information A12, and a placement window. The target web link B13 of the original link A13 is described.
当下载的内容还包括图片时,所述界面布局还包括用于放置所述图片的图片 栏。When the downloaded content further includes a picture, the interface layout further includes a picture for placing the picture column.
当下载的内容还包括插件链接A4时,所述界面布局还包括用于放置所述插件链接的插件窗口,其中,所述插件链接包括声音链接、视频链接和应用程序链接的其中一种。例如,B41:视频插件窗口,B42:应用程序插件窗口。When the downloaded content further includes a plug-in link A4, the interface layout further includes a plug-in window for placing the plug-in link, wherein the plug-in link includes one of a sound link, a video link, and an application link. For example, B41: Video Plugin Window, B42: Application Plugin Window.
当下载的内容还包括超链接A5时,所述界面布局还包括用于放置所述超链接的导航栏B5。When the downloaded content also includes a hyperlink A5, the interface layout further includes a navigation bar B5 for placing the hyperlink.
本发明既可按照默认的关键字进行搜索,例如按照“娱乐”主题进行搜索获得相关的娱乐新闻。也可以提供搜索栏B2,接收用户输入的预设关键字,按照预设关键字从移动互联网上搜索目标页面。然后,客户端应用程序向本地服务器或客户端数据库进行查询,查询所述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签。再根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接。本发明并不是将目标页面的整个网页内容都下载到客户端,而是根据转码规则选择客户所需的、必要的部分进行下载。其中,该转码规则至少包括尊重版权的文本段落、作者信息和原文链接的三个编码标签。下载之后,为了适应于客户端的显示,按照本地客户端的界面布局对下载的内容进行排版,其中,所述界面布局至少包括用于放置所述文本段落的文本窗口、用于放置所述作者信息的标题栏、用于放置所述原文链接的目标网页链接。显然,本步骤是对目标网页的重新排版,对各个标签的编排顺序不一定遵循目标网页的编排次序。当然,也可以添加一些客户端应用程序所提供的元素,以满足客户个性化的需求。例如,添加评论栏B10。The invention can search by default keywords, for example, according to the "entertainment" theme to obtain relevant entertainment news. It is also possible to provide a search bar B2, receive a preset keyword input by the user, and search for a target page from the mobile internet according to the preset keyword. Then, the client application queries the local server or the client database to query the transcoding rule of the target page, and the transcoding rule at least includes determining the code segment of the text paragraph, the author information, and the original link from the target page. . The text paragraph, the author information, and the original text link are downloaded from the target page according to the encoded label in the transcoding rule. The invention does not download the entire webpage content of the target page to the client, but selects the necessary part of the client according to the transcoding rule to download. The transcoding rule includes at least three encoded tags that respect the copyrighted text paragraph, the author information, and the original text link. After the downloading, in order to adapt to the display of the client, the downloaded content is typeset according to the interface layout of the local client, wherein the interface layout includes at least a text window for placing the text paragraph, and the user information for placing the author. A title bar, a link to a landing page for placing the original text link. Obviously, this step is a re-layout of the target webpage, and the order of the labels is not necessarily in accordance with the order of the target webpages. Of course, you can also add some of the elements provided by the client application to meet the individual needs of the customer. For example, add a comment bar B10.
显示下载的内容,在页尾部分添加评论栏B10。在所述评论栏上接收用户点击表单按钮N1的触发指令,将所述表单按钮N1的触发指令及其关联的评论对象发送到云端服务器;在所述评论栏上接收用户在表单文本框N3输入的文字信息,将该表单文本框N3的文字信息及其关联的评论对象发送到云端服务器。如图所示,评论对象包括文章评论对象N21和留言评论对象N22。需要补充说明的是,当本方案应用于小说APP时,上述评论栏可以用于展示对某小说的评论信息。The downloaded content is displayed, and a comment bar B10 is added at the end of the page. Receiving a trigger instruction of the user clicking the form button N1 on the comment bar, sending the trigger instruction of the form button N1 and its associated comment object to the cloud server; receiving the user input in the form text box N3 on the comment bar The text information is sent to the cloud server by the text information of the form text box N3 and its associated comment object. As shown, the comment object includes an article review object N21 and a message comment object N22. It should be added that when the scheme is applied to the novel APP, the above comment bar can be used to display the comment information on a novel.
从所述云端服务器获取评论对象;当所述评论对象关联有表单按钮N1时,在所述评论栏上显示所述云端服务器统计的该表单按钮N1的被点击次数;当所述评论对象关联有表单文本框N3时,在所述评论栏上显示所述云端服务器存储的该表单文本框N3的文字信息。例如,图3-2当中,对该文章的支持表单按钮的被点击次数是458 次,对该文章的反对表单按钮的被点击次数是43次,对某评论的支持表单按钮的被点击次数是40次等。Obtaining a comment object from the cloud server; when the comment object is associated with the form button N1, displaying, on the comment bar, the clicked number of the form button N1 counted by the cloud server; when the comment object is associated with When the form text box N3 is displayed, the text information of the form text box N3 stored by the cloud server is displayed on the comment bar. For example, in Figure 3-2, the number of clicks on the support form button for the article is 458. In this case, the number of clicks on the object-to-form button for the article is 43 times, and the number of clicks on the support form button for a comment is 40 times.
综上所述,采用本发明,可以扩大阅读内容的获取途径,阅读内容的更新时效性强,无需将整个目标页面下载到客户端,保证了应用程序的速度和稳定性。In summary, the invention can expand the access method of the reading content, and the reading content is updated and time-sensitive, and the entire target page does not need to be downloaded to the client, thereby ensuring the speed and stability of the application.
图6为本发明一种前端辅助转码的浏览装置的示意图,包括:FIG. 6 is a schematic diagram of a front end auxiliary transcoding browsing device according to the present invention, including:
页面搜索单元,用于按照预设关键字从移动互联网上搜索目标页面;a page search unit, configured to search for a target page from the mobile internet according to a preset keyword;
规则查询单元,用于查询所述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签;a rule query unit, configured to query a transcoding rule of the target page, where the transcoding rule includes at least a coded label for determining a text paragraph, an author information, and a text link from the target page;
内容下载单元,用于根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接;a content downloading unit, configured to download a text paragraph, author information, and a text link from the target page according to the encoded label in the transcoding rule;
内容显示单元,用于显示下载的内容。A content display unit for displaying downloaded content.
图6与图1相对应,图中单元的实施方式与方法中的相同。Figure 6 corresponds to Figure 1, and the embodiment of the unit in the Figure is the same as in the method.
在其中一个实施例当中,所述转码规则还包括从所述页面中确定图片的编码标签,所述内容下载单元,包括:In one embodiment, the transcoding rule further includes determining a coded label of the picture from the page, and the content downloading unit includes:
图片判断单元,用于根据用户的预先设置,判断是否需要显示所述目标页面的图片;a picture determining unit, configured to determine, according to a preset setting of the user, whether the picture of the target page needs to be displayed;
图片下载单元,用于当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载图片。a picture downloading unit, configured to: when the determination is yes, download a picture from the target page according to the coded label of the picture in the transcoding rule.
在其中一个实施例当中,所述转码规则还包括从所述页面中确定超链接的编码标签,所述内容下载单元,包括:In one embodiment, the transcoding rule further includes determining, from the page, an encoded tag of the hyperlink, the content downloading unit, including:
超链接判断单元,用于根据用户的预先设置,判断是否需要显示所述目标页面的超链接;a hyperlink determining unit, configured to determine, according to a preset setting of the user, whether a hyperlink of the target page needs to be displayed;
超链接下载单元,用于当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载超链接。a hyperlink downloading unit, configured to: when the determination is yes, download the hyperlink from the target page according to the encoded label of the picture in the transcoding rule.
在又一个实施例当中,所述转码规则还包括从所述页面中确定插件链接的编码标签,所述内容下载单元,包括:In still another embodiment, the transcoding rule further includes determining, from the page, a coded tag of the plugin link, the content downloading unit, including:
插件判断单元,用于根据用户的预先设置,判断是否需要显示所述目标页面的插件链接;a plug-in determining unit, configured to determine, according to a preset setting of the user, whether a plug-in link of the target page needs to be displayed;
插件下载单元,用于当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载插件链接,所述插件链接包括声音链接、视频链接和应用程序链 接的其中一种。a plug-in downloading unit, configured to download a plug-in link from the target page according to an encoding tag of a picture in the transcoding rule when the determination is yes, the plug-in link includes a sound link, a video link, and an application chain One of them.
图7为本发明一种前端辅助转码的浏览装置的实施例示意图。FIG. 7 is a schematic diagram of an embodiment of a front end auxiliary transcoding browsing device according to the present invention.
如图7所示,本装置,包括:As shown in Figure 7, the device includes:
与所述页面搜索单元相连的搜索接收单元,用于接收用户输入的预设关键字。And a search receiving unit connected to the page search unit, configured to receive a preset keyword input by the user.
如图7所示,本装置,还包括:As shown in FIG. 7, the device further includes:
连接在所述内容下载单元与所述内容显示单元之间的页面转码单元,按照本地的界面布局对下载的内容进行排版,其中,所述界面布局至少包括用于放置所述文本段落的文本窗口、用于放置所述作者信息的标题栏、用于放置所述原文链接的目标网页链接。a page transcoding unit connected between the content downloading unit and the content display unit, and the downloaded content is typeset according to a local interface layout, wherein the interface layout includes at least text for placing the text paragraph a window, a title bar for placing the author information, and a landing page link for placing the original text link.
当下载的内容还包括图片时,所述界面布局还包括图片栏,所述页面转码单元还用于在所述图片栏放置所述图片。When the downloaded content further includes a picture, the interface layout further includes a picture bar, and the page transcoding unit is further configured to place the picture in the picture bar.
当下载的内容还包括插件链接时,所述界面布局还包括插件窗口,所述页面转码单元还用于在所述插件窗口放置所述插件链接,其中,所述插件链接包括声音链接、视频链接和应用程序链接的其中一种。When the downloaded content further includes a plug-in link, the interface layout further includes a plug-in window, where the page transcoding unit is further configured to place the plug-in link in the plug-in window, wherein the plug-in link includes a sound link, a video One of the links and application links.
当下载的内容还包括超链接时,所述界面布局还包括导航栏,所述页面转码单元还用于在所述导航栏放置所述超链接。When the downloaded content further includes a hyperlink, the interface layout further includes a navigation bar, and the page transcoding unit is further configured to place the hyperlink in the navigation bar.
如图7所示,当所述界面布局还包括评论栏时,本装置,还包括:As shown in FIG. 7, when the interface layout further includes a comment bar, the device further includes:
与所述页面转码单元相连的第一评论接收单元,用于在所述评论栏上接收用户点击表单按钮的触发指令,以及与第一评论接收单元相连的第一评论发送单元,用于将所述表单按钮的触发指令及其关联的评论对象发送到云端服务器;和/或,a first comment receiving unit connected to the page transcoding unit, configured to receive a trigger instruction of a user clicking a form button on the comment bar, and a first comment sending unit connected to the first comment receiving unit, for The triggering instruction of the form button and its associated comment object are sent to the cloud server; and/or,
与所述页面转码单元相连的第二评论接收单元,用于在所述评论栏上接收用户在表单文本框输入的文字信息,以及与第二评论接收单元相连的第二评论发送单元,用于将该表单文本框的文字信息及其关联的评论对象发送到云端服务器。a second comment receiving unit connected to the page transcoding unit, configured to receive, on the comment bar, text information input by a user in a form text box, and a second comment sending unit connected to the second comment receiving unit, Send the text information of the form text box and its associated comment object to the cloud server.
如图7所示,当所述界面布局还包括评论栏时,本装置,与所述页面转码单元相连的评论获取单元,用于从所述云端服务器获取评论对象;As shown in FIG. 7, when the interface layout further includes a comment bar, the device, the comment obtaining unit connected to the page transcoding unit, is configured to obtain a comment object from the cloud server;
与所述评论获取单元相连的评论展示单元,用于当所述评论对象关联有表单按钮时,在所述评论栏上显示所述云端服务器统计的该表单按钮的被点击次数;当所述评论对象关联有表单文本框时,在所述评论栏上显示所述云端服务器存储的该 表单文本框的文字信息。a comment display unit connected to the comment obtaining unit, configured to display, on the comment bar, the number of clicks of the form button counted by the cloud server when the comment object is associated with a form button; when the comment When the object is associated with a form text box, the cloud server stores the The textual information of the form text box.
最后,需要补充说明的是,本装置可应用于小说APP,新闻阅读APP,或其他文字材料的APP程序。Finally, it should be added that the device can be applied to a novel APP, a news reading app, or an APP program of other writing materials.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present invention, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the invention. Therefore, the scope of the invention should be determined by the appended claims.
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的前端辅助转码的浏览装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。The various component embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or digital signal processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components of the front-end assisted transcoding browsing device in accordance with embodiments of the present invention. . The invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein. Such a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals. Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
例如,图8示出了用于执行根据本发明的方法的计算设备的框图。该计算设备传统上包括处理器810和以存储器820形式的计算机程序产品或者计算机可读介质。存储器820可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器820具有存储用于执行上述方法中的任何方法步骤的程序代码831的存储空间830。例如,用于程序代码的存储空间830可以包括分别用于实现上面的方法中的各种步骤的各个程序代码831。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为例如图9所述的便携式或者固定存储单元。该存储单元可以具有与图8的计算设备中的存储器820类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元存储有用于执行根据本发明的方法步骤的计算机可读程序代码831’,即可以由诸如810之类的处 理器读取的程序代码,当这些程序代码由计算设备运行时,导致该计算设备执行上面所描述的方法中的各个步骤。For example, Figure 8 shows a block diagram of a computing device for performing the method in accordance with the present invention. The computing device conventionally includes a processor 810 and a computer program product or computer readable medium in the form of a memory 820. The memory 820 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM. Memory 820 has a memory space 830 that stores program code 831 for performing any of the method steps described above. For example, storage space 830 for program code may include various program code 831 for implementing various steps in the above methods, respectively. The program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units such as those described in FIG. The storage unit may have storage segments, storage spaces, and the like that are similar to the storage 820 in the computing device of FIG. The program code can be compressed, for example, in an appropriate form. Typically, the storage unit stores computer readable program code 831&apos; for performing the steps of the method in accordance with the present invention, i.e., may be comprised of something such as 810 The program code read by the processor, when executed by the computing device, causes the computing device to perform various steps in the methods described above.
本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本发明的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。&quot;an embodiment,&quot; or &quot;an embodiment,&quot; or &quot;an embodiment,&quot; In addition, it is noted that the phrase "in one embodiment" is not necessarily referring to the same embodiment.
在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本发明的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. However, it is understood that the embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques are not shown in detail so as not to obscure the understanding of the description.
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限制,并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计出替换实施例。在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。It is to be noted that the above-described embodiments are illustrative of the invention and are not intended to be limiting, and that the invention may be devised without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as a limitation. The word "comprising" does not exclude the presence of the elements or steps that are not recited in the claims. The word "a" or "an" The invention can be implemented by means of hardware comprising several distinct elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means can be embodied by the same hardware item.
此外,还应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。 In addition, it should be noted that the language used in the specification has been selected for the purpose of readability and teaching, and is not intended to be construed or limited. Therefore, many modifications and changes will be apparent to those skilled in the art without departing from the scope of the invention. The disclosure of the present invention is intended to be illustrative, and not restrictive, and the scope of the invention is defined by the appended claims.

Claims (24)

  1. 一种前端辅助转码的浏览方法,包括:A front-end assisted transcoding browsing method includes:
    按照预设关键字从移动互联网上搜索目标页面;Search for the target page from the mobile internet according to the preset keyword;
    查询所述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签;Querying a transcoding rule of the target page, where the transcoding rule includes at least determining a coded label of the text paragraph, the author information, and the original text link from the target page;
    根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接;Downloading a text paragraph, author information, and a text link from the target page according to the encoded label in the transcoding rule;
    显示下载的内容。Show downloaded content.
  2. 根据权利要求1所述的前端辅助转码的浏览方法,其特征在于,按照预设的关键字从移动互联网上搜索目标页面的步骤之前,包括:The method for browsing a front-end assisted transcoding according to claim 1, wherein before the step of searching for a target page from the mobile Internet according to a preset keyword, the method includes:
    接收用户输入的预设关键字。Receive preset keywords entered by the user.
  3. 根据权利要求1所述的前端辅助转码的浏览方法,其特征在于,所述转码规则还包括从所述页面中确定图片的编码标签,根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接的步骤,还包括:The method for browsing a front-end assisted transcoding according to claim 1, wherein the transcoding rule further comprises: determining, from the page, a coded label of the picture, according to the coded label in the transcoding rule, The steps of the target page to download text paragraphs, author information, and original text links, including:
    根据用户的预先设置,判断是否需要显示所述目标页面的图片;Determining whether it is necessary to display a picture of the target page according to a preset setting of the user;
    当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载图片。When the determination is yes, the picture is downloaded from the target page according to the coded label of the picture in the transcoding rule.
  4. 根据权利要求1所述的前端辅助转码的浏览方法,其特征在于,所述转码规则还包括从所述页面中确定插件链接的编码标签,根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接的步骤,还包括:The method for browsing a front-end assisted transcoding according to claim 1, wherein the transcoding rule further comprises: determining, from the page, a coded label of a plug-in link, according to the coded label in the transcoding rule The steps of downloading text paragraphs, author information and original text links on the target page include:
    根据用户的预先设置,判断是否需要显示所述目标页面的插件链接;Determining whether it is necessary to display a plug-in link of the target page according to a preset setting of the user;
    当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载插件链接,所述插件链接包括声音链接、视频链接和应用程序链接的其中一种。When the determination is yes, the plug-in link is downloaded from the target page according to the encoded tag of the picture in the transcoding rule, and the plug-in link includes one of a voice link, a video link, and an application link.
  5. 根据权利要求1所述的前端辅助转码的浏览方法,其特征在于,所述转码规则还包括从所述页面中确定超链接的编码标签,根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接的步骤,还包括:The method for browsing a front-end assisted transcoding according to claim 1, wherein the transcoding rule further comprises: determining, from the page, a coded label of the hyperlink, according to the coded label in the transcoding rule The steps of downloading text paragraphs, author information and original text links on the target page include:
    根据用户的预先设置,判断是否需要显示所述目标页面的超链接;Determining whether a hyperlink of the target page needs to be displayed according to a preset setting of the user;
    当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载超链接。 When the determination is yes, the hyperlink is downloaded from the target page according to the encoded tag of the picture in the transcoding rule.
  6. 根据权利要求1-5任一项所述的前端辅助转码的浏览方法,其特征在于,显示下载的内容之前,还包括:The method for browsing the front-end assisted transcoding according to any one of claims 1 to 5, further comprising: before displaying the downloaded content,
    按照本地的界面布局对下载的内容进行排版,其中,所述界面布局至少包括用于放置所述文本段落的文本窗口、用于放置所述作者信息的标题栏、用于放置所述原文链接的目标网页链接。The downloaded content is typeset according to a local interface layout, wherein the interface layout includes at least a text window for placing the text paragraph, a title bar for placing the author information, and a text link for placing the original text link. Landing page link.
  7. 根据权利要求6所述的前端辅助转码的浏览方法,其特征在于,按照本地的界面布局对下载的内容进行排版,包括:The method for browsing the front-end assisted transcoding according to claim 6, wherein the downloading the content according to the local interface layout comprises:
    当下载的内容还包括图片时,所述界面布局还包括用于放置所述图片的图片栏。When the downloaded content also includes a picture, the interface layout further includes a picture bar for placing the picture.
  8. 根据权利要求6所述的前端辅助转码的浏览方法,其特征在于,按照本地的界面布局对下载的内容进行排版,包括:The method for browsing the front-end assisted transcoding according to claim 6, wherein the downloading the content according to the local interface layout comprises:
    当下载的内容还包括插件链接时,所述界面布局还包括用于放置所述插件链接的插件窗口,其中,所述插件链接包括声音链接、视频链接和应用程序链接的其中一种。When the downloaded content further includes a plugin link, the interface layout further includes a plugin window for placing the plugin link, wherein the plugin link includes one of a sound link, a video link, and an application link.
  9. 根据权利要求6所述的前端辅助转码的浏览方法,其特征在于,按照本地的界面布局对下载的内容进行排版,包括:The method for browsing the front-end assisted transcoding according to claim 6, wherein the downloading the content according to the local interface layout comprises:
    当下载的内容还包括超链接时,所述界面布局还包括用于放置所述超链接的导航栏。When the downloaded content also includes a hyperlink, the interface layout further includes a navigation bar for placing the hyperlink.
  10. 根据权利要求6所述的前端辅助转码的浏览方法,其特征在于,所述界面布局还包括评论栏,显示下载的内容的步骤之后,还包括:The method for browsing the front-end assisted transcoding according to claim 6, wherein the interface layout further includes a comment bar, and after the step of displaying the downloaded content, the method further includes:
    在所述评论栏上接收用户点击表单按钮的触发指令,将所述表单按钮的触发指令及其关联的评论对象发送到云端服务器,和/或,Receiving a trigger instruction of the user clicking the form button on the comment bar, sending the trigger instruction of the form button and its associated comment object to the cloud server, and/or,
    在所述评论栏上接收用户在表单文本框输入的文字信息,将该表单文本框的文字信息及其关联的评论对象发送到云端服务器。The text information input by the user in the form text box is received on the comment bar, and the text information of the form text box and its associated comment object are sent to the cloud server.
  11. 根据权利要求10的前端辅助转码的浏览方法,其特征在于,所述界面布局还包括评论栏,显示下载的内容的步骤之后,还包括:The method for browsing the front-end assisted transcoding according to claim 10, wherein the interface layout further comprises a comment bar, and after the step of displaying the downloaded content, the method further includes:
    从所述云端服务器获取评论对象;Obtaining a comment object from the cloud server;
    当所述评论对象关联有表单按钮时,在所述评论栏上显示所述云端服务器统计的该表单按钮的被点击次数;When the comment object is associated with a form button, displaying the number of clicks of the form button counted by the cloud server on the comment bar;
    当所述评论对象关联有表单文本框时,在所述评论栏上显示所述云端服务器存储的该表单文本框的文字信息。When the comment object is associated with a form text box, the text information of the form text box stored by the cloud server is displayed on the comment bar.
  12. 一种前端辅助转码的浏览装置,包括:A front-end assisted transcoding browsing device, comprising:
    页面搜索单元,用于按照预设关键字从移动互联网上搜索目标页面; a page search unit, configured to search for a target page from the mobile internet according to a preset keyword;
    规则查询单元,用于查询所述目标页面的转码规则,该转码规则至少包括从所述目标页面中确定文本段落、作者信息和原文链接的编码标签;a rule query unit, configured to query a transcoding rule of the target page, where the transcoding rule includes at least a coded label for determining a text paragraph, an author information, and a text link from the target page;
    内容下载单元,用于根据所述转码规则中的编码标签从所述目标页面下载文本段落、作者信息和原文链接;a content downloading unit, configured to download a text paragraph, author information, and a text link from the target page according to the encoded label in the transcoding rule;
    内容显示单元,用于显示下载的内容。A content display unit for displaying downloaded content.
  13. 根据权利要求12所述的前端辅助转码的浏览装置,其特征在于,包括:The device for browsing the front-end assisted transcoding according to claim 12, comprising:
    与所述页面搜索单元相连的搜索接收单元,用于接收用户输入的预设关键字。And a search receiving unit connected to the page search unit, configured to receive a preset keyword input by the user.
  14. 根据权利要求12所述的前端辅助转码的浏览装置,其特征在于,所述转码规则还包括从所述页面中确定图片的编码标签,所述内容下载单元,包括:The apparatus for browsing a front-end assisted transcoding according to claim 12, wherein the transcoding rule further comprises: determining a coded label of the picture from the page, the content downloading unit, comprising:
    图片判断单元,用于根据用户的预先设置,判断是否需要显示所述目标页面的图片;a picture determining unit, configured to determine, according to a preset setting of the user, whether the picture of the target page needs to be displayed;
    图片下载单元,用于当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载图片。a picture downloading unit, configured to: when the determination is yes, download a picture from the target page according to the coded label of the picture in the transcoding rule.
  15. 根据权利要求12所述的前端辅助转码的浏览装置,其特征在于,所述转码规则还包括从所述页面中确定插件链接的编码标签,所述内容下载单元,包括:The apparatus for browsing the front-end assisted transcoding according to claim 12, wherein the transcoding rule further comprises: determining, from the page, an encoded label of the plug-in link, the content downloading unit, comprising:
    插件判断单元,用于根据用户的预先设置,判断是否需要显示所述目标页面的插件链接;a plug-in determining unit, configured to determine, according to a preset setting of the user, whether a plug-in link of the target page needs to be displayed;
    插件下载单元,用于当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载插件链接,所述插件链接包括声音链接、视频链接和应用程序链接的其中一种。a plug-in downloading unit, configured to download a plug-in link from the target page according to an encoding tag of a picture in the transcoding rule when the determination is yes, the plug-in link including one of a sound link, a video link, and an application link.
  16. 根据权利要求12所述的前端辅助转码的浏览装置,其特征在于,所述转码规则还包括从所述页面中确定超链接的编码标签,所述内容下载单元,包括:The apparatus for browsing a front-end assisted transcoding according to claim 12, wherein the transcoding rule further comprises: determining, by the page, a coded label of the hyperlink, the content downloading unit, comprising:
    超链接判断单元,用于根据用户的预先设置,判断是否需要显示所述目标页面的超链接;a hyperlink determining unit, configured to determine, according to a preset setting of the user, whether a hyperlink of the target page needs to be displayed;
    超链接下载单元,用于当判断是时,根据所述转码规则中图片的编码标签从所述目标页面下载超链接。a hyperlink downloading unit, configured to: when the determination is yes, download the hyperlink from the target page according to the encoded label of the picture in the transcoding rule.
  17. 根据权利要求12-16任一项所述的前端辅助转码的浏览装置,其特征在于,还包括: The apparatus for browsing the front-end assisted transcoding according to any one of claims 12 to 16, further comprising:
    连接在所述内容下载单元与所述内容显示单元之间的页面转码单元,按照本地的界面布局对下载的内容进行排版,其中,所述界面布局至少包括用于放置所述文本段落的文本窗口、用于放置所述作者信息的标题栏、用于放置所述原文链接的目标网页链接。a page transcoding unit connected between the content downloading unit and the content display unit, and the downloaded content is typeset according to a local interface layout, wherein the interface layout includes at least text for placing the text paragraph a window, a title bar for placing the author information, and a landing page link for placing the original text link.
  18. 根据权利要求17所述的前端辅助转码的浏览装置,其特征在于:当下载的内容还包括图片时,所述界面布局还包括图片栏,所述页面转码单元还用于在所述图片栏放置所述图片。The apparatus for browsing a front-end assisted transcoding according to claim 17, wherein when the downloaded content further includes a picture, the interface layout further includes a picture bar, and the page transcoding unit is further configured to: The bar places the picture.
  19. 根据权利要求17所述的前端辅助转码的浏览装置,其特征在于:当下载的内容还包括插件链接时,所述界面布局还包括插件窗口,所述页面转码单元还用于在所述插件窗口放置所述插件链接,其中,所述插件链接包括声音链接、视频链接和应用程序链接的其中一种。The apparatus for browsing the front-end assisted transcoding according to claim 17, wherein when the downloaded content further includes a plug-in link, the interface layout further includes a plug-in window, wherein the page transcoding unit is further configured to The plugin window places the plugin link, wherein the plugin link includes one of a sound link, a video link, and an application link.
  20. 根据权利要求17所述的前端辅助转码的浏览装置,其特征在于:当下载的内容还包括超链接时,所述界面布局还包括导航栏,所述页面转码单元还用于在所述导航栏放置所述超链接。The apparatus for browsing a front-end assisted transcoding according to claim 17, wherein when the downloaded content further includes a hyperlink, the interface layout further includes a navigation bar, and the page transcoding unit is further configured to: The navigation bar places the hyperlink.
  21. 根据权利要求17所述的前端辅助转码的浏览装置,其特征在于,所述界面布局还包括评论栏,还包括:The apparatus for browsing the front-end assisted transcoding according to claim 17, wherein the interface layout further comprises a comment bar, further comprising:
    与所述页面转码单元相连的第一评论接收单元,用于在所述评论栏上接收用户点击表单按钮的触发指令,以及与第一评论接收单元相连的第一评论发送单元,用于将所述表单按钮的触发指令及其关联的评论对象发送到云端服务器;和/或,a first comment receiving unit connected to the page transcoding unit, configured to receive a trigger instruction of a user clicking a form button on the comment bar, and a first comment sending unit connected to the first comment receiving unit, for The triggering instruction of the form button and its associated comment object are sent to the cloud server; and/or,
    与所述页面转码单元相连的第二评论接收单元,用于在所述评论栏上接收用户在表单文本框输入的文字信息,以及与第二评论接收单元相连的第二评论发送单元,用于将该表单文本框的文字信息及其关联的评论对象发送到云端服务器。a second comment receiving unit connected to the page transcoding unit, configured to receive, on the comment bar, text information input by a user in a form text box, and a second comment sending unit connected to the second comment receiving unit, Send the text information of the form text box and its associated comment object to the cloud server.
  22. 根据权利要求21的前端辅助转码的浏览装置,其特征在于,所述界面布局还包括评论栏,还包括:The apparatus for browsing the front-end assisted transcoding according to claim 21, wherein the interface layout further comprises a comment bar, further comprising:
    与所述页面转码单元相连的评论获取单元,用于从所述云端服务器获取评论对象;a comment obtaining unit connected to the page transcoding unit, configured to acquire a comment object from the cloud server;
    与所述评论获取单元相连的评论展示单元,用于当所述评论对象关联有表单按钮时,在所述评论栏上显示所述云端服务器统计的该表单按钮的被点击次数;当所述评论对象关联有表单文本框时,在所述评论栏上显示所述云端服务器存储的该表单文本框的文字信息。a comment display unit connected to the comment obtaining unit, configured to display, on the comment bar, the number of clicks of the form button counted by the cloud server when the comment object is associated with a form button; when the comment When the object is associated with the form text box, the text information of the form text box stored by the cloud server is displayed on the comment bar.
  23. 一种计算机程序,包括计算机可读代码,当所述计算机可读代码在 计算设备上运行时,导致所述计算设备执行根据权利要求1-11中的任一个所述的前端辅助转码的浏览方法。A computer program comprising computer readable code when said computer readable code is When the computing device is running, causing the computing device to perform a front end assisted transcoding browsing method according to any of claims 1-11.
  24. 一种计算机可读介质,其中存储了如权利要求23所述的计算机程序。 A computer readable medium storing the computer program of claim 23.
PCT/CN2017/094499 2016-08-30 2017-07-26 Method and device for browsing front-end auxiliary converted data WO2018040807A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610772139.7A CN106469189A (en) 2016-08-30 2016-08-30 A kind of front end assists browsing method and the device of transcoding
CN201610772139.7 2016-08-30

Publications (1)

Publication Number Publication Date
WO2018040807A1 true WO2018040807A1 (en) 2018-03-08

Family

ID=58230460

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/094499 WO2018040807A1 (en) 2016-08-30 2017-07-26 Method and device for browsing front-end auxiliary converted data

Country Status (2)

Country Link
CN (1) CN106469189A (en)
WO (1) WO2018040807A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106469189A (en) * 2016-08-30 2017-03-01 北京奇虎科技有限公司 A kind of front end assists browsing method and the device of transcoding
WO2019090735A1 (en) * 2017-11-10 2019-05-16 深圳市华阅文化传媒有限公司 Third-party webpage reading method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024028A (en) * 2010-11-22 2011-04-20 百度在线网络技术(北京)有限公司 Method and equipment for distinctly displaying main contents of webpage on mobile terminal
CN103327049A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 Rich content pushing method and system based on browser address bar
CN104090757A (en) * 2012-05-04 2014-10-08 北京奇虎科技有限公司 Method and device for displaying rich media information in browser
CN106469189A (en) * 2016-08-30 2017-03-01 北京奇虎科技有限公司 A kind of front end assists browsing method and the device of transcoding

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888395A (en) * 2009-05-13 2010-11-17 华为技术有限公司 Method for synchronizing data, widget terminal and server
CN102663126B (en) * 2012-04-23 2014-11-12 北京奇虎科技有限公司 Method and device for displaying webpage in mobile terminal
CN104536993B (en) * 2014-12-10 2018-03-20 北京奇虎科技有限公司 Collect the processing method of webpage, collect the processing unit and client of webpage
CN104881453B (en) * 2015-05-18 2019-06-28 百度在线网络技术(北京)有限公司 A kind of method and apparatus identifying type of webpage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024028A (en) * 2010-11-22 2011-04-20 百度在线网络技术(北京)有限公司 Method and equipment for distinctly displaying main contents of webpage on mobile terminal
CN103327049A (en) * 2012-03-22 2013-09-25 腾讯科技(深圳)有限公司 Rich content pushing method and system based on browser address bar
CN104090757A (en) * 2012-05-04 2014-10-08 北京奇虎科技有限公司 Method and device for displaying rich media information in browser
CN106469189A (en) * 2016-08-30 2017-03-01 北京奇虎科技有限公司 A kind of front end assists browsing method and the device of transcoding

Also Published As

Publication number Publication date
CN106469189A (en) 2017-03-01

Similar Documents

Publication Publication Date Title
US10380197B2 (en) Network searching method and network searching system
US9904936B2 (en) Method and apparatus for identifying elements of a webpage in different viewports of sizes
US9383912B2 (en) Data pasting method and apparatus
US8977653B1 (en) Modifying web pages to reduce retrieval latency
US8819028B2 (en) System and method for web content extraction
US9304979B2 (en) Authorized syndicated descriptions of linked web content displayed with links in user-generated content
US10445408B2 (en) Automatically identifying complementary digital fonts based on digital text in electronic documents
US20080244381A1 (en) Document processing for mobile devices
US9465789B1 (en) Apparatus and method for detecting spam
US20150227276A1 (en) Method and system for providing an interactive user guide on a webpage
CN110020312B (en) Method and device for extracting webpage text
CN105095441A (en) Information acquisition method and device
JPWO2019224891A1 (en) Classification device, classification method, generation method, classification program and generation program
CN109325197B (en) Method and device for extracting information
US9996506B2 (en) Identifying fonts using custom ligatures
CN107590288B (en) Method and device for extracting webpage image-text blocks
US9208142B2 (en) Analyzing documents corresponding to demographics
US8560943B2 (en) Displaying documents on mobile devices
WO2018040807A1 (en) Method and device for browsing front-end auxiliary converted data
US20090307578A1 (en) Top down chinese character display on a computing device
US9648381B2 (en) Method and system for managing display of web-based content on portable communication devices
US20130179832A1 (en) Method and apparatus for displaying suggestions to a user of a software application
US8892596B1 (en) Identifying related documents based on links in documents
US20150143213A1 (en) Method and apparatus for animating transitions between search results
TWI489370B (en) System and method for rendering widget

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: 17845109

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: 17845109

Country of ref document: EP

Kind code of ref document: A1