WO2014056352A1 - 一种网页转码方法、装置和系统 - Google Patents

一种网页转码方法、装置和系统 Download PDF

Info

Publication number
WO2014056352A1
WO2014056352A1 PCT/CN2013/081628 CN2013081628W WO2014056352A1 WO 2014056352 A1 WO2014056352 A1 WO 2014056352A1 CN 2013081628 W CN2013081628 W CN 2013081628W WO 2014056352 A1 WO2014056352 A1 WO 2014056352A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
picture information
transcoding
information
client
Prior art date
Application number
PCT/CN2013/081628
Other languages
English (en)
French (fr)
Inventor
周沅江
卢波
Original Assignee
北京奇虎科技有限公司
奇智软件(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京奇虎科技有限公司, 奇智软件(北京)有限公司 filed Critical 北京奇虎科技有限公司
Priority to US14/434,436 priority Critical patent/US20150293890A1/en
Publication of WO2014056352A1 publication Critical patent/WO2014056352A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • G06F40/143Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/149Adaptation of the text data for streaming purposes, e.g. Efficient XML Interchange [EXI] format
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/221Parsing markup language streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/12Protocol engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Definitions

  • the present invention relates to the field of Internet technologies, and in particular, to a webpage transcoding method, apparatus, and system. Background technique
  • the web page transcoding server allows the web page to have a better display effect on the small screen mobile device.
  • the web page is re-formatted (that is, transcoded), and a proprietary protocol is generally used to further compress the traffic.
  • the transcoding server implements the transcoding method, as shown in Figure 2, the specific transcoding process includes:
  • Step 1 The client sends a request for accessing a webpage to the transcoding server;
  • Step 2 After receiving the webpage access request, the transcoding server sends a request HTML (Hypertext Markup Language) document to the target website;
  • HTML Hypertext Markup Language
  • Step 3 The target website responds to the HTML document request
  • Step 4 The transcoding server parses the HTML document to obtain each sub-resource to be downloaded.
  • the sub-resources include, but are not limited to, a script, a picture, and a CSS (Cascading Style Sheet);
  • Step 5 The transcoding server downloads each sub-resource to the target website
  • Step 6 The transcoding server transcodes the downloaded sub-resources, and after the transcoding is completed, responds to the request of the client and sends the response to the client.
  • the transcoding server downloads each sub-resource obtained by parsing, and transcodes each sub-resource, that is, the entire transcoding process is a serial processing process.
  • Transcode operation is performed only after all sub-resources have been downloaded.
  • This serial processing method is also suitable for sub-resources that do not contain picture information and occupy a relatively large space.
  • sub-resources contain sub-resources such as picture information, which are time-consuming to download, the serial processing method will greatly affect the transcoding efficiency (because the picture data tends to be large). The longest time)
  • the content of the invention is also suitable for sub-resources that do not contain picture information and occupy a relatively large space.
  • the present invention has been made in order to provide a web page transcoding method, apparatus and system that overcomes the above problems or at least partially solves the above problems.
  • a webpage transcoding method including: acquiring a hypertext markup language HTML document from a target website based on a client request; parsing the HTML document, and detecting that the HTML document includes a picture When the information is received, the image processor is notified, and each sub-resource other than the picture information is downloaded to the target website;
  • a transcoding server including: a request processing unit, adapted to receive a webpage access request of a client, and obtain an HTML document from the target website based on the request;
  • An analysis processing unit configured to parse the HTML document, notify the image processor when the image information is included in the HTML document, and download each sub-resource except the picture information to the target website;
  • transcoding unit configured to transcode each downloaded sub-resource, and reserve a layout space for the picture information when transcoding, and send the content to the client after the transcoding is completed;
  • the picture response unit is configured to obtain the picture information in the HTML document that is fed back by the picture processor, and transcode the picture information and send the picture information to the client.
  • a picture processor including: a notification message receiving unit, adapted to receive a picture information acquisition notification sent by a transcoding server a picture obtaining unit, configured to check whether the picture information requested by the transcoding server is cached, and if yes, feed back the cached picture information to the transcoding server; otherwise, download the picture information to the target website and send feedback To the transcoding server;
  • the cache unit is adapted to locally cache the picture information downloaded on the target website.
  • a client including:
  • a webpage requesting unit configured to send a webpage access request message to the transcoding server
  • the first display unit is adapted to receive the sub-resources after the transcoding sent by the transcoding server and reserved the image layout space, and perform webpage display;
  • the second display unit is adapted to receive the transcoded picture information sent by the transcoding server, and display the picture information in the reserved picture layout space.
  • a web page transcoding system comprising: the transcoding server of the present invention, the image processor of the present invention, and the client of the present invention.
  • the technical solution of the invention separates the function of downloading picture information from the transcoding server, and is processed by the picture processor, and the transcoding server can perform web page layout without waiting for the picture information to be completely downloaded, so that the client can receive the network faster.
  • the page content can be started to be drawn; and after the image transcoding server obtains the image information sent by the image processor, the image information is transcoded and sent to the client.
  • the client only needs to draw the page.
  • the picture information can be updated, which greatly improves the response efficiency of the request. For the client, there is no need to send additional requests, and the network traffic generated by the request is not wasted.
  • the picture processor captures a caching mechanism, thereby reducing the number of times the target website is accessed and improving the processing capability of the system.
  • Figure 1 is a schematic diagram of the deployment of a web page transcoding server
  • FIG. 3 is a flowchart of a webpage transcoding method according to Embodiment 1 of the present invention.
  • FIG. 5 is a webpage for displaying a layout space in a client display according to Embodiment 1 of the present invention
  • FIG. 6 is a webpage of a picture information of a client at a reserved layout space according to Embodiment 1 of the present invention
  • FIG. 7 is a schematic structural diagram of a transcoding server according to Embodiment 2 of the present invention
  • FIG. 8 is a schematic structural diagram of a picture processor according to Embodiment 3 of the present invention
  • Schematic diagram of the client
  • FIG. 10 is a schematic structural diagram of a webpage transcoding system according to Embodiment 5 of the present invention.
  • FIG. 11 is a block diagram schematically showing a server for executing a method according to the present invention
  • Fig. 12 schematically shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • DETAILED DESCRIPTION OF EXEMPLARY EMBODIMENTS Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While the embodiments of the present invention have been shown in the drawings, the embodiments Rather, these embodiments are provided so that this disclosure will be more fully understood, and the scope of the disclosure may be fully disclosed to those skilled in the art. Embodiments provide a web page transcoding method, apparatus and system.
  • a picture processor For the processing of picture information, a picture processor is introduced, and the picture processor separates the picture downloading process from the transcoding server, so that the transcoding server does not wait for the picture. After the download is completed, the sub-resources other than the picture information that are downloaded and transcoded are sent to the client, so that the client first displays the sub-resources other than the picture information; the transcoding server receives the picture processor and sends the After the image information is transcoded, it is sent to the client, and the client updates the currently displayed webpage.
  • Embodiment 1 changes the traditional serial processing mode into a parallel processing mode, which saves the resources of the transcoding server and greatly improves the throughput and response capability of the transcoding server.
  • an embodiment of the present invention provides a webpage transcoding method, which specifically includes the following steps: Step S301: Acquire an HTML document from a target website based on a webpage access request of a client; Step S302, parse the HTML document, when detecting When the image information is included in the HTML document, the image processor is notified, and each sub-resource other than the picture information is downloaded to the target website.
  • the notification picture processor specifically refers to the image processor to obtain the picture information.
  • the process of the picture processor acquiring the picture information is a parallel process.
  • Step S303 transcoding each downloaded sub-resource, and reserving a layout space for the picture information when transcoding, and transmitting to the client after the transcoding is completed;
  • a layout space is reserved for the picture information during transcoding, which specifically includes:
  • the picture information reserves a layout space.
  • the ID of the reserved layout space is matched with the ID of the picture information
  • the image pending indicator is carried to indicate that the client maintains the current connection, thereby ensuring that the entire action of the method of the present invention is Completed in an HTTP response.
  • the client displays the local default picture in the reserved layout space.
  • the local default picture displayed by the client is a picture waiting to be downloaded to indicate that the picture is being downloaded.
  • Step S304 Acquire the picture information in the HTML document that is fed back by the picture processor, and transcode the picture information and send the picture information to the client.
  • the picture information fed back by the picture processor may be obtained by using one of the following two methods, and the embodiment of the present invention preferably uses the second method:
  • the image processor after receiving the notification, the image processor directly downloads the image information to the target website; and the second method, the image processor application cache technology, specifically:
  • the picture processor After receiving the notification, the picture processor checks whether the picture information is cached by itself, and if so, obtains the cached picture information and feeds back; otherwise, downloads the picture information to the target website, and obtains the downloaded picture information. And feedback.
  • the typesetting space reserved for the picture information is obtained according to the ID information of the picture information, and the picture information is transcoded based on the reserved typesetting space.
  • the webpage transcoding method provided by the embodiment of the present invention specifically includes:
  • Step 1 The client sends a request message for accessing a webpage to the transcoding server;
  • Step 2 After receiving the webpage access request, the transcoding server sends a request HTML to the target website.
  • Step 3 The target website responds to the HTML document request
  • Step 4 The transcoding server parses the HTML document, and obtains each sub-resource to be downloaded.
  • the sub-resource includes image information, notifies the image processor, and downloads other sub-resources other than the image information to the target website;
  • Step 5 After the transcoding server downloads each sub-resource except the picture information, performs a transcoding operation, and reserves a layout space for the picture information when transcoding;
  • a layout space is reserved for the picture information, and the specific implementation manner may be:
  • the parsed HTML document contains the size information of the image, and if so, reserves the layout space for the image information based on the size information; otherwise, the layout space is reserved for the image information based on the preset fixed size. At the same time, set the ID for the picture information and the reserved layout space, and make two
  • the size information of the image that has been obtained in this step is 200 X100, ie: ⁇ html>
  • the transcoding server considers that the image has been downloaded to the layout, and reserves 200 X100 space for the image and gives the image number (ie, the image ID).
  • Step 6 after the transcoding is completed, the transcoding server sends the sub-resources of the reserved layout space to the client;
  • the image-carrying indicator is also carried to indicate that the client continues to maintain the connection with the transcoding server, and waits to receive the picture information.
  • Step 7 When the client receives each sub-resource after transcoding, it performs local display.
  • the client when the client performs local display, the client is first displayed in the reserved layout space.
  • the default picture of the local area is shown in FIG. 5 .
  • the figure is only a common web page as an example. The scope of the embodiment of the present invention is not limited by the example web page.
  • Step 8 After receiving the notification, the image processor checks whether the picture information is cached by itself, and if yes, sends the cached picture information to the transcoding server; otherwise, downloads the picture information to the target website, and sends the downloaded picture information. To the transcoding server;
  • step 8 and step 5 are two steps of parallel processing.
  • Step 9 After receiving the picture information sent by the picture processor, the transcoding server transcodes the picture information, and sends the transcoded picture information to the client. At this point, the transcoding server completes the webpage access request to the client. the response to.
  • Step 10 After receiving the picture information sent by the transcoding server, the client updates the currently displayed picture in the pre-placement space.
  • the client after receiving the picture information, the client searches for the corresponding reserved layout space according to the ID of the picture information, and updates the picture at the reserved layout space to the corresponding picture information received.
  • the client after receiving the decoded picture information, the client replaces the picture information with the previous default picture according to the ID information, as shown in FIG. 6 .
  • the foregoing process is only for the case where the image information is included in each sub-resource to be downloaded, and the present invention is also applicable to the case where the image information is not included, that is, after the transcoding server parses the HTML document, when the HTML document is detected, the image information is not included.
  • the sub-resources are directly downloaded to the target website, the downloaded sub-resources are transcoded and sent to the client.
  • the method implemented by the present invention separates the picture information from the transcoding server and is processed by the picture processor.
  • the transcoding server can perform web page layout without waiting for the picture information to be completely downloaded, so that the client The response can be received faster, and the content of the page can be started.
  • the image transcoding server obtains the image information sent by the image processor, the image information is transcoded and sent to the client.
  • the client only needs to The image information in the drawn page can be updated, which greatly improves the response efficiency of the request. And the client does not need to send extra please The number of requests does not waste the network traffic generated by the request.
  • the image processor captures the caching mechanism, thereby reducing the number of times the target website is accessed and increasing the processing power of the system.
  • the embodiment of the present invention further provides a transcoding server, which specifically includes: a request processing unit 710, configured to receive a webpage access request of a client, and obtain an HTML document from the target website based on the request;
  • a request processing unit 710 configured to receive a webpage access request of a client, and obtain an HTML document from the target website based on the request;
  • the parsing processing unit 720 is adapted to parse the HTML document, and when the image information is included in the HTML document, notify the image processor, and download the sub-resources other than the image information to the target website;
  • the transcoding unit 730 is adapted to transcode the downloaded sub-resources, and reserve a layout space for the picture information during transcoding, and send the content to the client after the transcoding is completed;
  • the picture response unit 740 is adapted to obtain the picture information in the HTML document fed back by the picture processor, and transcode the picture information and send the picture information to the client.
  • the above is a basic functional module of the transcoding server provided by the embodiment of the present invention.
  • the following describes the specific technical details of the technical purpose of the present invention by using the transcoding server in the embodiment of the present invention.
  • the transcoding unit 730 is further adapted to: when sending the transcoded sub-resources to the client, carrying a picture to-be-transmitted indicator, to indicate that the client maintains the current connection.
  • the transcoding unit 730 is further adapted to detect whether the HTML document parsed by the parsing processing unit 720 includes size information of the image, and if yes, reserve a layout space for the image information based on the size information; otherwise, based on a preset fixed The size reserves a layout space for the picture information.
  • the transcoding unit 730 is further adapted to: when the layout space is reserved for the picture information, set an ID of the reserved typesetting space to match an ID of the picture information;
  • the picture response unit 740 is further adapted to: when the picture information is acquired, according to the figure
  • the ID information of the slice information acquires a layout space reserved for the image information, and transcodes the image information based on the reserved layout space.
  • the parsing processing unit 720 when detecting that the HTML document does not include the image information, directly downloads each sub-resource to the target website; and the transcoding unit 730 converts the downloaded sub-resources. After the code is sent to the client, the web page transcoding process is completed.
  • an embodiment of the present invention further provides an image processor, which specifically includes: a notification message receiving unit 810, configured to receive a picture information acquisition notification message sent by a transcoding server;
  • the image obtaining unit 820 is adapted to check whether the picture information requested by the transcoding server is cached, and if yes, feed back the cached picture information to the transcoding server; otherwise, download the picture information to the target website. Feedback to the transcoding server;
  • the cache unit 730 is adapted to locally cache the picture information downloaded at the target website.
  • an embodiment of the present invention further provides a client, including:
  • the webpage requesting unit 910 is adapted to send a webpage access request message to the transcoding server.
  • the first display unit 920 is adapted to receive the sub-resources after the transcoding of the transcoding server and the image layout space is reserved, and perform webpage display.
  • the second display unit 930 is adapted to receive the transcoded picture information sent by the transcoding server, and display the picture information in the reserved picture layout space.
  • the first display unit 920 is further adapted to: after receiving the sub-resources after the transcoding, It is detected whether the picture to be transmitted indicator is carried, and if so, the connection with the transcoding server is continued.
  • the first display unit 920 is further adapted to display a local default picture at the reserved picture layout space when performing webpage display.
  • the second display unit 930 is further adapted to: when receiving the transcoded picture information sent by the transcoding server, match the picture layout space corresponding to the picture information based on the ID information of the picture information, and at the picture layout space Display the received picture information.
  • a webpage transcoding system according to an embodiment of the present invention, the system includes the transcoding server according to the second embodiment, the image processor according to the third embodiment, and the client provided in the fourth embodiment.
  • the features of the embodiments and the embodiments of the present invention may be arbitrarily combined with each other without conflict.
  • 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 network search system in accordance with embodiments of the present invention.
  • the invention can also be implemented as a part or all of a device or device program (e.g., a computer program and a computer program product) for performing the methods described herein.
  • a program implementing the present 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 11 illustrates a server, such as an application server, that can implement the network search method in accordance with the present invention.
  • the server conventionally includes a processor 1110 and a computer program product or computer readable medium in the form of a memory 1120.
  • the memory 1120 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 1120 has a memory space 1130 for program code 1131 for performing any of the method steps described above.
  • the storage space 1130 for program code may include respective program codes 1131 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.
  • Such computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such a computer program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage section, a storage space, and the like arranged similarly to the storage 1120 in the server of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit comprises computer readable code 1 13 ⁇ , ie code readable by a processor such as 11 10 , which when executed by the server causes the server to perform each of the methods described above step.
  • an embodiment or “one or more embodiments” as used herein means that the particular features, structures, or characteristics described in connection with the embodiments are included in at least one embodiment of the invention.
  • the phrase “in one embodiment” herein does not necessarily refer to the same embodiment.
  • 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 in the claims.
  • the word “a” or “an” preceding a component does not exclude the presence of a plurality of such elements.
  • 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.
  • the use of the words first, second, and third does not indicate any order. These words can be interpreted as names.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种网页转码方法、装置和系统,所述方法包括:基于客户端请求,向目标网站获取超文本标记语言HTML文档;解析所述HTML文档,当检测到所述HTML文档中包含图片信息时,通知图片处理器,并向所述目标网站下载除图片信息外的各子资源;对下载的各子资源进行转码,且在转码时为所述图片信息预留排版空间,并在转码完成后发送至所述客户端;获取所述图片处理器反馈的所述HTML文档中的所述图片信息,并对所述图片信息进行转码后发送至所述客户端。本发明将下载图片信息的功能从转码服务器中独立出来,由图片处理器来处理,实现了转码过程从传统的串行处理方式到并行处理方式的转变,节约了转码服务器的资源,极大的提高了转码服务器的吞吐能力和响应能力。

Description

一种网页转码方法、 装置和系统
技术领域
本发明涉及互联网技术领域,尤其涉及一种网页转码方法、装置和系统。 背景技术
如图 1所示, 网页转码服务器是让网页在小屏幕移动设备具有较好的显 示效果, 把网页重新排版(也就是转码) , 一般会使用私有协议以便进一步 压缩流量。 目前, 转码服务器实现转码的方式, 如图 2所示, 具体转码流程 包括:
步骤 1 , 客户端向转码服务器发送访问某网页的请求;
步骤 2 ,转码服务器接收到网页访问请求后,向目标网站发送请求 HTML ( Hypertext Markup Language, 超文本标记语言 )文档;
步骤 3 , 目标网站响应 HTML文档请求;
步骤 4, 转码服务器解析 HTML文档, 获取待下载的各子资源; 其中, 各子资源包括但不限于为脚本、 图片和 CSS ( Cascading Style Sheet, 级联样 式表) ;
步骤 5 , 转码服务器向目标网站下载各子资源;
步骤 6, 转码服务器对下载的各子资源进行转码, 并在转码完成后, 作 为客户端的请求响应, 发送至客户端。
通过上述转码流程可以看出, 转码服务器在解析完 HTML文档后, 下 载解析得到的各子资源, 并对各子资源进行转码, 也就是说, 整个转码过程 是串行处理的过程, 只有所有子资源均下载完成后才进行转码操作。 这种串 行处理方式对于不包含图片信息这类占用空间比较大的各子资源来说,还比 较适用。 但是, 当子资源中包含有图片信息等这类下载比较耗时的子资源来 说, 釆用串行处理方式, 会极大的影响转码效率(因为图片数据往往比较大 耗时最长) 发明内容
鉴于上述问题,提出了本发明以便提供一种克服上述问题或者至少部分 地解决上述问题的网页转码方法、 装置和系统。
根据本发明的一个方面, 提供了一种网页转码方法, 包括: 基于客户端请求 , 向目标网站获取超文本标记语言 HTML文档; 解析所述 HTML文档, 当检测到所述 HTML文档中包含图片信息时, 通知图片处理器, 并向所述目标网站下载除图片信息外的各子资源;
对下载的各子资源进行转码, 且在转码时为所述图片信息预留排版空 间, 并在转码完成后发送至所述客户端;
获取所述图片处理器反馈的所述 HTML文档中的所述图片信息 , 并对 所述图片信息进行转码后发送至所述客户端。
根据本发明的另一个方面, 提供了一种转码服务器, 包括: 请求处理单元, 适于接收客户端的网页访问请求, 并基于该请求向目标 网站获取 HTML文档;
解析处理单元, 适于解析所述 HTML文档, 当检测到所述 HTML文档 中包含图片信息时, 通知图片处理器, 并向所述目标网站下载除图片信息外 的各子资源;
转码单元, 适于对下载的各子资源进行转码, 且在转码时为所述图片信 息预留排版空间, 并在转码完成后发送至所述客户端;
图片响应单元, 适于获取所述图片处理器反馈的所述 HTML文档中的 所述图片信息, 并对所述图片信息进行转码后发送至所述客户端。
根据本发明的又一个方面, 提供了一种图片处理器, 包括: 通知消息接收单元, 适于接收转码服务器发送的图片信息获取通知消 图片获取单元,适于检查自身是否緩存有转码服务器请求获取的图片信 息, 若是, 将緩存的所述图片信息反馈至向所述转码服务器; 否则, 向目标 网站下载所述图片信息后反馈至所述转码服务器;
緩存单元, 适于将在所述目标网站下载的图片信息进行本地緩存。
根据本发明的又一个方面, 提供了一种客户端, 包括:
网页请求单元, 适于向转码服务器发送网页访问请求消息;
第一显示单元,适于接收所述转码服务器发送的转码后且预留有图片排 版空间的各子资源, 进行网页显示;
第二显示单元, 适于接收所述转码服务器发送的转码后的图片信息, 并 将该图片信息在所述预留的图片排版空间处显示。
根据本发明的再一个方面, 提供了一种网页转码系统, 包括: 本发明 所述的转码服务器、 本发明所述的图像处理器、 以及本发明所述的客户端。
本发明有益效果为:
本发明所述技术方案将下载图片信息的功能从转码服务器中独立出来, 由图片处理器来处理,转码服务器无需等待图片信息完全下载即可进行网页 排版, 使得客户端可以更快接收到响应, 即可开始绘制页面内容; 而转码服 务器在获取到图片处理器发送的图片信息后,再将该图片信息转码后发送至 客户端,此时,客户端只需要对绘制的页面中的图片信息进行更新操作即可, 极大的提高了请求响应效率。 对于客户端来说, 也不需要发送额外的请求次 数, 不会浪费请求产生的网络流量。
另外, 本发明所述技术方案中, 图片处理器釆取緩存机制, 从而减少访 问目标网站的次数, 提高系统的处理能力。
上述说明仅是本发明技术方案的概述, 为了能够更清楚了解本发明的技 术手段, 而可依照说明书的内容予以实施, 并且为了让本发明的上述和其它 目的、 特征和优点能够更明显易懂, 以下特举本发明的具体实施方式。 附图说明
通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本 领域普通技术人员将变得清楚明了。 附图仅用于示出优选实施方式的目的, 而并不认为是对本发明的限制。 而且在整个附图中, 用相同的参考符号表示 相同的部件。 在附图中:
图 1为网页转码服务器的部署原理图;
图 2为现有技术中转码服务器的转码流程图;
图 3为本发明实施例一提供的一种网页转码方法的流程图;
图 4为本发明实施例一提供的又一网页转码方法的流程图;
图 5为本发明实施例一中客户端显示的预留有排版空间的网页; 图 6为本发明实施例一中客户端更新预留排版空间处的图片信息的网 页;
图 7为本发明实施例二提供的一种转码服务器的结构示意图; 图 8为本发明实施例三提供的一种图片处理器的结构示意图; 图 9为本发明实施例四提供的一种客户端的结构示意图;
图 10为本发明实施例五提供的一种网页转码系统的结构示意图; 图 11示意性地示出了用于执行根据本发明的方法的服务器的框图; 以及
图 12示意性地示出了用于保持或者携带实现根据本发明的方法的程 序代码的存储单元。 具体实施方式 下面将参照附图更详细地描述本公开的示例性实施例。 虽然附图中显示 了本公开的示例性实施例, 然而应当理解, 可以以各种形式实现本公开而不 应被这里阐述的实施例所限制。 相反, 提供这些实施例是为了能够更透彻地 理解本公开, 并且能够将本公开的范围完整的传达给本领域的技术人员。 实施例提供一种网页转码方法、 装置和系统。
本发明实施例所述方法、 装置和系统的基本原理为: 对于图片信息的处 理, 引入图片处理器, 该图片处理器把图片下载过程从转码服务器中独立出 来, 使得转码服务器不等待图片下载完成, 就将下载并转码后的除图片信息 外的各子资源,发送给客户端,使得客户端先显示除图片信息外的各子资源; 转码服务器当接收到图片处理器发送的图片信息后,在将其转码后发送至客 户端, 客户端再对当前显示的网页进行资源更新。
可见 , 本发明实施例将传统的串行处理方式改变成为并行处理方式, 节约了转码服务器的资源, 极大的提高了转码服务器的吞吐能力和响应能 力。 实施例一
如图 3所示,本发明实施例提供一种网页转码方法,具体包括如下步骤: 步骤 S301 ,基于客户端的网页访问请求, 向目标网站获取 HTML文档; 步骤 S302 , 解析 HTML文档, 当检测到所述 HTML文档中包含图片信 息时, 通知图片处理器, 并向所述目标网站下载除图片信息外的各子资源; 该步骤中,通知图片处理器具体是指通知图片处理器获取图片信息并反 馈;
该步骤中, 下载除图片信息外的各子资源, 与通知图片处理器后, 图片 处理器获取图片信息的过程是一个并行的处理过程。
步骤 S303 , 对下载的各子资源进行转码, 且在转码时为所述图片信息 预留排版空间, 并在转码完成后发送至所述客户端;
该步骤中, 在转码时为图片信息预留排版空间, 具体包括:
检测解析的 HTML文档中是否包含图片的尺寸信息, 若是, 基于所述 尺寸信息为所述图片信息预留排版空间; 否则, 基于预先设定的固定尺寸为 所述图片信息预留排版空间。
进一步地, 该步骤中, 在为图片信息预留排版空间时, 设置预留排版空 间的 ID与图片信息的 ID相匹配;
进一步地, 该步骤中, 在向客户端发送转码后的各子资源时, 携带图片 待传指示符, 用以指示所述客户端保持当前连接, 进而保证本发明所述方法 的整个动作在一个 HTTP响应里完成。
进一步地, 该步骤中, 客户端接收到转码后的各资源后, 在所述预留排 版空间处显示本地默认图片。 优选地, 客户端显示的本地默认图片为指示图 片正在下载中的等待下载标识图片。
步骤 S304, 获取所述图片处理器反馈的所述 HTML文档中的所述图片 信息, 并对所述图片信息进行转码后发送至所述客户端。
该步骤中, 图片处理器反馈的图片信息可以但不限于釆用如下两种方式 之一获取, 本发明实施例优选地釆用方式二:
方式一,图片处理器在接收到通知后,直接向目标网站下载该图片信息; 方式二, 图片处理器应用緩存技术, 具体为:
图片处理器在接收到通知后,检查自身是否緩存有所述图片信息,若是, 获取緩存的所述图片信息并反馈; 否则, 向目标网站下载所述图片信息, 并 获取下载的所述图片信息并反馈。
进一步地, 该步骤中, 在获取到所述图片信息时, 具体根据图片信息的 ID信息, 获取为该图片信息预留的排版空间, 并基于预留的排版空间对图 片信息进行转码。 下面结合附图 4至 6, 对本发明实施例所述方法进一步详细阐述。
如图 4所示, 本发明实施例提供的网页转码方法, 具体包括:
步骤 1 , 客户端向转码服务器发送访问某网页的请求消息;
步骤 2 ,转码服务器接收到网页访问请求后,向目标网站发送请求 HTML 文档;
步骤 3 , 目标网站响应 HTML文档请求;
步骤 4, 转码服务器解析 HTML文档, 获取待下载的各子资源, 当子资 源中包含图片信息时, 通知图片处理器, 并向目标网站下载除图片信息外的 其他各子资源;
步骤 5,转码服务器下载到除图片信息外的各子资源后,进行转码操作, 并在转码时, 为图片信息预留排版空间;
该步骤中, 为图片信息预留排版空间, 具体实现方式可以为:
检测解析的 HTML文档中是否包含图片的尺寸信息, 若是, 基于该尺 寸信息为图片信息预留排版空间; 否则, 基于预先设定的固定尺寸为图片信 息预留排版空间。 同时, 为图片信息和预留的排版空间设置 ID, 并使两个
ID关联匹配。
示例, 殳该步骤中已经获取到了图片的尺寸信息为 200 X100, 即: <html>
...
<img src="http://images. example.com/sample.jpg" width="200"
height="100" />
</html>
转码服务器在排版时就认为已经下载到图片,预留 200 X100的空间给该 图片并给图片编号 (即图片 ID ) 。
步骤 6,转码服务器在转码完成后,将预留排版空间的各子资源发送至客 户端;
该步骤中, 在向客户端发送转码后的各子资源时, 还携带有图片待传指 示符, 用以指示客户端继续保持与转码服务器的连接, 等待接收图片信息。
步骤 7, 客户端接收转码后的各子资源时, 进行本地显示。
该步骤中, 客户端进行本地显示时, 先在预留的排版空间处显示客户端 本地的默认图片, 效果图如图 5所示, 当然, 该附图仅仅是以一个常用的网 页为例进行说明, 本发明实施例的范围并不受该举例网页的限制。
步骤 8 , 图片处理器接收到通知后,检查自身是否緩存有所述图片信息, 若是, 将緩存的图片信息发送至转码服务器; 否则, 向目标网站下载图片信 息, 并将下载的图片信息发送至转码服务器;
需要说明的是, 该步骤 8与步骤 5为并行处理的两个步骤。
步骤 9, 转码服务器接收到图片处理器发送的图片信息后, 对该图片信 息进行转码, 并将转码后的图片信息发送至客户端; 至此, 转码服务器完成 对客户端的网页访问请求的响应。
步骤 10,客户端接收到转码服务器发送的图片信息后,对当前显示的预 留排版空间处的图片进行更新。
确切地说, 该步骤中,客户端接收到图片信息后,根据该图片信息的 ID 查找对应的预留排版空间, 并将该预留排版空间处的图片更新为接收到的对 应的图片信息。
具体地, 客户端收到解码后的图片信息后, 再根据 ID信息把该图片信 息替换之前默认的图片, 具体效果图, 如图 6所示。
当然, 上述流程只是针对待下载的各子资源中包含图片信息的情况, 本 发明同样适用于不包含图片信息的情况, 即转码服务器解析 HTML文档后, 当检测到 HTML文档中不包含图片信息时, 直接向目标网站下载各子资源, 并对下载后的各子资源进行转码后发送至客户端。
综上所述, 可见本发明实施所述方法, 将图片信息下载从转码服务器中 独立出来, 由图片处理器处理来, 转码服务器无需等待图片信息完全下载即 可进行网页排版,使得客户端可以更快接收到响应,即可开始绘制页面内容; 而转码服务器在获取到图片处理器发送的图片信息后,再将该图片信息转码 后发送至客户端, 此时, 客户端只需要对绘制的页面中的图片信息进行更新 操作即可, 极大的提高了请求响应效率。 并且客户端也不需要发送额外的请 求次数, 不会浪费请求产生的网络流量。
另外, 本发明实施例为了进一步的提高响应效率, 图片处理器釆取緩存 机制, 从而减少访问目标网站的次数, 提高速度增加系统的处理能力。 实施例二
如图 7所示, 本发明实施例还提供一种转码服务器, 具体包括: 请求处理单元 710, 适于接收客户端的网页访问请求, 并基于该请求向 目标网站获取 HTML文档;
解析处理单元 720, 适于解析所述 HTML文档, 当检测到所述 HTML 文档中包含图片信息时, 通知图片处理器, 并向所述目标网站下载除图片信 息外的各子资源;
转码单元 730, 适于对下载的各子资源进行转码, 且在转码时为所述图 片信息预留排版空间, 并在转码完成后发送至所述客户端;
图片响应单元 740,适于获取所述图片处理器反馈的所述 HTML文档中 的所述图片信息, 并对所述图片信息进行转码后发送至所述客户端。
上述为本发明实施例提供的转码服务器的基本功能模块, 下面通过对各 功能模块进行进一步功能阐述, 来说明本发明实施例转码服务器实现本发明 技术目的具体技术细节。
具体地, 转码单元 730, 进一步适于在向所述客户端发送转码后的各子 资源时, 携带图片待传指示符, 用以指示所述客户端保持当前连接。
转码单元 730,进一步适于检测解析处理单元 720解析的 HTML文档中 是否包含图片的尺寸信息, 若是, 基于所述尺寸信息为所述图片信息预留排 版空间; 否则, 基于预先设定的固定尺寸为所述图片信息预留排版空间。
转码单元 730, 进一步适于在为所述图片信息预留排版空间时, 设置预 留排版空间的 ID与图片信息的 ID相匹配;
图片响应单元 740, 进一步适于在获取到所述图片信息时, 根据所述图 片信息的 ID信息, 获取为该图片信息预留的排版空间, 并基于预留的排版 空间对所述图片信息进行转码。
进一步地, 本发明实施例中, 解析处理单元 720, 当检测到 HTML文档 中不包含图片信息时, 直接向目标网站下载各子资源; 而转码单元 730, 则 对下载的各子资源进行转码后发送至客户端, 完成网页转码过程。 实施例三
如图 8所示, 本发明实施例还提供一种图像处理器, 具体包括: 通知消息接收单元 810, 适于接收转码服务器发送的图片信息获取通知 消息;
图片获取单元 820, 适于检查自身是否緩存有转码服务器请求获取的图 片信息, 若是, 将緩存的所述图片信息反馈至向所述转码服务器; 否则, 向 目标网站下载所述图片信息后反馈至所述转码服务器;
緩存单元 730, 适于将在所述目标网站下载的图片信息进行本地緩存。 实施例四
如图 9所示, 本发明实施例还提供一种客户端, 包括:
网页请求单元 910, 适于向转码服务器发送网页访问请求消息; 第一显示单元 920, 适于接收转码服务器发送的转码后且预留有图片排 版空间的各子资源, 进行网页显示;
第二显示单元 930, 适于接收转码服务器发送的转码后的图片信息, 并 将该图片信息在所述预留的图片排版空间处显示。
上述为本发明实施例提供的客户端的基本功能模块, 下面通过对各功能 模块进行进一步功能阐述, 来说明本发明实施例转码服务器实现本发明技术 目的具体技术细节。
具体地,第一显示单元 920,进一步适于在接收到转码后的各子资源后, 检测是否携带有图片待传指示符, 若是, 则继续保持与转码服务器的连接。 优选地, 第一显示单元 920, 进一步适于在进行网页显示时, 在预留的 图片排版空间处显示本地默认图片。
第二显示单元 930, 进一步适于在接收到转码服务器发送的转码图片信 息时, 基于所述图片信息的 ID信息, 匹配该图片信息对应的图片排版空间, 并在所述图片排版空间处显示接收到的图片信息。
实施例五
如图 10所示, 为本发明实施例提供的一种网页转码系统, 该系统包括 实施例二所述的转码服务器、 实施例三所述的图像处理器和实施例四提供的 客户端。 需要说明的是, 在不冲突的情况下, 本发明中的实施例及实施例中的特 征可以相互任意组合。
本发明的各个部件实施例可以以硬件实现, 或者以在一个或者多个 处理器上运行的软件模块实现, 或者以它们的组合实现。 本领域的技术 人员应当理解, 可以在实践中使用微处理器或者数字信号处理器 (DSP ) 来实现根据本发明实施例的网络搜索系统中的一些或者全部部件的一些 或者全部功能。 本发明还可以实现为用于执行这里所描述的方法的一部 分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。 这样的实现本发明的程序可以存储在计算机可读介质上, 或者可以具有 一个或者多个信号的形式。 这样的信号可以从因特网网站上下载得到, 或者在载体信号上提供, 或者以任何其他形式提供。
例如, 图 11示出了可以实现根据本发明的网络搜索方法的服务器, 例如应用服务器。 该服务器传统上包括处理器 1110和以存储器 1120形 式的计算机程序产品或者计算机可读介质。存储器 1120可以是诸如闪存、 EEPROM (电可擦除可编程只读存储器) 、 EPROM、 硬盘或者 ROM之 类的电子存储器。 存储器 1120具有用于执行上述方法中的任何方法步骤 的程序代码 1131的存储空间 1130。例如,用于程序代码的存储空间 1130 可以包括分别用于实现上面的方法中的各种步骤的各个程序代码 1131。 这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这 一个或者多个计算机程序产品中。 这些计算机程序产品包括诸如硬盘, 紧致盘 (CD ) 、 存储卡或者软盘之类的程序代码载体。 这样的计算机程 序产品通常为如参考图 12所述的便携式或者固定存储单元。 该存储单元 可以具有与图 11 的服务器中的存储器 1120类似布置的存储段、 存储空 间等。 程序代码可以例如以适当形式进行压缩。 通常, 存储单元包括计 算机可读代码 1 13 Γ , 即可以由例如诸如 11 10之类的处理器读取的代码, 这些代码当由服务器运行时, 导致该服务器执行上面所描述的方法中的 各个步骤。
本文中所称的 "一个实施例"、 "实施例"或者"一个或者多个实施例 "意 味着, 结合实施例描述的特定特征、 结构或者特性包括在本发明的至少 一个实施例中。 此外, 请注意, 这里"在一个实施例中"的词语例子不一定 全指同一个实施例。
在此处所提供的说明书中, 说明了大量具体细节。 然而, 能够理解, 中, 并未详细示出公知的方法、 结构和技术, 以便不模糊对本说明书的 理解。
应该注意的是上述实施例对本发明进行说明而不是对本发明进行限 制, 并且本领域技术人员在不脱离所附权利要求的范围的情况下可设计 出替换实施例。 在权利要求中, 不应将位于括号之间的任何参考符号构 造成对权利要求的限制。单词"包含"不排除存在未列在权利要求中的元件 或步骤。 位于元件之前的单词 "一"或"一个"不排除存在多个这样的元件。 本发明可以借助于包括有若干不同元件的硬件以及借助于适当编程的计 算机来实现。 在列举了若干装置的单元权利要求中, 这些装置中的若干 个可以是通过同一个硬件项来具体体现。 单词第一、 第二、 以及第三等 的使用不表示任何顺序。 可将这些单词解释为名称。
此外, 还应当注意, 本说明书中使用的语言主要是为了可读性和教 导的目的而选择的, 而不是为了解释或者限定本发明的主题而选择的。 因此, 在不偏离所附权利要求书的范围和精神的情况下, 对于本技术领 域的普通技术人员来说许多修改和变更都是显而易见的。 对于本发明的 范围, 对本发明所做的公开是说明性的, 而非限制性的, 本发明的范围 由所附权利要求书限定。

Claims

权 利 要 求
1、 一种网页转码方法, 包括:
基于客户端请求 , 向目标网站获取超文本标记语言 HTML文档; 解析所述 HTML文档, 当检测到所述 HTML文档中包含图片信息时, 通知图片处理器, 并向所述目标网站下载除图片信息外的各子资源;
对下载的各子资源进行转码, 且在转码时为所述图片信息预留排版空 间, 并在转码完成后发送至所述客户端;
获取所述图片处理器反馈的所述 HTML文档中的所述图片信息 , 并对 所述图片信息进行转码后发送至所述客户端。
2、 如权利要求 1所述的方法, 还包括:
所述在向客户端发送转码后的各子资源时, 携带图片待传指示符; 所述客户端在接收到转码后的子资源后, 本地显示所述子资源, 并检测 是否携带有图片待传指示符, 若是, 继续保持当前连接关系, 等待接收图片 信息。
3、 如权利要求 1或 2所述的方法, 所述在转码时为图片信息预留排版 空间, 进一步包括:
检测解析的 HTML文档中是否包含图片的尺寸信息, 若是, 基于所述 尺寸信息为所述图片信息预留排版空间; 否则, 基于预先设定的固定尺寸为 所述图片信息预留排版空间。
4、 如权利要求 1或 2所述的方法, 还包括:
所述图片处理器在接收到通知后, 检查自身是否緩存有所述图片信息, 若是,反馈緩存的所述图片信息; 否则, 向所述目标网站下载所述图片信息, 并反馈下载的所述图片信息。
5、 如权利要求 1或 2所述的方法, 还包括:
所述客户端接收到转码后的各资源后,在所述预留排版空间处显示本地 默认图片。
6、 如权利要求 5所述的方法, 还包括: 所述客户端显示的本地默认图 片为指示图片正在下载中的等待下载标识图片。
7、 如权利要求 1或 2所述的方法, 还包括:
所述在为所述图片信息预留排版空间时, 设置预留排版空间的 ID与图 片信息的 ID相匹配;
以及, 所述在获取到所述图片信息时, 根据所述图片信息的 ID信息, 获取为该图片信息预留的排版空间, 并基于预留的排版空间对所述图片信息 进行转码。
8、 如权利要求 7所述的方法, 还包括:
所述客户端在接收到转码后的图片信息后, 基于所述图片信息的 ID信 息, 匹配该图片信息对应的预留排版空间, 并在所述预留排版空间处显示接 收到的图片信息。
9、 如权利要求 1或 2所述的方法, 还包括:
当检测到所述 HTML文档中不包含图片信息时, 直接向目标网站下载 各子资源, 并对下载后的各子资源进行转码后发送至所述客户端。
10、 一种转码服务器, 包括:
请求处理单元, 适于接收客户端的网页访问请求, 并基于该请求向目标 网站获取 HTML文档;
解析处理单元, 适于解析所述 HTML文档, 当检测到所述 HTML文档 中包含图片信息时, 通知图片处理器, 并向所述目标网站下载除图片信息外 的各子资源;
转码单元, 适于对下载的各子资源进行转码, 且在转码时为所述图片信 息预留排版空间, 并在转码完成后发送至所述客户端;
图片响应单元, 适于获取所述图片处理器反馈的所述 HTML文档中的 所述图片信息, 并对所述图片信息进行转码后发送至所述客户端。
11、 如权利要求 10所述的转码服务器, 其特征在于, 所述转码单元, 进一步适于在向所述客户端发送转码后的各子资源时, 携带图片待传指示 符, 用以指示所述客户端保持当前连接。
12、 如权利要求 10或 11所述的转码服务器, 其特征在于, 所述转码单 元, 进一步适于检测所述解析处理单元解析的 HTML文档中是否包含图片 的尺寸信息,若是,基于所述尺寸信息为所述图片信息预留排版空间; 否贝 ij , 基于预先设定的固定尺寸为所述图片信息预留排版空间。
13、 如权利要求 10或 11所述的转码服务器, 其特征在于,
所述转码单元, 进一步适于在为所述图片信息预留排版空间时, 设置预 留排版空间的 ID与图片信息的 ID相匹配;
所述图片响应单元, 进一步适于在获取到所述图片信息时, 根据所述图 片信息的 ID信息, 获取为该图片信息预留的排版空间, 并基于预留的排版 空间对所述图片信息进行转码。
14、 如权利要求 10或 11所述的转码服务器, 其特征在于,
所述解析处理单元, 进一步适于当检测到所述 HTML文档中不包含图 片信息时, 直接向目标网站下载各子资源;
所述转码单元,进一步适于对下载的各子资源进行转码后发送至所述客 户端。
15、 一种图像处理器, 包括:
通知消息接收单元, 适于接收转码服务器发送的图片信息获取通知消 息;
图片获取单元,适于检查自身是否緩存有转码服务器请求获取的图片信 息, 若是, 将緩存的所述图片信息反馈至向所述转码服务器; 否则, 向目标 网站下载所述图片信息后反馈至所述转码服务器;
緩存单元, 适于将在所述目标网站下载的图片信息进行本地緩存。
16、 一种客户端, 包括: 网页请求单元, 适于向转码服务器发送网页访问请求消息;
第一显示单元,适于接收所述转码服务器发送的转码后且预留有图片排 版空间的各子资源, 进行网页显示;
第二显示单元, 适于接收所述转码服务器发送的转码后的图片信息, 并 将该图片信息在所述预留的图片排版空间处显示。
17、 如权利要求 16所述的客户端, 其特征在于,
所述第一显示单元, 进一步适于在接收到转码后的各子资源后, 检测是 否携带有图片待传指示符, 若是, 则继续保持与所述转码服务器的连接。
18、 如权利要求 16所述的客户端, 其特征在于, 所述第一显示单元, 进一步适于在进行网页显示时,在所述预留的图片排版空间处显示本地默认 图片。
19、 如权利要求 16至 18任一项所述的客户端, 其特征在于, 所述第二 显示单元, 进一步适于在接收到所述转码服务器发送的转码图片信息时, 基 于所述图片信息的 ID信息, 匹配该图片信息对应的图片排版空间, 并在所 述图片排版空间处显示接收到的图片信息。
20、 一种网页转码系统, 包括: 如权利要求 10至 14任一项所述的转码 服务器、 如权利要求 15所述的图像处理器、 以及如权利要求 16至 19任一 项所述的客户端。
21、 一种计算机程序, 包括计算机可读代码, 当所述计算机可读代 码在服务器上运行时,导致所述服务器执行根据权利要求 1-9中的任一个 所述的网页转码方法。
22、 一种计算机可读介质, 其中存储了如权利要求 21所述的计算机 程序。
PCT/CN2013/081628 2012-10-12 2013-08-16 一种网页转码方法、装置和系统 WO2014056352A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/434,436 US20150293890A1 (en) 2012-10-12 2013-08-16 Method, device and system for webpage transcoding

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210387245.5A CN102902802B (zh) 2012-10-12 2012-10-12 一种网页转码方法和装置
CN201210387245.5 2012-10-12

Publications (1)

Publication Number Publication Date
WO2014056352A1 true WO2014056352A1 (zh) 2014-04-17

Family

ID=47575034

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/081628 WO2014056352A1 (zh) 2012-10-12 2013-08-16 一种网页转码方法、装置和系统

Country Status (3)

Country Link
US (1) US20150293890A1 (zh)
CN (1) CN102902802B (zh)
WO (1) WO2014056352A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10942703B2 (en) 2015-12-23 2021-03-09 Apple Inc. Proactive assistance based on dialog communication between devices

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102902802B (zh) * 2012-10-12 2016-06-01 北京奇虎科技有限公司 一种网页转码方法和装置
US8955027B1 (en) 2013-11-21 2015-02-10 Google Inc. Transcoding media streams using subchunking
CN105468636B (zh) * 2014-09-05 2019-03-26 北京神州泰岳软件股份有限公司 一种动态网页的图片加载方法、装置和系统
CN105528369B (zh) * 2014-09-30 2019-03-15 优视科技有限公司 网页转码方法、装置以及服务器
CN105512160B (zh) * 2014-12-31 2017-06-16 广州神马移动信息科技有限公司 网页转码方法、网页转码装置及网页浏览系统
CN107346306A (zh) * 2016-05-04 2017-11-14 北京京东尚科信息技术有限公司 网页描述方法和装置
CN108616552B (zh) * 2016-12-13 2021-06-11 腾讯科技(深圳)有限公司 网页访问方法、装置和系统
CN110795195B (zh) * 2019-10-31 2023-09-26 百度在线网络技术(北京)有限公司 一种网页渲染方法、装置、电子设备及存储介质
CN112035405B (zh) * 2020-08-29 2023-10-13 平安科技(深圳)有限公司 一种文档转码方法、装置、调度服务器和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060253421A1 (en) * 2005-05-06 2006-11-09 Fang Chen Method and product for searching title metadata based on user preferences
CN101140574A (zh) * 2006-09-05 2008-03-12 腾讯科技(深圳)有限公司 一种网页内容展现方法和一种客户端装置
CN102650990A (zh) * 2011-02-24 2012-08-29 中兴通讯股份有限公司 终端网页显示方法及系统
CN102902802A (zh) * 2012-10-12 2013-01-30 北京奇虎科技有限公司 一种网页转码方法和装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6510469B1 (en) * 1998-05-13 2003-01-21 Compaq Information Technologies Group,L.P. Method and apparatus for providing accelerated content delivery over a network
EP1148689B1 (en) * 2000-04-18 2006-06-14 Motorola, Inc. Downloading web pages
WO2002059761A1 (en) * 2001-01-26 2002-08-01 Pictureiq Corporation Method and apparatus for dynamic optimization and network delivery of multimedia content
US8103742B1 (en) * 2003-11-24 2012-01-24 Amazon Technologies, Inc. Deferred and off-loaded rendering of selected portions of web pages to incorporate late-arriving service data
US7502806B2 (en) * 2004-08-23 2009-03-10 Quiro Holdings, Inc. Method and system for providing image rich web pages from a computer system over a network
US8392832B2 (en) * 2010-02-05 2013-03-05 Research In Motion Limited Display placeholders for rich media content
CN102457613B (zh) * 2010-10-27 2014-06-04 腾讯科技(深圳)有限公司 移动通信终端上网页显示方法及系统
CN102624761A (zh) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 一种获取图文信息的装置、系统及方法
CN102346782A (zh) * 2011-10-25 2012-02-08 中兴通讯股份有限公司 在用户终端浏览器上按需显示图片的方法及装置
US20130151937A1 (en) * 2011-12-08 2013-06-13 Google Inc. Selective image loading in mobile browsers
US8280197B1 (en) * 2012-02-29 2012-10-02 Google Inc. Managed background loading of image resources in resource-constrained devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060253421A1 (en) * 2005-05-06 2006-11-09 Fang Chen Method and product for searching title metadata based on user preferences
CN101140574A (zh) * 2006-09-05 2008-03-12 腾讯科技(深圳)有限公司 一种网页内容展现方法和一种客户端装置
CN102650990A (zh) * 2011-02-24 2012-08-29 中兴通讯股份有限公司 终端网页显示方法及系统
CN102902802A (zh) * 2012-10-12 2013-01-30 北京奇虎科技有限公司 一种网页转码方法和装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10942703B2 (en) 2015-12-23 2021-03-09 Apple Inc. Proactive assistance based on dialog communication between devices

Also Published As

Publication number Publication date
CN102902802A (zh) 2013-01-30
US20150293890A1 (en) 2015-10-15
CN102902802B (zh) 2016-06-01

Similar Documents

Publication Publication Date Title
WO2014056352A1 (zh) 一种网页转码方法、装置和系统
WO2020199751A1 (zh) 用于加载页面图片的方法、装置和电子设备
JP5022301B2 (ja) プロキシサーバおよび通信中継プログラム、並びに通信中継方法
JP6073366B2 (ja) アプリケーション駆動のcdnのプリキャッシング
US9454540B2 (en) Systems and methods for sharing files among multiple terminals
US9571556B2 (en) Browser kernel adaptation method and browser therefor
CN106776761B (zh) 一种移动浏览器渲染网页的方法及装置
RU2689439C2 (ru) Улучшение производительности веб-доступа
US10515142B2 (en) Method and apparatus for extracting webpage information
CN107040584B (zh) 客户端下载图片的方法及装置
JP2015509229A5 (zh)
WO2012162275A2 (en) Improved loading of web resources
WO2011005591A2 (en) Systems and methods for updating a database for providing access to various files across a network
US10158691B2 (en) Method and apparatus for providing network resources at intermediary server
US20150058452A1 (en) Video loading method, device and system of mobile terminal
US11700318B2 (en) Front-end optimization in a content delivery network (CDN)
WO2021082600A1 (zh) 网页图像的监控方法、装置、电子设备及计算机可读存储介质
US10218796B2 (en) Communication apparatus and control method for service discovery processing
CN114822744A (zh) 医疗就诊数据共享方法、系统、计算设备及存储介质
WO2014194733A1 (en) Method and device for obtaining contents of page, application apparatus and mobile terminal
CN104023046A (zh) 移动终端识别方法和装置
WO2015154682A1 (zh) 一种网络请求处理方法、网络服务器和网络系统
CN103905496A (zh) 一种图片下载方法及装置
US9516111B2 (en) Communication apparatus, communication method, and computer program product
US20160323352A1 (en) Web proxy

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

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 14434436

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13845514

Country of ref document: EP

Kind code of ref document: A1