CN105827733B - A kind of method, apparatus and electronic equipment of propelling data - Google Patents
A kind of method, apparatus and electronic equipment of propelling data Download PDFInfo
- Publication number
- CN105827733B CN105827733B CN201610312780.2A CN201610312780A CN105827733B CN 105827733 B CN105827733 B CN 105827733B CN 201610312780 A CN201610312780 A CN 201610312780A CN 105827733 B CN105827733 B CN 105827733B
- Authority
- CN
- China
- Prior art keywords
- markup language
- hypertext markup
- data
- template
- file
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/55—Push-based network services
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/957—Browsing optimisation, e.g. caching or content distillation
- G06F16/9577—Optimising the visualization of content, e.g. distillation of HTML documents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/14—Tree-structured documents
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the present invention discloses the method, apparatus and electronic equipment of a kind of propelling data, is related to information advancing technique, is able to ascend the success rate of client load webpage.The method of the propelling data includes: the received data interchange format file of parsing, obtains data content and hypertext markup language information;Pre-set hypertext markup language template library is inquired, the hypertext markup language template of the hypertext markup language information MAP is obtained;The data content is loaded onto the hypertext markup language template of acquisition, obtains hypertext markup language webpage;The hypertext markup language webpage is pushed.The present invention is suitable for updating the html template push html web page that push server is answered.
Description
Technical field
The present invention relates to the method, apparatus and electronic equipment of information advancing technique more particularly to a kind of propelling data.
Background technique
With computer communication and the continuous development of Internet technology, electronic equipment, for example, intelligent mobile phone, a
The application such as personal digital assistant, palm PC, laptop is more and more extensive.The internet information that electronic equipment can accommodate is in
Exponential growth, the application program (APP, Application) for carrying internet information is also more and more, greatly meets
The individual demand of different user.For example, due to the rapid development and extensive use of internet, so that interconnection cyber journalism number
According to increasing at an amazing speed, in order to make user obtain related news data in real time, news client applies journey as one
Sequence, the method for pushing news data to user actively obtain news data by internet relative to user, due to news client
End has data dissemination speed timely, strong real-time, and user's participation is high, and user experience is stronger, therefore influences to be growing.
Currently, client (for example, news client) uses extensible markup language (XML, Extensible Mark
Language) file stores the data presented to user, i.e., according to received XML file, the XML file be data server according to
Propelling data is sealed according to newest hypertext markup language (HTML, Hyper Text Mark-up Language) template
The file for filling and generating, parses the XML file, according to pre-set html template format, in the XML file that parsing is obtained
Corresponding data be loaded into corresponding html template, so that html web page is obtained, to show to user.But the side of the propelling data
Method, since different data has differences in various aspects such as type (for example, text, picture, video), quantity, combinations, so that
The corresponding html template of different data is different, for example, important news data, movie data, purchase data respectively correspond it is different
Html template, and since data server can often carry out upgrading update to html template, in order to ensure XML file parsing and
It loads successfully, client is needed periodically or non-periodically actively to be updated to data server, and if updating client not in time
End, will lead to client cannot correctly parse XML file, so that html web page load success rate is lower;Further, due to number
According to being stored in XML file, if necessary to change quantity, type or the combination of data, need accordingly to change client,
Client maintenance higher cost;Moreover, because client is interrelated with XML file, result in the need for executing same group of data
When different push strategy, also need accordingly to modify client.
Summary of the invention
In view of this, the embodiment of the present invention provides the method, apparatus and electronic equipment of a kind of propelling data, it is able to ascend visitor
Family end loads the success rate of webpage, in the method to solve existing propelling data, if updating client not in time, will lead to
Client cannot correctly parse XML file, so that the problem that html web page load success rate is lower.
In a first aspect, the embodiment of the present invention provides a kind of method of propelling data, comprising:
Received data interchange format file is parsed, data content and hypertext markup language information are obtained;
Pre-set hypertext markup language template library is inquired, the super of the hypertext markup language information MAP is obtained
Text mark up language template;
The data content is loaded onto the hypertext markup language template of acquisition, obtains hypertext markup language net
Page;
The hypertext markup language webpage is pushed.
With reference to first aspect, in the first embodiment of first aspect, the pre-set hypertext mark of inquiry
Remember language template library, the hypertext markup language template for obtaining the hypertext markup language information MAP includes:
The hypertext markup language information is parsed, cascading style list file and literal translation formula script language files are obtained;
According to the title of obtained cascading style list file, pre-set cascading style sheets file identification and stacking are inquired
The mapping relations of Stylesheet Filename, the cascading style sheets file identification of the cascading style sheets File Mapping obtained described in acquisition;
Obtained literal translation formula script language files are parsed, the analytical algorithm attribute information for including is extracted;
According to the algorithm attribute information extracted, pre-set algorithm attribute information mark and algorithm attribute information are inquired
Mapping relations obtain the algorithm attribute information mark of the algorithm attribute information mapping of the extraction;
Inquire pre-set hypertext markup language template library, the cascading style sheets file identification obtained with
And the hypertext markup language template of the algorithm attribute information identity map.
With reference to first aspect, in second of embodiment of first aspect, described be loaded onto the data content is obtained
The hypertext markup language template taken, obtaining hypertext markup language webpage includes:
According to the analytical algorithm for including in the algorithm attribute information extracted, data content is parsed;
The data content that parsing obtains is filled into the corresponding position into the hypertext markup language template, obtains hypertext
Markup language webpage.
With reference to first aspect, described by the hypertext markup language net in the third embodiment of first aspect
Page carries out push
The mapping relations collection of pre-set each data operator and client collection is inquired, obtains and sends the data exchange
The client collection of the corresponding data operation L mappings of formatted file;
Hypertext markup language webpage described in each client push concentrated to the client of acquisition.
With reference to first aspect, the first of first aspect any embodiment into the third, the of first aspect
In four kinds of embodiments, the method also includes:
Periodically or non-periodically the request of hypertext markup language template renewal is sent to data server;
The hypertext markup language template renewal information that data server returns is received, according to the received hypertext mark
Remember that language template updates the corresponding hypertext markup language template of information update.
With reference to first aspect, the first of first aspect any embodiment into the third, the of first aspect
In five kinds of embodiments, the hypertext markup language mould is set in the way of cascading style sheets combination hypertext markup language
Plate.
Second aspect, the embodiment of the present invention provide a kind of device of propelling data, comprising: parsing module, template obtain mould
Block, loading module and pushing module, wherein
Parsing module obtains data content and hypertext markup language for parsing received data interchange format file
Say information;
Template obtains module and obtains the hypertext mark for inquiring pre-set hypertext markup language template library
Remember the hypertext markup language template of language message mapping;
Loading module is surpassed for the data content to be loaded onto the hypertext markup language template of acquisition
Text mark up language webpage;
Pushing module, for pushing the hypertext markup language webpage.
In conjunction with second aspect, in the first embodiment of second aspect, it includes: the first solution that the template, which obtains module,
Analyse unit, the first query unit, the second resolution unit, the second query unit and third query unit, wherein
First resolution unit obtains cascading style list file and straight for parsing the hypertext markup language information
Translate formula script language files;
First query unit inquires pre-set stacking sample for the title according to obtained cascading style list file
Formula list file identifies the mapping relations with cascading style sheets filename, the layer of the cascading style sheets File Mapping obtained described in acquisition
Stacking style table file identification;
Second resolution unit extracts the analytical algorithm attribute for including for parsing obtained literal translation formula script language files
Information;
Second query unit, for inquiring pre-set algorithm attribute information mark according to the algorithm attribute information extracted
Know the mapping relations with algorithm attribute information, obtains the algorithm attribute information mark of the algorithm attribute information mapping of the extraction;
Third query unit, for inquiring pre-set hypertext markup language template library, the layer obtained
The hypertext markup language template of stacking style table file identification and the algorithm attribute information identity map.
In conjunction with second aspect, in second of embodiment of second aspect, the loading module includes: Context resolution list
Member and loading unit, wherein
Context resolution unit, for according to extract algorithm attribute information in include analytical algorithm, to data content into
Row parsing;
Loading unit, the data content for obtaining parsing fill the corresponding positions into the hypertext markup language template
It sets, obtains hypertext markup language webpage.
In conjunction with second aspect, in the third embodiment of second aspect, the pushing module includes: push client
Query unit and push unit, wherein
Client inquiry unit is pushed, for inquiring the mapping relations of pre-set each data operator and client collection
Collection obtains the client collection for sending the corresponding data operation L mappings of the data interchange format file;
Push unit, hypertext markup language webpage described in each client push for being concentrated to the client of acquisition.
In conjunction with second aspect, second aspect the first into the third any embodiment, the of second aspect
In four kinds of embodiments, described device further include:
Template renewal module is asked for periodically or non-periodically sending hypertext markup language template renewal to data server
It asks;The hypertext markup language template renewal information that data server returns is received, according to the received hypertext markup language
Say the corresponding hypertext markup language template of template renewal information update.
In conjunction with second aspect, second aspect the first into the third any embodiment, the of second aspect
In five kinds of embodiments, the hypertext markup language mould is set in the way of cascading style sheets combination hypertext markup language
Plate.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, and the electronic equipment includes: shell, processor, deposits
Reservoir, circuit board and power circuit, wherein circuit board is placed in the space interior that shell surrounds, processor and memory setting
On circuit boards;Power circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing and can hold
Line program code;Processor is run and executable program code pair by reading the executable program code stored in memory
The program answered, the method for executing aforementioned any propelling data.
The method, apparatus and electronic equipment of a kind of propelling data provided in an embodiment of the present invention, by parsing received number
According to exchange format file, data content and hypertext markup language information are obtained;Inquire pre-set hypertext markup language
It says template library, obtains the hypertext markup language template of the hypertext markup language information MAP;The data content is added
It is loaded onto the hypertext markup language template of acquisition, obtains hypertext markup language webpage;By the hypertext markup language
Webpage is pushed, be able to ascend client load html web page success rate without using client each user periodically or
Client update actively irregularly is carried out to data server, it is corresponding that the html template for updating and upgrading directly is pushed to client
Html web page, so as to promote the success rate of client load webpage, in the method to solve existing propelling data, if
Client is updated not in time, and will lead to client cannot correctly parse XML file, so that html web page load success rate is lower
Problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the method flow schematic diagram of one propelling data of the embodiment of the present invention;
Fig. 2 is the method flow schematic diagram of two propelling data of the embodiment of the present invention;
Fig. 3 is the apparatus structure schematic diagram of three propelling data of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of electronic equipment one embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described in detail with reference to the accompanying drawing.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
Fig. 1 is the method flow schematic diagram of one propelling data of the embodiment of the present invention, as shown in Figure 1, the side of the present embodiment
Method may include:
Step 101, received data interchange format file is parsed, data content and hypertext markup language letter are obtained
Breath;
In the present embodiment, data server includes but is not limited to the format of the data of client push: extensible markup
Language format, data interchange format (JSON, JavaScript Object Notation) etc..Wherein, expansible mark will be utilized
The data of note language (XML) format transmission are encapsulated as XML file, and the data transmitted using JSON are encapsulated as JSON file.
In the present embodiment, since the coding of XML is more complicated and redundancy is more, it be easy to cause transmission file size big, accounts for
The problems such as with heavy workload is changed when more network bandwidth and resolution speed are relatively slow, multidate information shows delay, update,
And JSON is a kind of data interchange format of lightweight, is a subset based on JavaScript, JSON is used and is completely independent
In the text formatting of language, but also use similar to C language family, for example, C, C++, C#, Java, JavaScript,
The characteristic of Perl, Python etc. are easy to user and read and write, be also easy to so that JSON becomes ideal data interchange language
Machine parsing and generation.Thus, it being encoded relative to XML, JSON coding is simpler, more brief, also superior to XML in resolution speed,
And change workload is small when updating, and can adapt to the data combination of different type and quantity.
As an alternative embodiment, data format JSON, JSON file has the characteristics that succinct, easy-operating.With news
For, each JSON data in JSON file are news item.
It, can be a variety of not for every JSON data setting in JSON file as an alternative embodiment in the present embodiment
Same attribute information, for example, data type attribute information, data source attribute information and analytical algorithm attribute information.
In the present embodiment, JSON data include: html web page content, cascading style sheets (CSS, Cascading Style
Sheet) file, literal translation formula scripting language (JS, JavaScript) file.Wherein, html web page content is data content, stacking
Stylesheet files and literal translation formula script language files are hypertext markup language information, and cascading style list file is for describing net
The interface informations such as element layout, look & feel, push-botton operation of page, record has the attribute information of JSON data in JS file.
In the present embodiment, data server will be encapsulated as JSON file when carrying out data-pushing to propelling data, about
It is well-known technique that data to be pushed, which are encapsulated as JSON file, detailed description is omitted here.
In the present embodiment, by increasing push server, for obtaining from data server comprising to propelling data and
The data interchange format file of hypertext markup language information parses received data interchange format file, obtains number to be pushed
Accordingly and HTML information is mapped according to propelling data in the html template that push server end generates HTML information requirement
Html web page is pushed to client, to only need in the case where data server carries out upgrading update to html template
Update the corresponding html template of push server, without using client each user periodically or non-periodically actively to number
It is updated according to server, can ensure the upgrading that timely updates of html template, directly pushed to client and update upgrading
The corresponding html web page of html template, to promote the success rate of client load html web page.
Step 102, pre-set hypertext markup language template library is inquired, the hypertext markup language information is obtained
The hypertext markup language template of mapping;
In the present embodiment, in push server, a hypertext markup language template library (html template library) is preset,
It include one or more html templates, a hypertext markup of the corresponding data server of each hypertext markup language template
Language web page version.
In the present embodiment, as an alternative embodiment, html template is identified with html template number, a html template
Number one CSS file identification of mapping and JS file identification, wherein for JS file identification, due to different attribute information
JSON data are corresponding with different analytical algorithm attribute informations, thus, as an alternative embodiment, JS file identification is to parse
Algorithm attribute information mark is characterized.
In the present embodiment, as an alternative embodiment, cascading style sheets combination hypertext markup language (HTML+ is utilized
CSS html template is arranged in mode), and different cascading style list files corresponds to different html templates, in same cascading style
Under list file, different analytical algorithms corresponds to different html templates.
As an alternative embodiment, the pre-set hypertext markup language template library of inquiry obtains the super text
This markup language information mapping hypertext markup language template include:
A11 parses the hypertext markup language information, obtains cascading style list file and literal translation formula scripting language text
Part;
A12, according to the obtained title of cascading style list file, inquire pre-set cascading style sheets file identification with
The mapping relations of cascading style sheets filename, the cascading style sheets files-designated of the cascading style sheets File Mapping obtained described in acquisition
Know;
A13, the literal translation formula script language files parsed, extracts the analytical algorithm attribute information for including;
A14 inquires pre-set algorithm attribute information mark and believes with algorithm attribute according to the algorithm attribute information extracted
The mapping relations of breath obtain the algorithm attribute information mark of the algorithm attribute information mapping of the extraction;
A15 inquires pre-set hypertext markup language template library, the cascading style sheets files-designated obtained
The hypertext markup language template of knowledge and the algorithm attribute information identity map.
As an alternative embodiment, this method further include:
Periodically or non-periodically the request of hypertext markup language template renewal is sent to data server;
The hypertext markup language template renewal information that data server returns is received, according to the received hypertext mark
Remember that language template updates the corresponding hypertext markup language template of information update.
Step 103, the data content is loaded onto the hypertext markup language template of acquisition, obtains hypertext mark
Remember language web page;
In the present embodiment, as an alternative embodiment, the data content is loaded onto the hypertext markup of acquisition
Language template, obtaining hypertext markup language webpage includes:
B11 parses data content according to the analytical algorithm for including in the algorithm attribute information extracted;
The data content that parsing obtains is filled the corresponding position into the hypertext markup language template, is surpassed by B12
Text mark up language webpage.
In the present embodiment, hypertext markup language template is the template to match with obtained cascading style list file, according to
According to the algorithm (the corresponding analytical algorithm of algorithm attribute information) for including in JS file, data content is parsed, super text is obtained
The corresponding parameter in each corresponding position in this markup language template, and fill into hypertext markup language template, generate hypertext
Markup language webpage.
In the present embodiment, according to the labelled element and the hypertext markup language mould parsed in obtained data content
CSS in plate generates rendering picture, is placed in the corresponding position in the hypertext markup language template, generates hypertext markup
Language web page.
Step 104, the hypertext markup language webpage is pushed.
In the present embodiment, as an alternative embodiment, the hypertext markup language webpage, which is carried out push, includes:
C11 inquires the mapping relations collection of pre-set each data operator and client collection, obtains and sends the data
The client collection of the corresponding data operation L mappings of exchange format file;
C12, to the client of acquisition concentrate each client push described in hypertext markup language webpage.
In the present embodiment, as an alternative embodiment, in order to ensure the safety of data-pushing, push can also be surpassed
Text mark up language webpage is encrypted, it is described the hypertext markup language webpage is pushed before, the party
Method further include:
The hypertext markup language webpage for treating push is encrypted.
The method of one propelling data of the embodiment of the present invention parses received data interchange format file, obtains data content
And hypertext markup language information;Pre-set hypertext markup language template library is inquired, the hypertext markup is obtained
The hypertext markup language template of language message mapping;The data content is loaded onto the hypertext markup language of acquisition
Template obtains hypertext markup language webpage;The hypertext markup language webpage is pushed.In this way, propelling data
For method by the way of client+WEB (push server)+JSON, client only receives the webpage of push, WEB (Push Service
Device) for constructing the html template and corresponding analytical algorithm of multiplicity, different type, the data of quantity are combined using JSON, from
And the number comprising data content (to propelling data) and hypertext markup language information sent by receiving data server
According to exchange format file, the HTML information obtained using parsing obtains the html template of the HTML information mapping obtained with parsing,
The data content that load parsing obtains in the html template of acquisition generates html web page and is pushed to client.Thus
In the case that data server carries out upgrading update to html template, due to the push of html template and document analysis beyond the clouds
Server side is completed, and only need to update the corresponding html template of push server, fixed without using each user of client
Phase irregularly actively carries out client update to data server, and the html template pair for updating upgrading is directly pushed to client
The html web page answered, to promote the success rate of client load html web page;Further, since data are stored in JSON text
In part, if necessary to change quantity, type or the combination of data, corresponding html template need to be only modified, without change
Client, maintenance cost are low;Moreover, can adapt to the data combination of different type and quantity using JSON file, for example,
If necessary to the HTML styles that a large amount of extensions are shown, more html templates and corresponding need to be only set in push server
Then analytical algorithm can complete diversified HTML style displaying by configuring JSON data;Simultaneously as html template,
Analytical algorithm, data and JSON file are stored in the push server in cloud, are point with the client for accessing these resources
From, and then also separated with browsing user, thus, it is only necessary to the html template and JSON file for modifying cloud can be realized not
Same data-pushing.
Fig. 2 is the method flow schematic diagram of two propelling data of the embodiment of the present invention, as shown in Fig. 2, actively being wanted with user
For seeking data-pushing, the method for the present embodiment may include:
Step 201, user's access client, client initiate push request to push server;
Step 202, push server receives push request, and parsing push request obtains the number of the push request mapping
According to server;
Step 203, request of data is initiated to the data server of acquisition;
Step 204, the data interchange format file returned from data server is received;
Step 205, received data interchange format file is parsed, data content and hypertext markup language letter are obtained
Breath;
Step 206, pre-set hypertext markup language template library is inquired, the hypertext markup language information is obtained
The hypertext markup language template of mapping;
Step 207, the data content is loaded onto the hypertext markup language template of acquisition, obtains hypertext mark
Remember language web page;
In the present embodiment, the process of step 205 to step 207 respectively with the step 101 of above method embodiment one to step
Rapid 103 is similar, and details are not described herein again.
Step 208, hypertext markup language webpage is returned to client;
Step 209, client shows received hypertext markup language webpage.
The method of two propelling data of the embodiment of the present invention, client, push server, the push of data server composition data
System, client pass through the push server in access cloud, and push server is literary from data server pulling data exchange format
Part parses data interchange format file and is loaded onto corresponding hypertext markup language template, obtains hypertext markup language
Webpage is simultaneously back to client and is shown, thus by the way that diversified hypertext markup language mould is arranged in push server
Plate is able to ascend the success rate of client load html web page without being updated to each client.
Fig. 3 is the apparatus structure schematic diagram of three propelling data of the embodiment of the present invention, as shown in figure 3, the dress of the present embodiment
Set may include: parsing module 31, template acquisition module 32, loading module 33 and pushing module 34, wherein
Parsing module 31 obtains data content and hypertext markup for parsing received data interchange format file
Language message;
It, can be a variety of not for every JSON data setting in JSON file as an alternative embodiment in the present embodiment
Same attribute information, for example, data type attribute information, data source attribute information and analytical algorithm attribute information.
In the present embodiment, JSON data include: html web page content, cascading style list file, literal translation formula scripting language text
Part.Wherein, html web page content is data content, and cascading style list file and literal translation formula script language files are hypertext mark
Remember language message, cascading style list file is used to describe the interface informations such as element layout, look & feel, the push-botton operation of webpage,
Record has the attribute information of JSON data in JS file.
Template obtains module 32 and obtains the hypertext for inquiring pre-set hypertext markup language template library
The hypertext markup language template of markup language information mapping;
In the present embodiment, hypertext markup language template library includes one or more html templates.Html template with
Html template number is identified, html template number one CSS file identification of mapping and JS file identification.
In the present embodiment, as an alternative embodiment, set in the way of cascading style sheets combination hypertext markup language
Set the hypertext markup language template.
In the present embodiment, as an alternative embodiment, it includes: the first resolution unit, the first inquiry that template, which obtains module 32,
Unit, the second resolution unit, the second query unit and third query unit (not shown), wherein
First resolution unit obtains cascading style list file and straight for parsing the hypertext markup language information
Translate formula script language files;
First query unit inquires pre-set stacking sample for the title according to obtained cascading style list file
Formula list file identifies the mapping relations with cascading style sheets filename, the layer of the cascading style sheets File Mapping obtained described in acquisition
Stacking style table file identification;
Second resolution unit extracts the analytical algorithm attribute for including for parsing obtained literal translation formula script language files
Information;
Second query unit, for inquiring pre-set algorithm attribute information mark according to the algorithm attribute information extracted
Know the mapping relations with algorithm attribute information, obtains the algorithm attribute information mark of the algorithm attribute information mapping of the extraction;
Third query unit, for inquiring pre-set hypertext markup language template library, the layer obtained
The hypertext markup language template of stacking style table file identification and the algorithm attribute information identity map.
Loading module 33 is obtained for the data content to be loaded onto the hypertext markup language template of acquisition
Hypertext markup language webpage;
In the present embodiment, as an alternative embodiment, loading module 33 includes: Context resolution unit and loading unit
(not shown), wherein
Context resolution unit, for according to extract algorithm attribute information in include analytical algorithm, to data content into
Row parsing;
Loading unit, the data content for obtaining parsing fill the corresponding positions into the hypertext markup language template
It sets, obtains hypertext markup language webpage.
In the present embodiment, according to the labelled element and the hypertext markup language mould parsed in obtained data content
CSS in plate generates rendering picture, is placed in the corresponding position in the hypertext markup language template, generates hypertext markup
Language web page.
Pushing module 34, for pushing the hypertext markup language webpage.
In the present embodiment, as an alternative embodiment, pushing module 34 includes: push client inquiry unit and push
Unit (not shown), wherein
Client inquiry unit is pushed, for inquiring the mapping relations of pre-set each data operator and client collection
Collection obtains the client collection for sending the corresponding data operation L mappings of the data interchange format file;
Push unit, hypertext markup language webpage described in each client push for being concentrated to the client of acquisition.
As an alternative embodiment, the device further include:
Template renewal module 35, for periodically or non-periodically sending hypertext markup language template renewal to data server
Request;The hypertext markup language template renewal information that data server returns is received, according to the received hypertext markup
Language template updates the corresponding hypertext markup language template of information update.
As an alternative embodiment, the device further include:
Encrypting module 36, the hypertext markup language webpage for treating push are encrypted.
The device of the present embodiment can be used for executing the technical solution of embodiment of the method shown in Fig. 1 and Fig. 2, realize former
Reason is similar with technical effect, and details are not described herein again.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.
For Installation practice, since it is substantially similar to the method embodiment, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.
In the above-described embodiment, multiple steps or method can be with storages in memory and by suitable instruction execution
The software or firmware that system executes are realized.For example, in another embodiment, can be used if realized with hardware
Any one of following technology well known in the art or their combination are realized: being had for realizing logic function to data-signal
The discrete logic of the logic gates of energy, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate
Array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes dress described in aforementioned any embodiment
It sets.
Fig. 4 is the structural schematic diagram of electronic equipment one embodiment of the present invention, may be implemented to implement shown in Fig. 1-3 of the present invention
The process of example, as shown in figure 4, above-mentioned electronic equipment may include: shell 41, processor 42, memory 43, circuit board 44 and electricity
Source circuit 45, wherein circuit board 44 is placed in the space interior that shell 41 surrounds, and processor 42 and memory 43 are arranged in circuit
On plate 44;Power circuit 45, for each circuit or the device power supply for above-mentioned electronic equipment;Memory 43 is for storing and can hold
Line program code;Processor 42 is run and executable program generation by reading the executable program code stored in memory 43
The corresponding program of code, the method for executing propelling data described in aforementioned any embodiment.
Processor 42 to the specific implementation procedures of above-mentioned steps and processor 42 by operation executable program code come
The step of further executing may refer to the description of Fig. 1-3 illustrated embodiment of the present invention, and details are not described herein.
The electronic equipment exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data
Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low
Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function
Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio,
Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total
Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy
Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic equipments with data interaction function.
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
For convenience of description, description apparatus above is to be divided into various units/modules with function to describe respectively.Certainly, exist
Implement to realize each unit/module function in the same or multiple software and or hardware when the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that this
Invention can be realized by means of software and necessary general hardware platform.Based on this understanding, of the invention
Technical solution substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) execute each embodiment of the present invention or
Method described in certain parts of person's embodiment.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (11)
1. a kind of method of propelling data, which is characterized in that be applied to push server, which comprises
Parsing obtains data content and hypertext markup language letter from the received data interchange format file of data server
Breath;Wherein, the data interchange format file is JSON file;
Pre-set hypertext markup language template library is inquired, the hypertext of the hypertext markup language information MAP is obtained
Markup language template;
The data content is loaded onto the hypertext markup language template of acquisition, obtains hypertext markup language webpage;
The hypertext markup language webpage is pushed;
Wherein, the pre-set hypertext markup language template library of inquiry, obtains the hypertext markup language information and reflects
The hypertext markup language template penetrated includes:
The hypertext markup language information is parsed, cascading style list file and literal translation formula script language files are obtained;
According to the title of obtained cascading style list file, pre-set cascading style sheets file identification and cascading style are inquired
The mapping relations of list file name, the cascading style sheets file identification of the cascading style sheets File Mapping obtained described in acquisition;
Obtained literal translation formula script language files are parsed, the analytical algorithm attribute information for including is extracted;
According to the algorithm attribute information extracted, the mapping of pre-set algorithm attribute information mark and algorithm attribute information is inquired
Relationship obtains the algorithm attribute information mark of the algorithm attribute information mapping of the extraction;
Pre-set hypertext markup language template library is inquired, the cascading style sheets file identification obtained and institute
State the hypertext markup language template of algorithm attribute information identity map.
2. the method for propelling data according to claim 1, which is characterized in that described be loaded onto the data content is obtained
The hypertext markup language template taken, obtaining hypertext markup language webpage includes:
According to the analytical algorithm for including in the algorithm attribute information extracted, data content is parsed;
The data content that parsing obtains is filled into the corresponding position into the hypertext markup language template, obtains hypertext markup
Language web page.
3. the method for propelling data according to claim 1, which is characterized in that described by the hypertext markup language net
Page carries out push
The mapping relations collection of pre-set each data operator and client collection is inquired, obtains and sends the data interchange format
The client collection of the corresponding data operation L mappings of file;
Hypertext markup language webpage described in each client push concentrated to the client of acquisition.
4. the method for propelling data according to any one of claims 1 to 3, which is characterized in that the method also includes:
Periodically or non-periodically the request of hypertext markup language template renewal is sent to data server;
The hypertext markup language template renewal information that data server returns is received, according to the received hypertext markup language
Say the corresponding hypertext markup language template of template renewal information update.
5. the method for propelling data according to any one of claims 1 to 3, which is characterized in that utilize cascading style sheets knot
The hypertext markup language template is arranged in the mode for closing hypertext markup language.
6. a kind of device of propelling data, which is characterized in that be applied to push server, described device includes: parsing module, mould
Plate obtains module, loading module and pushing module, wherein
Parsing module obtains data content and super literary for parsing from the received data interchange format file of data server
This markup language information;Wherein, the data interchange format file is JSON file;
Template obtains module and obtains the hypertext markup language for inquiring pre-set hypertext markup language template library
Say the hypertext markup language template of information MAP;
Loading module obtains hypertext for the data content to be loaded onto the hypertext markup language template of acquisition
Markup language webpage;
Pushing module, for pushing the hypertext markup language webpage;
Wherein, it includes: the first resolution unit, the first query unit, the second resolution unit, the second inquiry that the template, which obtains module,
Unit and third query unit, wherein
First resolution unit obtains cascading style list file and literal translation formula for parsing the hypertext markup language information
Script language files;
First query unit inquires pre-set cascading style sheets for the title according to obtained cascading style list file
The mapping relations of file identification and cascading style sheets filename, the stacking sample of the cascading style sheets File Mapping obtained described in acquisition
Formula list file mark;
Second resolution unit extracts the analytical algorithm attribute information for including for parsing obtained literal translation formula script language files;
Second query unit, for according to the algorithm attribute information extracted, inquire pre-set algorithm attribute information mark with
The mapping relations of algorithm attribute information obtain the algorithm attribute information mark of the algorithm attribute information mapping of the extraction;
Third query unit, for inquiring pre-set hypertext markup language template library, the stacking sample obtained
The hypertext markup language template of formula list file mark and the algorithm attribute information identity map.
7. the device of propelling data according to claim 6, which is characterized in that the loading module includes: Context resolution
Unit and loading unit, wherein
Context resolution unit, for being solved to data content according to the analytical algorithm for including in the algorithm attribute information extracted
Analysis;
Loading unit, the data content for obtaining parsing fill the corresponding position into the hypertext markup language template,
Obtain hypertext markup language webpage.
8. the device of propelling data according to claim 6, which is characterized in that the pushing module includes: push client
Hold query unit and push unit, wherein
Client inquiry unit is pushed, for inquiring the mapping relations collection of pre-set each data operator and client collection,
Obtain the client collection for sending the corresponding data operation L mappings of the data interchange format file;
Push unit, hypertext markup language webpage described in each client push for being concentrated to the client of acquisition.
9. according to the device of the described in any item propelling datas of claim 6 to 8, which is characterized in that described device further include:
Template renewal module, for periodically or non-periodically sending the request of hypertext markup language template renewal to data server;
The hypertext markup language template renewal information that data server returns is received, according to the received hypertext markup language mould
Plate updates the corresponding hypertext markup language template of information update.
10. according to the device of the described in any item propelling datas of claim 6 to 8, which is characterized in that utilize cascading style sheets knot
The hypertext markup language template is arranged in the mode for closing hypertext markup language.
11. a kind of electronic equipment, which is characterized in that the electronic equipment includes: shell, processor, memory, circuit board and electricity
Source circuit, wherein circuit board is placed in the space interior that shell surrounds, and processor and memory setting are on circuit boards;Power supply
Circuit, for each circuit or the device power supply for above-mentioned electronic equipment;Memory is for storing executable program code;Processing
Device runs program corresponding with executable program code by reading the executable program code stored in memory, for holding
The method of the described in any item propelling datas of row preceding claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610312780.2A CN105827733B (en) | 2016-05-12 | 2016-05-12 | A kind of method, apparatus and electronic equipment of propelling data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610312780.2A CN105827733B (en) | 2016-05-12 | 2016-05-12 | A kind of method, apparatus and electronic equipment of propelling data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105827733A CN105827733A (en) | 2016-08-03 |
CN105827733B true CN105827733B (en) | 2019-06-07 |
Family
ID=56528731
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610312780.2A Active CN105827733B (en) | 2016-05-12 | 2016-05-12 | A kind of method, apparatus and electronic equipment of propelling data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105827733B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106528721A (en) * | 2016-10-27 | 2017-03-22 | 北京仿真中心 | Design task oriented product case knowledge pushing method |
CN107451184A (en) * | 2017-06-19 | 2017-12-08 | 阿里巴巴集团控股有限公司 | Page display method and device, user equipment, storage medium |
US10887645B2 (en) * | 2017-07-13 | 2021-01-05 | Qualcomm Incorporated | Processing media data using file tracks for web content |
CN110020295A (en) * | 2017-10-19 | 2019-07-16 | 北京金山安全软件有限公司 | Webpage loading method and device, electronic equipment and storage medium |
CN110347953A (en) * | 2019-05-20 | 2019-10-18 | 中国平安财产保险股份有限公司 | Page generation method, device, computer equipment and storage medium |
CN112860268B (en) * | 2019-11-27 | 2024-04-05 | 北京沃东天骏信息技术有限公司 | Method and device for hot deployment of templates |
CN111443909B (en) * | 2020-03-23 | 2023-09-29 | 北京百度网讯科技有限公司 | Method and device for generating page |
CN111610971A (en) * | 2020-04-27 | 2020-09-01 | 中国平安财产保险股份有限公司 | Method and device for generating Html file, computer equipment and storage medium |
CN112579093B (en) * | 2020-12-11 | 2022-08-12 | 杭州安恒信息技术股份有限公司 | Information pushing method and device and related equipment |
CN113138730A (en) * | 2021-04-23 | 2021-07-20 | 上海中通吉网络技术有限公司 | CSS rule-based transmission method of electronic template among multiple devices |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101815093A (en) * | 2010-03-11 | 2010-08-25 | 深圳市嘉讯软件有限公司 | Method for adapting webpage to mobile terminal and mobile terminal page adaptation device |
CN102043861A (en) * | 2010-12-29 | 2011-05-04 | 重庆新媒农信科技有限公司 | Web page data structured display method based on mobile terminal |
CN103365847A (en) * | 2012-03-27 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Generation method and device for user-defined webpage file |
CN104866527A (en) * | 2015-04-24 | 2015-08-26 | 美通云动(北京)科技有限公司 | Dynamic webpage template matching method and device |
CN105404514A (en) * | 2015-12-01 | 2016-03-16 | 广州华多网络科技有限公司 | JavaScript rendering method and apparatus |
-
2016
- 2016-05-12 CN CN201610312780.2A patent/CN105827733B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101815093A (en) * | 2010-03-11 | 2010-08-25 | 深圳市嘉讯软件有限公司 | Method for adapting webpage to mobile terminal and mobile terminal page adaptation device |
CN102043861A (en) * | 2010-12-29 | 2011-05-04 | 重庆新媒农信科技有限公司 | Web page data structured display method based on mobile terminal |
CN103365847A (en) * | 2012-03-27 | 2013-10-23 | 腾讯科技(深圳)有限公司 | Generation method and device for user-defined webpage file |
CN104866527A (en) * | 2015-04-24 | 2015-08-26 | 美通云动(北京)科技有限公司 | Dynamic webpage template matching method and device |
CN105404514A (en) * | 2015-12-01 | 2016-03-16 | 广州华多网络科技有限公司 | JavaScript rendering method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN105827733A (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105827733B (en) | A kind of method, apparatus and electronic equipment of propelling data | |
CN100462964C (en) | Updating display method for webpage data | |
JP2020194567A (en) | Methods and systems for web content generation | |
KR101824222B1 (en) | Fast rendering of websites containing dynamic content and stale content | |
CA2802746C (en) | System and methods for facilitating the synchronization of data | |
CN110083790A (en) | Page editing method, page output method, device, computer equipment and medium | |
US20160117291A1 (en) | Conversion of a presentation to darwin information typing architecture (dita) | |
US10007532B1 (en) | Data infrastructure for cross-platform cross-device API inter-connectivity | |
CN106897251B (en) | Rich text display method and device | |
CN104714982A (en) | Method and system for loading webpage | |
CN103412890A (en) | Webpage loading method and device | |
CN102752388A (en) | Browser-based interactive system, browser-based interactive method, browser and cloud server | |
CN104021216B (en) | Message proxy server and information publish subscription method and system | |
CN105989010B (en) | Web page data generation method, Web server and Web application system | |
CN101770511A (en) | Browse system for accelerating backspace operation of mobile communication equipment terminal and application method thereof | |
KR20110070724A (en) | Apparatus and method for search open api and generation mashup block skeleton code | |
CN103914293A (en) | Page generation method and server | |
CN108664191A (en) | system access method and device | |
CN104517062A (en) | Method and device for sub authority document management based on document object model | |
CN106970872A (en) | Information buries point methods and device | |
US20220067078A1 (en) | Aggregation system, Response Summary Process, and Method of Use | |
CN109101429A (en) | A kind of method and device of the browser page debugging of set-top box | |
US10402482B2 (en) | Content management system | |
CN101145936A (en) | A method and system for adding tags in Web pages | |
CN106021307B (en) | A kind of system positioned for electronic document, unit and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20190110 Address after: 519031 Room 105-53811, No. 6 Baohua Road, Hengqin New District, Zhuhai City, Guangdong Province Applicant after: Zhuhai Leopard Technology Co.,Ltd. Address before: 100085 East District, Second Floor, 33 Xiaoying West Road, Haidian District, Beijing Applicant before: BEIJING KINGSOFT INTERNET SECURITY SOFTWARE Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |