CN105827733A - Data pushing method and device and electronic equipment - Google Patents

Data pushing method and device and electronic equipment Download PDF

Info

Publication number
CN105827733A
CN105827733A CN201610312780.2A CN201610312780A CN105827733A CN 105827733 A CN105827733 A CN 105827733A CN 201610312780 A CN201610312780 A CN 201610312780A CN 105827733 A CN105827733 A CN 105827733A
Authority
CN
China
Prior art keywords
html
data
template
attribute information
client
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
CN201610312780.2A
Other languages
Chinese (zh)
Other versions
CN105827733B (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.)
Zhuhai Baoqu Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201610312780.2A priority Critical patent/CN105827733B/en
Publication of CN105827733A publication Critical patent/CN105827733A/en
Application granted granted Critical
Publication of CN105827733B publication Critical patent/CN105827733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents

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 invention discloses a method and a device for pushing data and electronic equipment, relates to an information pushing technology, and can improve the success rate of webpage loading of a client. The data pushing method comprises the following steps: analyzing the received data exchange format file to obtain data content and hypertext markup language information; inquiring a preset hypertext markup language template library to obtain a hypertext markup language template mapped by the hypertext markup language information; loading the data content to the acquired hypertext markup language template to obtain a hypertext markup language webpage; and pushing the hypertext markup language webpage. The method and the device are suitable for updating the HTML template pushed HTML webpage corresponding to the pushing server.

Description

A kind of method of propelling data, device and electronic equipment
Technical field
The present invention relates to information advancing technique, particularly relate to a kind of method of propelling data, device and electronic equipment.
Background technology
Along with compunication and the development of Internet technology, electronic equipment, such as, intelligent mobile phone, personal digital assistant, palm PC, notebook computer etc. are applied more and more extensive.The internet information that electronic equipment can accommodate exponentially increases, and also gets more and more for carrying the application program (APP, Application) of internet information, greatly meets the individual demand of different user.Such as, developing rapidly and extensively applying due to the Internet so that on the Internet, news data increases with surprising rapidity, in order to make user obtain related news data in real time, news client is as an application program, the method pushing news data to user, actively passes through the Internet and obtains news data relative to user, and due to news client, to have data dissemination speed timely, real-time, user's participation is high, and Consumer's Experience is higher, therefore affects expanding day.
At present, client is (such as, news client) use extensible markup language (XML, ExtensibleMarkLanguage) file stores the data presented to user, i.e. according to the XML file received, this XML file is that data server is according to up-to-date HTML (HTML, HyperTextMark-upLanguage) propelling data is packaged and the file that generates by template, resolve this XML file, according to the html template form pre-set, the corresponding data resolved in the XML file obtained is loaded in corresponding html template, thus obtain html web page, to show to user.But the method for this propelling data, due to different pieces of information in type (such as, word, picture, video), quantity, the each side such as compound mode there are differences, the html template making different pieces of information corresponding is different, such as, important news data, movie data, purchase data is respectively to there being different html templates, and update owing to data server can often carry out upgrading to html template, in order to ensure the parsing of XML file and load successfully, client is needed periodically or non-periodically actively to be updated to data server, if and update client not in time, client will be caused can not correctly to resolve XML file, html web page is made to load success rate relatively low;Further, owing to data are stored in XML file, if needing to change the quantity of data, type or combination, needing to change client accordingly, client maintenance is relatively costly;It is additionally, since client interrelated with XML file, when causing needing that same group of data is performed different propelling movement strategies, needs also exist for client is revised accordingly.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method of propelling data, device and electronic equipment, client can be promoted and load the success rate of webpage, in method with the existing propelling data of solution, if updating client not in time, client will be caused can not correctly to resolve XML file so that html web page loads the problem that success rate is relatively low.
First aspect, the embodiment of the present invention provides a kind of method of propelling data, including:
Resolve the data interchange format file received, obtain data content and HTML information;
The HTML template base that inquiry pre-sets, obtains the HTML template of described HTML information MAP;
Described data content is loaded onto the described HTML template of acquisition, obtains HTML webpage;
Described HTML webpage is pushed.
In conjunction with first aspect, in the first embodiment of first aspect, the HTML template base that described inquiry pre-sets, the HTML template obtaining described HTML information MAP includes:
Resolve described HTML information, obtain cascading style list file and literal translation formula script language files;
According to the title of the cascading style list file obtained, inquire about the mapping relations of CSS file identification and the CSS filename pre-set, the CSS file identification of the CSS File Mapping obtained described in acquisition;
Resolve the literal translation formula script language files obtained, extract the analytical algorithm attribute information comprised;
According to the algorithm attribute information extracted, the algorithm attribute information mark that inquiry pre-sets and the mapping relations of algorithm attribute information, obtain the algorithm attribute information mark that the algorithm attribute information of described extraction maps;
The HTML template base that inquiry pre-sets, obtains described CSS file identification and the HTML template of described algorithm attribute information identity map obtained.
In conjunction with first aspect, in the second embodiment of first aspect, the described described HTML template that described data content is loaded onto acquisition, obtain HTML webpage and include:
According to the analytical algorithm comprised in the algorithm attribute information extracted, data content is resolved;
Data content parsing obtained is filled to relevant position in described HTML template, obtains HTML webpage.
In conjunction with first aspect, in the third embodiment of first aspect, described described HTML webpage carried out propelling movement include:
Each data operator that inquiry pre-sets and the mapping relations collection of client collection, obtain and send the client collection that data operator corresponding to described data interchange format file maps;
To HTML webpage described in each client push that the client obtained is concentrated.
In conjunction with first aspect, first aspect the first to any one embodiment in the third, in the 4th kind of embodiment of first aspect, described method also includes:
Periodically or non-periodically send the request of HTML template renewal to data server;
Receive the HTML template renewal information that data server returns, according to the HTML template that the described HTML template renewal information updating received is corresponding.
In conjunction with first aspect, first aspect the first to any one embodiment in the third, in the 5th kind of embodiment of first aspect, the mode utilizing CSS to combine HTML arranges described HTML template.
Second aspect, the embodiment of the present invention provides the device of a kind of propelling data, including: parsing module, template acquisition module, load-on module and pushing module, wherein,
Parsing module, for resolving the data interchange format file of reception, obtains data content and HTML information;
Template acquisition module, the HTML template base pre-set for inquiry, obtain the HTML template of described HTML information MAP;
Load-on module, for described data content is loaded onto the described HTML template of acquisition, obtains HTML webpage;
Pushing module, for pushing described HTML webpage.
In conjunction with second aspect, in the first embodiment of second aspect, described template acquisition module includes: the first resolution unit, the first query unit, the second resolution unit, the second query unit and the 3rd query unit, wherein,
First resolution unit, is used for resolving described HTML information, obtains cascading style list file and literal translation formula script language files;
First query unit, for the title according to the cascading style list file obtained, inquire about the mapping relations of CSS file identification and the CSS filename pre-set, the CSS file identification of the CSS File Mapping obtained described in acquisition;
Second resolution unit, for resolving the literal translation formula script language files obtained, extracts the analytical algorithm attribute information comprised;
Second query unit, for according to the algorithm attribute information extracted, the algorithm attribute information mark that inquiry pre-sets and the mapping relations of algorithm attribute information, obtaining the algorithm attribute information mark that the algorithm attribute information of described extraction maps;
3rd query unit, the HTML template base pre-set for inquiry, obtain described CSS file identification and the HTML template of described algorithm attribute information identity map obtained.
In conjunction with second aspect, in the second embodiment of second aspect, described load-on module includes: Context resolution unit and loading unit, wherein,
Context resolution unit, for according to the analytical algorithm comprised in the algorithm attribute information extracted, resolving data content;
Loading unit, fills to relevant position in described HTML template for data content parsing obtained, obtains HTML webpage.
In conjunction with second aspect, in the third embodiment of second aspect, described pushing module includes: propelling movement client inquiry unit and push unit, wherein,
Push client inquiry unit, each data operator pre-set for inquiry and the mapping relations collection of client collection, obtain and send the client collection that data operator corresponding to described data interchange format file maps;
Push unit, for HTML webpage described in each client push to the client concentration obtained.
In conjunction with second aspect, second aspect the first to any one embodiment in the third, in the 4th kind of embodiment of second aspect, described device also includes:
Template renewal module, for periodically or non-periodically sending the request of HTML template renewal to data server;Receive the HTML template renewal information that data server returns, according to the HTML template that the described HTML template renewal information updating received is corresponding.
In conjunction with second aspect, second aspect the first to any one embodiment in the third, in the 5th kind of embodiment of second aspect, the mode utilizing CSS to combine HTML arranges described HTML template.
The third aspect, the embodiment of the present invention provides a kind of electronic equipment, and described electronic equipment includes: housing, processor, memorizer, circuit board and power circuit, and wherein, circuit board is placed in the interior volume that housing surrounds, processor and memorizer and arranges on circuit boards;Power circuit, powers for each circuit or the device for above-mentioned electronic equipment;Memorizer is used for storing executable program code;Processor runs the program corresponding with executable program code by reading the executable program code of storage in memorizer, for the method performing aforementioned arbitrary described propelling data.
A kind of method of propelling data, device and the electronic equipment that the embodiment of the present invention provides, the data interchange format file received by parsing, obtain data content and HTML information;The HTML template base that inquiry pre-sets, obtains the HTML template of described HTML information MAP;Described data content is loaded onto the described HTML template of acquisition, obtains HTML webpage;Described HTML webpage is pushed, client can be promoted and load the success rate of html web page without using each user of client periodically or non-periodically actively to carry out client renewal to data server, directly push to client and update the html web page that the html template upgraded is corresponding, it is thus possible to promote client to load the success rate of webpage, in method with the existing propelling data of solution, if updating client not in time, client will be caused can not correctly to resolve XML file so that html web page loads the problem that success rate is relatively low.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in describing below is only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the method flow schematic diagram of embodiments of the invention one propelling data;
Fig. 2 is the method flow schematic diagram of embodiments of the invention two propelling data;
Fig. 3 is the apparatus structure schematic diagram of embodiments of the invention three propelling data;
Fig. 4 is the structural representation of one embodiment of electronic equipment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawings the embodiment of the present invention is described in detail.
It will be appreciated that described embodiment be only the present invention a part of embodiment rather than whole embodiments.Based on the embodiment in the present invention, all other embodiments that those of ordinary skill in the art are obtained under not making creative work premise, broadly fall into the scope of protection of the invention.
Fig. 1 is the method flow schematic diagram of embodiments of the invention one propelling data, as it is shown in figure 1, the method for the present embodiment may include that
Step 101, resolves the data interchange format file received, and obtains data content and HTML information;
In the present embodiment, data server includes but not limited to the form of the data of client push: extensible markup language format, data interchange format (JSON, JavaScriptObjectNotation) etc..Wherein, the data utilizing extensible markup language (XML) format transmission are encapsulated as XML file, the data utilizing JSON to transmit are encapsulated as JSON file.
In the present embodiment, owing to the coding of XML is more complicated and redundancy is more, easily cause transmission file size big, take the more network bandwidth, and resolution speed is slower, multidate information shows delay, the problems such as workload is big are changed during renewal, and JSON is the data interchange format of a kind of lightweight, it it is a subset based on JavaScript, JSON uses the text formatting being totally independent of language, but also using and be similar to C language family, such as, C, C++, C#, Java, JavaScript, Perl, the characteristic of Python etc., JSON is made to become preferable data interchange language, it is prone to user read and write, it is also easy to machine resolve and generate.Thus, encoding relative to XML, more simply, more briefly, also superior to XML in resolution speed, and it is little to change workload when updating for JSON coding, it is possible to adapt to the dissimilar and data combination of quantity.
As an alternative embodiment, data form is that JSON, JSON file has feature succinct, easy-operating.As a example by news, each JSON data in JSON file are news item.
In the present embodiment, as an alternative embodiment, can be that every JSON data in JSON file arrange multiple different attribute information, such as, data type attribute information, Data Source attribute information and analytical algorithm attribute information.
In the present embodiment, JSON data include: html web page content, CSS (CSS, CascadingStyleSheet) file, literal translation formula script (JS, JavaScript) file.Wherein, html web page content is data content, cascading style list file and literal translation formula script language files are HTML information, cascading style list file is for describing the interface informations such as the element layout of webpage, look & feel, push-botton operation, and in JS file, record has the attribute information of JSON data.
In the present embodiment, data server, when carrying out data-pushing, will treat that propelling data is encapsulated as JSON file, be known technology about data to be pushed are encapsulated as JSON file, omit detailed description at this.
nullIn the present embodiment,By increasing push server,For comprising the data interchange format file treating propelling data and HTML information from data server acquisition,Resolve the data interchange format file received,Propelling data and HTML information are treated in acquisition,According to treating propelling data,The html web page of the html template mapping that HTML information requires is generated at push server end,Push to client,Thus in the case of data server carries out upgrading renewal to html template,Only need to update the html template that push server is corresponding,Without using each user of client to be periodically or non-periodically actively updated to data server,The upgrading that upgrades in time of html template can be ensured,Directly push to client and update the html web page that the html template upgraded is corresponding,Thus promote client and load the success rate of html web page.
Step 102, the HTML template base that inquiry pre-sets, obtain the HTML template of described HTML information MAP;
In the present embodiment, in push server, pre-set a HTML template base (html template storehouse), include one or more html template, a HTML webpage version of the corresponding data server of each HTML template.
In the present embodiment, as an alternative embodiment, html template is identified with html template numbering, and a html template numbering maps a CSS file identification and JS file identification, wherein, for JS file identification, due to the JSON data of different attribute information, to there being different analytical algorithm attribute informations, thus, as an alternative embodiment, JS file identification characterizes with analytical algorithm attribute information mark.
In the present embodiment, as an alternative embodiment, the mode utilizing CSS to combine HTML (HTML+CSS) arranges html template, the corresponding different html template of different cascading style list files, under same layer stacking style table file, the corresponding different html template of different analytical algorithms.
As an alternative embodiment, the HTML template base that described inquiry pre-sets, the HTML template obtaining described HTML information MAP includes:
A11, resolves described HTML information, obtains cascading style list file and literal translation formula script language files;
A12, according to the title of the cascading style list file obtained, inquires about the mapping relations of CSS file identification and the CSS filename pre-set, the CSS file identification of the CSS File Mapping obtained described in acquisition;
A13, resolves the literal translation formula script language files obtained, and extracts the analytical algorithm attribute information comprised;
A14, according to the algorithm attribute information extracted, the algorithm attribute information mark that inquiry pre-sets and the mapping relations of algorithm attribute information, obtains the algorithm attribute information mark that the algorithm attribute information of described extraction maps;
A15, the HTML template base that inquiry pre-sets, obtain described CSS file identification and the HTML template of described algorithm attribute information identity map obtained.
As an alternative embodiment, the method also includes:
Periodically or non-periodically send the request of HTML template renewal to data server;
Receive the HTML template renewal information that data server returns, according to the HTML template that the described HTML template renewal information updating received is corresponding.
Step 103, is loaded onto described data content the described HTML template of acquisition, obtains HTML webpage;
In the present embodiment, as an alternative embodiment, described data content is loaded onto the described HTML template of acquisition, obtains HTML webpage and include:
B11, according to the analytical algorithm comprised in the algorithm attribute information extracted, resolves data content;
B12, data content parsing obtained is filled to relevant position in described HTML template, is obtained HTML webpage.
In the present embodiment, HTML template is the template matched with the cascading style list file obtained, according to the algorithm (analytical algorithm that algorithm attribute information is corresponding) comprised in JS file, data content is resolved, obtain the parameter that in HTML template, each relevant position is corresponding, and fill to HTML template, generate HTML webpage.
In the present embodiment, according to the labelled element resolved in the data content obtained and the CSS in described HTML template, generate and render picture, be placed in the relevant position in described HTML template, generate HTML webpage.
Step 104, pushes described HTML webpage.
In the present embodiment, as an alternative embodiment, described HTML webpage is carried out propelling movement and includes:
C11, each data operator that inquiry pre-sets and the mapping relations collection of client collection, obtain and send the client collection that data operator corresponding to described data interchange format file maps;
C12, to HTML webpage described in each client push that the client obtained is concentrated.
In the present embodiment, as an alternative embodiment, in order to ensure the safety of data-pushing, it is also possible to push HTML webpage be encrypted, described described HTML webpage is pushed before, the method also includes:
The described HTML webpage treating propelling movement is encrypted.
The method of the embodiment of the present invention one propelling data, resolves the data interchange format file received, and obtains data content and HTML information;The HTML template base that inquiry pre-sets, obtains the HTML template of described HTML information MAP;Described data content is loaded onto the described HTML template of acquisition, obtains HTML webpage;Described HTML webpage is pushed.So, the method of propelling data uses the mode of client+WEB (push server)+JSON, client only receives the webpage of propelling movement, WEB (push server) is for building various html template and corresponding analytical algorithm, utilize JSON combination dissimilar, the data of quantity, thus by receiving the data interchange format file comprising data content (treating propelling data) and HTML information that data server sends, utilize and resolve the HTML information obtained, obtain and resolve the html template that the HTML information obtained maps, the html template obtained loads and resolves the data content obtained, generate html web page to push to client.Thus in the case of data server carries out upgrading renewal to html template, owing to html template and document analysis push server side beyond the clouds completes, only need to update the html template that push server is corresponding, without using each user of client periodically or non-periodically actively to carry out client renewal to data server, directly push to client and update the html web page that the html template upgraded is corresponding, thus promote client and load the success rate of html web page;Further, owing to data are stored in JSON file, if needing to change the quantity of data, type or combination, only corresponding html template need to be modified, it is not necessary to changing client, maintenance cost is low;And, utilize JSON file, can adapt to the dissimilar and data combination of quantity, such as, if needing the HTML style that a large amount of extension is shown, more html template and corresponding analytical algorithm only need to be set in push server, then just can complete the displaying of diversified HTML style by configuring JSON data;Simultaneously, owing to html template, analytical algorithm, data and JSON file are stored in the push server in high in the clouds, separate with the client accessing these resources, and then also with browse user and separate, thus, have only to the html template revising high in the clouds and JSON file, it is possible to realize different data-pushings.
Fig. 2 is the method flow schematic diagram of embodiments of the invention two propelling data, as in figure 2 it is shown, as a example by user's initiative data-pushing, the method for the present embodiment may include that
Step 201, user's access client, client is initiated to push request to push server;
Step 202, push server receives the request of propelling movement, and parsing pushes request, obtains the described data server pushing request mapping;
Step 203, initiates request of data to the data server obtained;
Step 204, receives the data interchange format file returned from data server;
Step 205, resolves the data interchange format file received, and obtains data content and HTML information;
Step 206, the HTML template base that inquiry pre-sets, obtain the HTML template of described HTML information MAP;
Step 207, is loaded onto described data content the described HTML template of acquisition, obtains HTML webpage;
In the present embodiment, the process of step 205 to step 207 is similar to step 103 with the step 101 of said method embodiment one respectively, and here is omitted.
Step 208, returns HTML webpage to client;
Step 209, client shows the HTML webpage received.
The method of the embodiment of the present invention two propelling data, client, push server, data server composition data delivery system, client is by accessing the push server in high in the clouds, push server is from data server pulling data DIF file, resolve data interchange format file and be loaded onto in corresponding HTML template, obtain HTML webpage and be back to client and be shown, thus by arranging diversified HTML template in push server, without each client is updated, client can be promoted and load the success rate of html web page.
Fig. 3 is the apparatus structure schematic diagram of embodiments of the invention three propelling data, as it is shown on figure 3, the device of the present embodiment may include that parsing module 31, template acquisition module 32, load-on module 33 and pushing module 34, wherein,
Parsing module 31, for resolving the data interchange format file of reception, obtains data content and HTML information;
In the present embodiment, as an alternative embodiment, can be that every JSON data in JSON file arrange multiple different attribute information, such as, 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 script language files.Wherein, html web page content is data content, cascading style list file and literal translation formula script language files are HTML information, cascading style list file is for describing the interface informations such as the element layout of webpage, look & feel, push-botton operation, and in JS file, record has the attribute information of JSON data.
Template acquisition module 32, the HTML template base pre-set for inquiry, obtain the HTML template of described HTML information MAP;
In the present embodiment, HTML template base includes one or more html template.Html template is identified with html template numbering, and a html template numbering maps a CSS file identification and JS file identification.
In the present embodiment, as an alternative embodiment, the mode utilizing CSS to combine HTML arranges described HTML template.
In the present embodiment, as an alternative embodiment, template acquisition module 32 includes: the first resolution unit, the first query unit, the second resolution unit, the second query unit and the 3rd query unit (not shown), wherein,
First resolution unit, is used for resolving described HTML information, obtains cascading style list file and literal translation formula script language files;
First query unit, for the title according to the cascading style list file obtained, inquire about the mapping relations of CSS file identification and the CSS filename pre-set, the CSS file identification of the CSS File Mapping obtained described in acquisition;
Second resolution unit, for resolving the literal translation formula script language files obtained, extracts the analytical algorithm attribute information comprised;
Second query unit, for according to the algorithm attribute information extracted, the algorithm attribute information mark that inquiry pre-sets and the mapping relations of algorithm attribute information, obtaining the algorithm attribute information mark that the algorithm attribute information of described extraction maps;
3rd query unit, the HTML template base pre-set for inquiry, obtain described CSS file identification and the HTML template of described algorithm attribute information identity map obtained.
Load-on module 33, for described data content is loaded onto the described HTML template of acquisition, obtains HTML webpage;
In the present embodiment, as an alternative embodiment, load-on module 33 includes: Context resolution unit and loading unit (not shown), wherein,
Context resolution unit, for according to the analytical algorithm comprised in the algorithm attribute information extracted, resolving data content;
Loading unit, fills to relevant position in described HTML template for data content parsing obtained, obtains HTML webpage.
In the present embodiment, according to the labelled element resolved in the data content obtained and the CSS in described HTML template, generate and render picture, be placed in the relevant position in described HTML template, generate HTML webpage.
Pushing module 34, for pushing described HTML webpage.
In the present embodiment, as an alternative embodiment, pushing module 34 includes: propelling movement client inquiry unit and push unit (not shown), wherein,
Push client inquiry unit, each data operator pre-set for inquiry and the mapping relations collection of client collection, obtain and send the client collection that data operator corresponding to described data interchange format file maps;
Push unit, for HTML webpage described in each client push to the client concentration obtained.
As an alternative embodiment, this device also includes:
Template renewal module 35, for periodically or non-periodically sending the request of HTML template renewal to data server;Receive the HTML template renewal information that data server returns, according to the HTML template that the described HTML template renewal information updating received is corresponding.
As an alternative embodiment, this device also includes:
Encrypting module 36, is encrypted for treating the described HTML webpage of propelling movement.
The device of the present embodiment, may be used for performing the technical scheme of embodiment of the method shown in Fig. 1 and Fig. 2, and it is similar with technique effect that it realizes principle, and here is omitted.
It should be noted that, in this article, the relational terms of such as first and second or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation or sequentially that there is any this reality between these entities or operation.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
Each embodiment in this specification all uses relevant mode to describe, and between each embodiment, identical similar part sees mutually, and what each embodiment stressed is the difference with other embodiments.
For device embodiment, owing to it is substantially similar to embodiment of the method, so describe is fairly simple, relevant part sees the part of embodiment of the method and illustrates.
Represent in flow charts or the logic described otherwise above at this and/or step, such as, it is considered the sequencing list of executable instruction for realizing logic function, may be embodied in any computer-readable medium, use for instruction execution system, device or equipment (system such as computer based system, including processor or other can be from instruction execution system, device or equipment instruction fetch the system performing instruction), or combine these instruction execution systems, device or equipment and use.For the purpose of this specification, " computer-readable medium " can be any can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or combines these instruction execution systems, device or equipment and the device that uses.The more specifically example (non-exhaustive list) of computer-readable medium includes following: have the electrical connection section (electronic installation) of one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read only memory (ROM), erasable edit read only memory (EPROM or flash memory), fiber device, and portable optic disk read only memory (CDROM).Additionally, computer-readable medium can even is that paper or other the suitable media that can print described program thereon, because can be such as by paper or other media be carried out optical scanning, then carry out editing, interpreting or be processed to electronically obtain described program with other suitable methods if desired, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize by hardware, software, firmware or combinations thereof.
In the above-described embodiment, multiple steps or method can realize with software or the firmware that storage in memory and is performed by suitable instruction execution system.Such as, if realized with hardware, as in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic of logic gates for data signal realizes logic function, there is the special IC of suitable combination logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
The embodiment of the present invention also provides for a kind of electronic equipment, and described electronic equipment comprises the device described in aforementioned any embodiment.
Fig. 4 is the structural representation of one embodiment of electronic equipment of the present invention, the flow process of Fig. 1-3 illustrated embodiment of the present invention can be realized, as shown in Figure 4, above-mentioned electronic equipment may include that housing 41, processor 42, memorizer 43, circuit board 44 and power circuit 45, wherein, circuit board 44 is placed in the interior volume that housing 41 surrounds, processor 42 and memorizer 43 and is arranged on circuit board 44;Power circuit 45, powers for each circuit or the device for above-mentioned electronic equipment;Memorizer 43 is used for storing executable program code;Processor 42 runs the program corresponding with executable program code by reading the executable program code of storage in memorizer 43, for the method performing the propelling data described in aforementioned any embodiment.
The step that concrete execution process and the processor 42 of above-mentioned steps are performed further by processor 42 by operation executable program code, may refer to the description of Fig. 1-3 illustrated embodiment of the present invention, does not repeats them here.
This electronic equipment exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment: the feature of this kind equipment is to possess mobile communication function, and to provide speech, data communication as main target.This Terminal Type includes: smart mobile phone (such as iPhone), multimedia handset, functional mobile phone, and low-end mobile phone etc..
(2) super mobile personal computer equipment: this kind equipment belongs to the category of personal computer, has calculating and processes function, the most also possessing mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind equipment can show and play content of multimedia.This kind equipment includes: audio frequency, video player (such as iPod), handheld device, e-book, and intelligent toy and portable car-mounted navigator.
(4) server: the equipment of the service of calculating is provided, the composition of server includes processor, hard disk, internal memory, system bus etc., server is similar with general computer architecture, but owing to needing to provide highly reliable service, therefore require higher at aspects such as disposal ability, stability, reliability, safety, extensibility, manageabilitys.
(5) other have the electronic equipment of data interaction function.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries can be by program and complete to instruct relevant hardware, described program can be stored in a kind of computer-readable recording medium, this program upon execution, including one or a combination set of the step of embodiment of the method.
For convenience of description, describing apparatus above is to be divided into various units/modules to be respectively described with function.Certainly, the function of each unit/module can be realized in same or multiple softwares and/or hardware when implementing the present invention.
As seen through the above description of the embodiments, those skilled in the art is it can be understood that arrive this
Invention can add the mode of required general hardware platform by software and realize.Based on such understanding, the part that prior art is contributed by technical scheme the most in other words can embody with the form of software product, this computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., including some instructions with so that a computer equipment (can be personal computer, server, or the network equipment etc.) perform each embodiment of the present invention or the method described in some part of embodiment.
The above; being only the detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, any those familiar with the art is in the technical scope that the invention discloses; the change that can readily occur in or replacement, all should contain within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with scope of the claims.

Claims (10)

1. the method for a propelling data, it is characterised in that including:
Resolve the data interchange format file received, obtain data content and HTML information;
The HTML template base that inquiry pre-sets, obtains the HTML template of described HTML information MAP;
Described data content is loaded onto the described HTML template of acquisition, obtains HTML webpage;
Described HTML webpage is pushed.
The method of propelling data the most according to claim 1, it is characterised in that the HTML template base that described inquiry pre-sets, the HTML template obtaining described HTML information MAP includes:
Resolve described HTML information, obtain cascading style list file and literal translation formula script language files;
According to the title of the cascading style list file obtained, inquire about the mapping relations of CSS file identification and the CSS filename pre-set, the CSS file identification of the CSS File Mapping obtained described in acquisition;
Resolve the literal translation formula script language files obtained, extract the analytical algorithm attribute information comprised;
According to the algorithm attribute information extracted, the algorithm attribute information mark that inquiry pre-sets and the mapping relations of algorithm attribute information, obtain the algorithm attribute information mark that the algorithm attribute information of described extraction maps;
The HTML template base that inquiry pre-sets, obtains described CSS file identification and the HTML template of described algorithm attribute information identity map obtained.
The method of propelling data the most according to claim 1, it is characterised in that the described described HTML template that described data content is loaded onto acquisition, obtains HTML webpage and includes:
According to the analytical algorithm comprised in the algorithm attribute information extracted, data content is resolved;
Data content parsing obtained is filled to relevant position in described HTML template, obtains HTML webpage.
The method of propelling data the most according to claim 1, it is characterised in that described described HTML webpage is carried out propelling movement include:
Each data operator that inquiry pre-sets and the mapping relations collection of client collection, obtain and send the client collection that data operator corresponding to described data interchange format file maps;
To HTML webpage described in each client push that the client obtained is concentrated.
5. according to the method for the propelling data described in any one of Claims 1-4, it is characterised in that described method also includes:
Periodically or non-periodically send the request of HTML template renewal to data server;
Receive the HTML template renewal information that data server returns, according to the HTML template that the described HTML template renewal information updating received is corresponding.
6. according to the method for the propelling data described in any one of Claims 1-4, it is characterised in that the mode utilizing CSS to combine HTML arranges described HTML template.
7. the device of a propelling data, it is characterised in that including: parsing module, template acquisition module, load-on module and pushing module, wherein,
Parsing module, for resolving the data interchange format file of reception, obtains data content and HTML information;
Template acquisition module, the HTML template base pre-set for inquiry, obtain the HTML template of described HTML information MAP;
Load-on module, for described data content is loaded onto the described HTML template of acquisition, obtains HTML webpage;
Pushing module, for pushing described HTML webpage.
The device of propelling data the most according to claim 7, it is characterised in that described template acquisition module includes: the first resolution unit, the first query unit, the second resolution unit, the second query unit and the 3rd query unit, wherein,
First resolution unit, is used for resolving described HTML information, obtains cascading style list file and literal translation formula script language files;
First query unit, for the title according to the cascading style list file obtained, inquire about the mapping relations of CSS file identification and the CSS filename pre-set, the CSS file identification of the CSS File Mapping obtained described in acquisition;
Second resolution unit, for resolving the literal translation formula script language files obtained, extracts the analytical algorithm attribute information comprised;
Second query unit, for according to the algorithm attribute information extracted, the algorithm attribute information mark that inquiry pre-sets and the mapping relations of algorithm attribute information, obtaining the algorithm attribute information mark that the algorithm attribute information of described extraction maps;
3rd query unit, the HTML template base pre-set for inquiry, obtain described CSS file identification and the HTML template of described algorithm attribute information identity map obtained.
The device of propelling data the most according to claim 7, it is characterised in that described load-on module includes: Context resolution unit and loading unit, wherein,
Context resolution unit, for according to the analytical algorithm comprised in the algorithm attribute information extracted, resolving data content;
Loading unit, fills to relevant position in described HTML template for data content parsing obtained, obtains HTML webpage.
The device of propelling data the most according to claim 7, it is characterised in that described pushing module includes: propelling movement client inquiry unit and push unit, wherein,
Push client inquiry unit, each data operator pre-set for inquiry and the mapping relations collection of client collection, obtain and send the client collection that data operator corresponding to described data interchange format file maps;
Push unit, for HTML webpage described in each client push to the client concentration obtained.
CN201610312780.2A 2016-05-12 2016-05-12 A kind of method, apparatus and electronic equipment of propelling data Active CN105827733B (en)

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 true CN105827733A (en) 2016-08-03
CN105827733B 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)

Cited By (11)

* Cited by examiner, † Cited by third party
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
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
CN110870282A (en) * 2017-07-13 2020-03-06 高通股份有限公司 Processing media data using file tracks of web content
CN111443909A (en) * 2020-03-23 2020-07-24 北京百度网讯科技有限公司 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
CN112579093A (en) * 2020-12-11 2021-03-30 杭州安恒信息技术股份有限公司 Information pushing method and device and related equipment
CN112860268A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Template hot deployment method and device
CN113138730A (en) * 2021-04-23 2021-07-20 上海中通吉网络技术有限公司 CSS rule-based transmission method of electronic template among multiple devices
CN113806670A (en) * 2021-10-11 2021-12-17 中国银行股份有限公司 Method for processing hypertext markup language data, related device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
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

Cited By (14)

* Cited by examiner, † Cited by third party
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
CN110870282A (en) * 2017-07-13 2020-03-06 高通股份有限公司 Processing media data using file tracks of 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
CN110347953B (en) * 2019-05-20 2024-05-28 中国平安财产保险股份有限公司 Page generation method, page generation device, computer equipment and storage medium
CN112860268A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Template hot deployment method and device
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
CN111443909A (en) * 2020-03-23 2020-07-24 北京百度网讯科技有限公司 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
CN112579093A (en) * 2020-12-11 2021-03-30 杭州安恒信息技术股份有限公司 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
CN113806670A (en) * 2021-10-11 2021-12-17 中国银行股份有限公司 Method for processing hypertext markup language data, related device and storage medium

Also Published As

Publication number Publication date
CN105827733B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN105827733A (en) Data pushing method and device and electronic equipment
US20210233523A1 (en) Rights Management and Syndication of Content
CN106843828B (en) Interface display and loading method and device
CN102789484B (en) A kind of Web information processing method and apparatus
CN106202547B (en) Site management method and device and website system
CN107943877B (en) Method and device for generating multimedia content to be played
CN107423265A (en) Start font subsetting
CN108255993A (en) Extract method, apparatus, electronic equipment and the storage medium of service fields
CN103281591B (en) Method and device for playing flash video through browser and mobile terminal
CN109194714B (en) File pushing method and device, terminal device and storage medium
CN105122237A (en) Sharing application states
CN110321544B (en) Method and device for generating information
CN101765979A (en) Document processing for mobile devices
CN105956152A (en) Webpage loading method and device and electronic equipment
KR20210066470A (en) Documents conversion apparatus, and control method thereof
CN105302925A (en) Method and device for pushing voice search data
US20130089273A1 (en) Platform for providing interactive applications on a digital content platform
CA2846581A1 (en) Data infrastructure for providing interconnectivity between platforms, devices and operating systems
CN114036439A (en) Website building method, device, medium and electronic equipment
US20170068743A1 (en) Generating and distributing interactive documents
CN108738362A (en) The deep linking of application is generated based on multi-layer reference data
CN107391528A (en) Front end assemblies Dependency Specification searching method and equipment
CN105100291A (en) Resource address generating method, device and system
CN102624910A (en) Method, device and system for processing webpage content selected by user
CN105701153A (en) Method and device for reading webpage resources and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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