CN106503111A - Webpage code-transferring method, device and client terminal - Google Patents

Webpage code-transferring method, device and client terminal Download PDF

Info

Publication number
CN106503111A
CN106503111A CN201610906406.5A CN201610906406A CN106503111A CN 106503111 A CN106503111 A CN 106503111A CN 201610906406 A CN201610906406 A CN 201610906406A CN 106503111 A CN106503111 A CN 106503111A
Authority
CN
China
Prior art keywords
transcoding
data
page info
configuration information
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610906406.5A
Other languages
Chinese (zh)
Other versions
CN106503111B (en
Inventor
江锐洪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Guangzhou Dongjing Computer Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dongjing Computer Technology Co Ltd filed Critical Guangzhou Dongjing Computer Technology Co Ltd
Priority to CN201610906406.5A priority Critical patent/CN106503111B/en
Publication of CN106503111A publication Critical patent/CN106503111A/en
Application granted granted Critical
Publication of CN106503111B publication Critical patent/CN106503111B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • 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/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Landscapes

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

Abstract

The embodiment of the present invention provides webpage code-transferring method, device and client terminal.In an example, methods described includes:Page info is sent to Website server and obtains request, to obtain the page info of target web;Transcoding configuration information is sent to a content distributing network and obtains request, to obtain the corresponding transcoding configuration information of the target web;Receive the transcoding configuration information that the page info and the content distributing network of the Website server return are returned;The page info is carried out transcoding by the page info and transcoding configuration information according to receiving;And by transcoding after data shown by the browser of client terminal.The efficiency of webpage transcoding can be improved.

Description

Webpage code-transferring method, device and client terminal
Technical field
The present invention relates to mobile internet technical field, in particular to a kind of webpage code-transferring method, device and client Terminal.
Background technology
With the extensive growth of mobile subscriber, webpage is browsed on the mobile device of the small screen such as mobile phone and be increasingly becoming people The major way surfed the Net.In order that the webpage for being originally designed as checking on computers has when mobile phone preferably Consumer's Experience, Ge great Internet firms all release the function of page transcoding.Current transcoding framework is broadly divided into service end transcoding With two class of client JavaScript transcoding.The service end transcoding mode is sent out data after transcoding by middleware server Give client to be shown.When the same period that has many consumers same website is accessed, transcoding server will be received very Multi-request, may trigger the attack protection mechanism of original web server, cause transcoding server to be shielded by original web, it is impossible to carry out Transcoding, finally returns that the wrong page to client.Client JavaScript transcoding will be inserted by middleware server Page data after JavaScript scripts returns to client and is parsed and shown.However, passing through JavaScript scripts Carry out transcoding, due to JavaScript characteristic of speech sounds and its can only single thread execute, cause transcoding execution efficiency very low.
Content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of webpage code-transferring method, device and client terminal.
The embodiment of the present invention provides a kind of webpage code-transferring method, is applied to client terminal, and the client terminal is taken with website Business device and middleware server communication connection, the middleware server include that multiple content distributing networks, the method include:
Page info is sent to the Website server and obtains request, to obtain the page info of target web;
Transcoding configuration information is sent to a content distributing network and obtains request, to obtain the corresponding transcoding of the target web Configuration information;
The transcoding of the page info and content distributing network return that receive the Website server return matches somebody with somebody confidence Breath;
The page info is carried out transcoding by the page info and transcoding configuration information according to receiving;And
Data after by transcoding are shown by the browser of client terminal.
Preferably, the transcoding configuration information includes extracting configuration information and renders template, the page that the basis is received Surface information and transcoding configuration information include the step of the page info is carried out transcoding:
The data that configuration information extracts the specified format in the page info are extracted according to described;
The data of the specified format are carried out rendering the data that obtain after the transcoding with the template that renders.
Preferably, the step according to the data for extracting the specified format in the configuration information extraction page info Suddenly include:Call integrated information extraction engine in browser by the page info according to the extraction configuration information from described The data of specified format are extracted in the page info that server is returned.
Preferably, described information extraction engine opens the page info that at least two threads are returned from the Website server The middle data for extracting the specified format.
Preferably, the data by the specified format with described render template and carry out rendering obtain after the transcoding The step of data, includes:Integrated template rendering engine in browser is called by the data of the specified format and described renders mould Plate is rendered.
Preferably, the template rendering engine includes Jinja2 engines or CTemplate engines.
Preferably, the web page template for rendering template for html format.
Preferably, the data of the specified format include the data of Json forms.
The embodiment of the present invention also provides a kind of webpage transcoding device, is applied to client terminal, the client terminal and website Server and middleware server communication connection, the middleware server include multiple content distributing networks, and the device includes:
Page info request module, obtains request for sending page info to the Website server, to obtain target The page info of webpage;
Configuration request module, obtains request for sending transcoding configuration information to a content distributing network, to obtain The corresponding transcoding configuration information of the target web;
Information receiving module, for receiving page info and the content distributing network that the Website server is returned The transcoding configuration information of return;
Page transcoding module, for carrying out the page info according to the page info and transcoding configuration information that receive Transcoding;And
Browser display module, is shown by the browser of client terminal for the data after by transcoding.
Preferably, the transcoding configuration information includes extracting configuration information and renders template, the page transcoding module bag Include:
Information extracting unit, for extracting the number that configuration information extracts the specified format in the page info according to described According to;
Data render unit, for by the data of the specified format with described render template and carry out rendering obtain described turning Data after code.
Preferably, described information extracting unit calls integrated information extraction engine in browser by the page info root According to the data for extracting and extracting specified format in the page info that configuration information is returned from the server.
Preferably, described information extraction engine opens the page info that at least two threads are returned from the Website server The middle data for extracting the specified format.
Preferably, integrated template rendering engine in the data render cell call browser is by the specified format Data and the template that renders are rendered.
Preferably, the template rendering engine includes Jinja2 engines or CTemplate engines.
Preferably, the web page template for rendering template for html format.
Preferably, the data of the specified format include the data of Json forms.
The embodiment of the present invention also provides a kind of client terminal, including:
Memorizer;
Processor;And
Webpage transcoding device, the webpage transcoding device are installed in which memory and including one or more by described The software function module of computing device, the webpage transcoding device include:
Page info request module, obtains request for sending page info to Website server, to obtain target web Page info;
Configuration request module, obtains request for sending transcoding configuration information to a content distributing network, to obtain The corresponding transcoding configuration information of the target web;
Information receiving module, for receiving page info and the content distributing network that the Website server is returned The transcoding configuration information of return;
Page transcoding module, for carrying out the page info according to the page info and transcoding configuration information that receive Transcoding;And
Browser display module, is shown by the browser of client terminal for the data after by transcoding.
Compared with prior art, webpage code-transferring method provided in an embodiment of the present invention, device and client terminal.Avoid website Server receives a large amount of requests from same IP sections, causes middleware server to be shielded and receive error message.This Outward, the present invention pass through from Website server obtain page info and from content distributing network obtain transcoding configuration information, respectively from One content distributing network of Website server and middleware server is while requested webpage information and transcoding configuration information, can subtract Few request is time-consuming, improves transcoding efficiency.
For enabling the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by to be used attached needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to this A little accompanying drawings obtain other related accompanying drawings.
Client terminal that Fig. 1 is provided for present pre-ferred embodiments, carry out between Website server and middleware server Interactive schematic diagram.
The block diagram of the client terminal that Fig. 2 is provided for present pre-ferred embodiments.
The high-level schematic functional block diagram of the webpage transcoding device that Fig. 3 is provided for present pre-ferred embodiments.
The flow chart of the webpage code-transferring method that Fig. 4 is provided for present pre-ferred embodiments.
The detail flowchart of step S104 in the webpage code-transferring method that Fig. 5 is provided for present pre-ferred embodiments.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiment.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be arranged and be designed with a variety of configurations herein.Cause This, is not intended to limit claimed invention to the detailed description of the embodiments of the invention for providing in the accompanying drawings below Scope, but it is merely representative of the selected embodiment of the present invention.Embodiments of the invention are based on, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.
It should be noted that:Similar label and letter represent similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then in subsequent accompanying drawing which further need not be defined and be explained.Meanwhile, the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or hint relative importance.
As shown in figure 1, client terminal 100, Website server 200 and middleware services that present pre-ferred embodiments are provided The schematic diagram interacted between device 300.The client terminal 100 can pass through network and the Website server 200 and centre Part server 300 is communicatively coupled, to enter row data communication or interaction.The client terminal 100 may be, but not limited to, Smart mobile phone, PC (personal computer, PC), panel computer, personal digital assistant (personal Digital assistant, PDA), mobile internet surfing equipment (mobile Internet device, MID) etc..Preferably, this reality Apply in example, the client terminal 100 can be using ARIXTRA (Android) system, IOS (iPhone operating System) the smart mobile phone of operating system or the panel computer such as system, Windows phone systems.Preferably, the present embodiment In, it is provided with the client terminal 100 for accessing the browser 114 (ginseng Fig. 2) of web page contents.The client terminal 100 Data acquisition request, the Website server are sent to Website server 200 and middleware server 300 by browser 114 200 and middleware server 300 according to request return corresponding data give the client terminal 100.
The middleware server 300 include multiple content distributing networks 310 (Content Delivery Network, CDN).The content distributing network 310 is distributed in diverse location.The content distributing network 310 is used for will be from the middleware The data is activation that server 300 is received is to client terminal 100.
As shown in Fig. 2 being the block diagram of the client terminal 100.The client terminal 100 includes that webpage transcoding is filled Put 110, memorizer 111, storage control 112, processor 113, browser 114, information extraction engine 115 and template to render and draw Hold up 116.
The memorizer 111, storage control 112,113 each element of processor directly or indirectly electrically connect each other Connect, to realize the transmission or interaction of data.For example, these elements can pass through one or more communication bus or signal each other Line is realized being electrically connected with.The webpage transcoding device 110, browser 114, information extraction engine 115, template rendering engine 116 Can be stored in the memorizer in the form of software or firmware (firmware) including at least one or be solidificated in the client Software function module in the operating system (operating system, OS) of terminal 100.The processor 113 is used for executing The executable module stored in memorizer 111, for example described webpage transcoding device 110, browser 114, information extraction engine 115 And the software function module that includes of template rendering engine 116 or computer program.
Wherein, memorizer 111 may be, but not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc.. Wherein, memorizer 111 is used for storage program, and the processor 113 executes described program after execute instruction is received, aforementioned Method performed by the client terminal 100 of the stream process definition that embodiment of the present invention any embodiment is disclosed can apply to process In device, or realized by processor 113.
A kind of possibly IC chip of processor 113, the disposal ability with signal.Above-mentioned processor can be General processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), special IC (ASIC), ready-made programmable Gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware components.Can be with Disclosed each method, step and logic diagram in realization or the execution embodiment of the present invention.General processor can be micro- place Reason device or the processor can also be any conventional processors etc..
As shown in figure 3, the high-level schematic functional block diagram of webpage transcoding device 110 that Fig. 3 is provided for present pre-ferred embodiments. The webpage transcoding device 110 includes:Page info request module 1101, configuration request module 1102, information receive mould Block 1103, page transcoding module 1104 and browser display module 1105.Further, wherein page transcoding module 1104 is also wrapped Include information extracting unit 11041 and data render unit 11042.
Below with reference to each function that the description of the flow chart of Fig. 4 and Fig. 5 includes to webpage transcoding device 110 described above Module is described in detail.
Fig. 4 is referred to, is that the webpage of the client terminal 100 being applied to shown in Fig. 2 that present pre-ferred embodiments are provided turns The flow chart of code method.Idiographic flow shown in Fig. 4 will be described in detail below.
Step S101, sends page info to the Website server 200 and obtains request, to obtain the page of target web Information.In the present embodiment, step S101 can be executed by the page info request module 1101.In detail, in client terminal After starting browser 114 in 100, when user's link of webpage clicking in the browser 114, the client terminal 100 can send the page info to the Website server 200 obtains request, to ask Website server 200 to return institute The page info of the webpage that need to be checked is to client terminal 100.Specifically, user passes through point in the browser of client terminal 100 The mode that hits webpage link address or be input into the network address of webpage to be viewed completes to touch page info acquisition request Send out.The client terminal 100 can pass through kernel and send page info acquisition request to the Website server 200.
Step S102, sends transcoding configuration information to a content distributing network 310 and obtains request, to obtain the target network The corresponding transcoding configuration information of page.In the present embodiment, step S102 can be executed by the configuration request module 1102.Tool Body ground, the transcoding configuration information include extracting configuration information and render template.User's webpage clicking in the browser 114 Link when, the client terminal 100 sends the transcoding configuration information to a content distributing network 310 and obtains request, with please Transcoding configuration information needed for asking the content distributing network 310 to return is to client terminal 100.For example, client terminal 100 can be to A content distributing network 310 near its position sends the transcoding configuration information and obtains request.The content delivery network Network 310 is by by placing one layer of intelligent virtual on existing Internet basic that node server is constituted everywhere in network Intend network, connection that content distributing network 310 can in real time according to network traffics and each node, load state and arrive user Distance and the integrated information such as response time the request of user is re-directed on the service node nearest from user.Client terminal 100 obtain transcoding configuration information to content distributing network 310, make client terminal 100 obtain required content nearby, solve network Crowded situation, improves the response speed that client terminal 100 accesses webpage.Specifically, exist when client terminal 100 receives user By, when click or the operation of input station address, being sent to the content distributing network 310 by kernel in browser 114 Transcoding configuration information obtains request.
Step S103, the page info and the content distributing network 310 for receiving the return of Website server 200 are returned The transcoding configuration information for returning.In the present embodiment, step S103 can be executed by described information receiver module 1103.
The page info is carried out transcoding according to the page info and transcoding configuration information that receive by step S104.This In embodiment, step S104 can be executed by the page transcoding module 1104.Specifically, the page transcoding module 1104 can Kernel execution step S104 in client terminal 100.Further, when the central processing unit of client terminal 100 have multiple interior During core, the page transcoding module 1104 can in different kernels, parallel multi-thread executes turning for page info simultaneously respectively Code process, accelerates the speed of transcoding, improves transcoding efficiency.The transcoding configuration information includes extracting configuration information and renders mould Plate.
Further, refering to shown in Fig. 5, step S104 can include that following sub-step S1041 and sub-step S1042 are come The transcoding process of the page info is realized, below sub-paragraphs S1041 and sub-step S1042 are described in detail.
Step S1041, extracts the data that configuration information extracts the specified format in the page info according to described.This reality Apply in example, step S1041 can be executed by described information extracting unit 11041.Described information extracting unit 11041 can call institute State information extraction engine 115 and extract in the page info that configuration information is returned from the server specified format according to described extraction Data.Described information extraction engine 115 is stored in memorizer 111, calls execution by processor 113.Described information is extracted Engine 115 can also be integrated with a software function component of the browser 114, and which is according to extracting configuration receiving Html page, by configuration requirement, extracts the information that configuration is specified, and the form output that specifies by configuration.
In order to improve the extraction efficiency of information, described information extraction engine 115 can open at least two threads simultaneously from institute The data of the specified format are extracted in the page info for stating the return of Website server 200.The data of the specified format include The data of Json forms.Json (JavaScript Object Notation) is a kind of data interchange format of lightweight. A subset of the data of Json forms based on ECMAScript.Json is using the text formatting for being totally independent of language.
Step S1042, by the data of the specified format with described render template and carry out rendering obtain after the transcoding Data.In the present embodiment, step S1042 can be executed by the data render unit 11042.In detail, the data render Unit 11042 can call the template rendering engine 116 to render the data of the specified format and the template that renders. The template rendering engine 116 is stored in memorizer 111, calls execution by processor 113.The template rendering engine 116 It is structurized data and the template that specifies, by the software function module rendered by certain rule.
The template rendering engine 116 can also be integrated with a software function component of the browser 114, be handle Structurized data and the template that specifies, by the software function module rendered by certain rule.The template rendering engine 116 Can be Jinja2 engines or CTemplate engines etc..The Jinja2 engines are the template engines based on python.Certainly, Template rendering engine 116 can also be other more template engines, the method for the present embodiment not with using template render and draw Hold up 116 type to be limited.In the present embodiment, the web page template for rendering template preferably html format.
Step S105, by transcoding after data shown by the browser 114 of client terminal 100.In the present embodiment, Step S105 is executed by the browser display module 1105.
According to the method in above-described embodiment, client terminal 100 can simultaneously to 200 requests for page information of Website server and Transcoding configuration information is obtained to middleware server 300, request is reduced and is taken, improve the efficiency of 100 receiving data of client terminal. Then, the multinuclear cpu of client terminal 100, template rendering engine 116 is made full use of to open multithreading and carry out transcoding, Neng Gouyou Effect improves the webpage transcoding efficiency and success rate of client terminal 100.Additionally, the embodiment of the present invention utilizes middleware server 300 The request transcoding configuration information of content distributing network 310, can be prevented effectively from Website server 200 receive a large amount of from same The middleware server 300 of IP sections is asked, the problem for causing middleware server 300 to be shielded.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is also possible to pass through Other modes are realized.Device embodiment described above is only schematically, for example flow chart and block diagram in accompanying drawing Show the device of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of module, program segment or a code Part, a part the holding comprising one or more logic functions for realization regulation of the module, program segment or code Row instruction.It should also be noted that in some are as the implementations that replaces, the function that marked in square frame can also be being different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially be executed substantially in parallel, and they are sometimes Can execute in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart Individual square frame and the combination of block diagram and/or the square frame in flow chart, can use the special base for executing the function or action of regulation Realize in the system of hardware, or can combine to realize with specialized hardware and computer instruction.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
If the function is realized using in the form of software function module and as independent production marketing or when using, can be with It is stored in a computer read/write memory medium.Such understanding is based on, technical scheme is substantially in other words The part contributed by prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, is used including some instructions so that a computer equipment (can be individual People's computer, server, or network equipment etc.) execute all or part of step of each embodiment methods described of the invention. And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply these entities or there is any this reality between operating The relation on border or order.And, term " including ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that a series of process, method, article or equipment including key elements not only includes those key elements, but also including Other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment. In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that including the key element Process, method, also there is other identical element in article or equipment.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair Change, equivalent, improvement etc., should be included within the scope of the present invention.It should be noted that:Similar label and letter exist Similar terms is represented in figure below, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing Which is further defined and be explained.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (17)

1. a kind of webpage code-transferring method, is applied to client terminal, the client terminal and Website server and middleware services Device is communicated to connect, and the middleware server includes multiple content distributing networks, it is characterised in that the method includes:
Page info is sent to the Website server and obtains request, to obtain the page info of target web;
Transcoding configuration information is sent to a content distributing network and obtains request, to obtain the corresponding transcoding configuration of the target web Information;
Receive the transcoding configuration information that the page info and the content distributing network of the Website server return are returned;
The page info is carried out transcoding by the page info and transcoding configuration information according to receiving;And
Data after by transcoding are shown by the browser of client terminal.
2. webpage code-transferring method as claimed in claim 1, it is characterised in that the transcoding configuration information includes extracting with confidence Cease and render template, the page info is carried out the step of transcoding for page info and transcoding configuration information that the basis is received Suddenly include:
The data that configuration information extracts the specified format in the page info are extracted according to described;
The data of the specified format are carried out rendering the data that obtain after the transcoding with the template that renders.
3. webpage code-transferring method as claimed in claim 2, it is characterised in that described institute is extracted according to the extraction configuration information The step of data for stating the specified format in page info, includes:Integrated information extraction engine in browser is called, will be described Page info is according to the data for extracting and extracting specified format in the page info that configuration information is returned from the server.
4. webpage code-transferring method as claimed in claim 3, it is characterised in that described information extraction engine opens at least two lines The data of the specified format are extracted from the Website server in the page info that journey is returned.
5. webpage code-transferring method as claimed in claim 2, it is characterised in that the data by the specified format with described Rendering template and carrying out the step of rendering the data after obtaining the transcoding includes:Call integrated template in browser to render to draw Hold up, the data of the specified format and the template that renders are rendered.
6. webpage code-transferring method as claimed in claim 5, it is characterised in that the template rendering engine includes Jinja2 engines Or CTemplate engines.
7. webpage code-transferring method as claimed in claim 2, it is characterised in that described render the webpage mould that template is html format Plate.
8. webpage code-transferring method as claimed in claim 2, it is characterised in that the data of the specified format include Json forms Data.
9. a kind of webpage transcoding device, is applied to client terminal, the client terminal and Website server and middleware services Device is communicated to connect, and the middleware server includes multiple content distributing networks, it is characterised in that the device includes:
Page info request module, obtains request for sending page info to the Website server, to obtain target web Page info;
Configuration request module, obtains request for sending transcoding configuration information to a content distributing network, described to obtain The corresponding transcoding configuration information of target web;
Information receiving module, for receiving page info and the content distributing network return that the Website server is returned Transcoding configuration information;
Page transcoding module, for carrying out turning by the page info according to the page info and transcoding configuration information that receive Code;And
Browser display module, is shown by the browser of client terminal for the data after by transcoding.
10. webpage transcoding device as claimed in claim 9, it is characterised in that the transcoding configuration information includes extracting configuration Information and template is rendered, the page transcoding module includes:
Information extracting unit, for extracting the data that configuration information extracts the specified format in the page info according to described;
Data render unit, for by the data of the specified format with described render template and carry out rendering obtain after the transcoding Data.
11. webpage transcoding devices as claimed in claim 10, it is characterised in that described information extracting unit is browsed by calling Integrated information extraction engine in device, refers to according to extracting in the page info that the extraction configuration information is returned from the server The data of the formula that fixes.
12. webpage transcoding devices as claimed in claim 11, it is characterised in that described information extraction engine opens at least two The data of the specified format are extracted from the Website server in the page info that thread is returned.
13. webpage transcoding devices as claimed in claim 10, it is characterised in that the data render unit is browsed by calling Integrated template rendering engine in device, the data of the specified format and the template that renders are rendered.
14. webpage transcoding devices as claimed in claim 13, it is characterised in that the template rendering engine includes that Jinja2 draws Hold up or CTemplate engines.
15. webpage transcoding devices as claimed in claim 10, it is characterised in that the webpage for rendering template for html format Template.
16. webpage transcoding devices as claimed in claim 10, it is characterised in that the data of the specified format include Json lattice The data of formula.
17. a kind of client terminals, it is characterised in that include:
Memorizer;
Processor;And
Webpage transcoding device, the webpage transcoding device are installed in which memory and including one or more by the process The software function module that device is executed, the webpage transcoding device include:
Page info request module, obtains request for sending page info to Website server, to obtain the page of target web Surface information;
Configuration request module, obtains request for sending transcoding configuration information to a content distributing network, described to obtain The corresponding transcoding configuration information of target web;
Information receiving module, for receiving page info and the content distributing network return that the Website server is returned Transcoding configuration information;
Page transcoding module, for carrying out turning by the page info according to the page info and transcoding configuration information that receive Code;And
Browser display module, is shown by the browser of client terminal for the data after by transcoding.
CN201610906406.5A 2016-10-18 2016-10-18 Webpage code-transferring method, device and client terminal Active CN106503111B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610906406.5A CN106503111B (en) 2016-10-18 2016-10-18 Webpage code-transferring method, device and client terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610906406.5A CN106503111B (en) 2016-10-18 2016-10-18 Webpage code-transferring method, device and client terminal

Publications (2)

Publication Number Publication Date
CN106503111A true CN106503111A (en) 2017-03-15
CN106503111B CN106503111B (en) 2017-12-26

Family

ID=58294595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610906406.5A Active CN106503111B (en) 2016-10-18 2016-10-18 Webpage code-transferring method, device and client terminal

Country Status (1)

Country Link
CN (1) CN106503111B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133306A (en) * 2017-04-26 2017-09-05 努比亚技术有限公司 Information flow transcoding device and method
CN108829398A (en) * 2018-03-27 2018-11-16 厦门欣旅通科技有限公司 A kind of mobile terminal page interaction implementation method and device
CN109669678A (en) * 2018-10-25 2019-04-23 平安科技(深圳)有限公司 Template engine integration method, device, electronic equipment and storage medium
CN111259293A (en) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 Content data generation method and device, electronic equipment and computer readable medium
CN111984888A (en) * 2019-05-24 2020-11-24 阿里巴巴集团控股有限公司 Page rendering method and device, electronic equipment and computer readable medium
CN114979714A (en) * 2022-07-29 2022-08-30 中关村科学城城市大脑股份有限公司 Video transcoding playing method and device, electronic equipment and computer readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010041029A1 (en) * 2008-10-10 2010-04-15 Mtld Top Level Domain Limited Transcoding a web page
CN105373565A (en) * 2014-08-29 2016-03-02 优视科技有限公司 Webpage processing method and apparatus
CN105516739A (en) * 2015-12-22 2016-04-20 腾讯科技(深圳)有限公司 Video live broadcasting method and system, transcoding server and webpage client

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010041029A1 (en) * 2008-10-10 2010-04-15 Mtld Top Level Domain Limited Transcoding a web page
CN105373565A (en) * 2014-08-29 2016-03-02 优视科技有限公司 Webpage processing method and apparatus
CN105516739A (en) * 2015-12-22 2016-04-20 腾讯科技(深圳)有限公司 Video live broadcasting method and system, transcoding server and webpage client

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133306A (en) * 2017-04-26 2017-09-05 努比亚技术有限公司 Information flow transcoding device and method
CN107133306B (en) * 2017-04-26 2021-01-15 广州沐思信息科技有限公司 Information stream transcoding device and method
CN108829398A (en) * 2018-03-27 2018-11-16 厦门欣旅通科技有限公司 A kind of mobile terminal page interaction implementation method and device
CN108829398B (en) * 2018-03-27 2022-06-17 厦门欣旅通科技有限公司 Mobile terminal page interaction realization method and device
CN109669678A (en) * 2018-10-25 2019-04-23 平安科技(深圳)有限公司 Template engine integration method, device, electronic equipment and storage medium
CN111259293A (en) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 Content data generation method and device, electronic equipment and computer readable medium
CN111259293B (en) * 2018-12-03 2023-04-28 阿里巴巴集团控股有限公司 Content data generation method and device, electronic equipment and computer readable medium
CN111984888A (en) * 2019-05-24 2020-11-24 阿里巴巴集团控股有限公司 Page rendering method and device, electronic equipment and computer readable medium
CN111984888B (en) * 2019-05-24 2024-06-07 阿里巴巴集团控股有限公司 Page rendering method, device, electronic equipment and computer readable medium
CN114979714A (en) * 2022-07-29 2022-08-30 中关村科学城城市大脑股份有限公司 Video transcoding playing method and device, electronic equipment and computer readable medium

Also Published As

Publication number Publication date
CN106503111B (en) 2017-12-26

Similar Documents

Publication Publication Date Title
CN106503111B (en) Webpage code-transferring method, device and client terminal
CN107368487B (en) Dynamic layout method, device and client for page components
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
CN104052809B (en) A kind of flow-dividing control method and apparatus of website test
TWI584149B (en) Web page access request response method and device
CN104883384B (en) A kind of method and apparatus for the end ability that client is provided for light application
CN110390069A (en) The method, apparatus of data check calculates equipment and medium
CN107634947A (en) Limitation malice logs in or the method and apparatus of registration
US20200394059A1 (en) Real-time localization
US10671686B2 (en) Processing webpage data
CN107016282A (en) A kind of information processing method and device
CN106844471A (en) A kind of electronic operation and maintenance system form data processing method and server
CN204790977U (en) APP automatic compilation system and management platform based on cloud calculates
US10885565B1 (en) Network-based data discovery and consumption coordination service
CN111427915A (en) Information processing method and device, storage medium and electronic equipment
CN113469732A (en) Content understanding-based auditing method and device and electronic equipment
WO2024032087A1 (en) Local dynamic page generation method and apparatus, electronic device, computer readable storage medium, and computer program product
CN108011936A (en) Method and apparatus for pushed information
US9916391B2 (en) Method, apparatus and terminal for webpage content browsing
CN113127783B (en) Page display method and device, equipment and medium
CN104239452A (en) Method and device for resource acquisition
CN107241333A (en) Recognition methods, system, Network Security Device and the server of exception request
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN113495498A (en) Simulation method, simulator, device, and medium for hardware device
CN111984258A (en) Page construction method and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200619

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping B radio 14 floor tower square

Patentee before: GUANGZHOU UCWEB COMPUTER TECHNOLOGY Co.,Ltd.