CN105959383A - Content subscription method and device - Google Patents

Content subscription method and device Download PDF

Info

Publication number
CN105959383A
CN105959383A CN201610396729.4A CN201610396729A CN105959383A CN 105959383 A CN105959383 A CN 105959383A CN 201610396729 A CN201610396729 A CN 201610396729A CN 105959383 A CN105959383 A CN 105959383A
Authority
CN
China
Prior art keywords
subscription
content
data
mentioned
condition
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.)
Pending
Application number
CN201610396729.4A
Other languages
Chinese (zh)
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201610396729.4A priority Critical patent/CN105959383A/en
Publication of CN105959383A publication Critical patent/CN105959383A/en
Pending legal-status Critical Current

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/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation

Abstract

The present application discloses a content subscription method and device. The concrete embodiment of the invention comprises a step of receiving subscription data with a predetermined data format sent by a client, wherein the subscription data comprises subscription content and a subscription condition, a step of analyzing the subscription data and obtaining candidate push content based on the subscription content, a step of selecting content which satisfies the subscription condition from the push content, and a step of sending the selected content to the client. According to the embodiment, the waste of bandwidth is avoided.

Description

Content subscription method and apparatus
Technical field
The application relates to field of computer technology, is specifically related to technical field of data processing, especially Relate to content subscription method and apparatus.
Background technology
In data processing field, data are sent to message team by data publication side in form of a message In row system, data are taken out from system by subscriber again, then process.Some situation Under, subscriber can only process the data meeting specified conditions, it is therefore desirable to a kind of method is by these Data retrieval is out.
Existing content subscription method typically by the program of subscription end add filter course, The data received from service end are processed.But, in this fashion, server needs Total data will be transferred to subscription end, these data may directly be filtered out, thus makes Become the waste of bandwidth.
Summary of the invention
The purpose of the application is to propose the content subscription method and apparatus of a kind of improvement, solves The technical problem that background section above is mentioned.
First aspect, this application provides a kind of content subscription method, and described method includes: inspection Survey the scheduled operation of user;In response to detecting that the generation of described scheduled operation has tentation data lattice The subscription data of formula, wherein, described subscription data include subscribed content and subscription condition;To propping up The server described subscription of transmission holding described tentation data form supplies described server to institute according to this State subscription data to resolve;Receive the content that described server sends, wherein, described content It is that described server is retrieved that obtain according to described subscribed content and meets described subscription condition.
In certain embodiments, described tentation data form include following at least one: JSON, XML and Protocol Buffer.
Second aspect, this application provides another content subscription method, and described method includes: Receive the subscription data with tentation data form that client sends, wherein, described subscription According to being that described client end response generates, described subscription in scheduled operation user being detected According to including subscribed content and subscription condition;Described subscription data are resolved, orders according to described Read content retrieval to obtain candidate and push content;Push selection content from described candidate and meet described The content of subscription condition;To the content selected by the transmission of described client.
In certain embodiments, described tentation data form include following at least one: JSON, XML and Protocol Buffer.
In certain embodiments, described described subscription data are resolved before, described side Method also includes: adding script engine, wherein, described script engine is used for judging that described candidate pushes away Send whether content meets described subscription condition;And utilize script engine that described subscription condition is entered Row resolves.
The third aspect, this application provides a kind of content subscription device, and described device includes: inspection Survey unit, be configured to detect the scheduled operation of user;Signal generating unit, be configured in response to Detect that described scheduled operation generates the subscription data with tentation data form, wherein, described Subscribe to data and include subscribed content and subscription condition;Transmitting element, is configured to supporting described The server of tentation data form sends described subscription and supplies described server to described subscription according to this Data resolve;Receive unit, be configured to receive the content that described server sends, its In, described content is that described server obtains according to the retrieval of described subscribed content and meets institute State subscription condition.
In certain embodiments, described tentation data form include following at least one: JSON, XML and Protocol Buffer.
Fourth aspect, this application provides another content subscription device, and described device includes: Receive unit, be configured to receive the subscription data with tentation data form that client sends, Wherein, described subscription data are that described client end response is given birth in scheduled operation user being detected Becoming, described subscription data include subscribed content and subscription condition;Resolution unit, is configured to Described subscription data are resolved, obtains candidate according to the retrieval of described subscribed content and push content; Select unit, be configured to push from described candidate content selects meet described subscription condition Content;Transmitting element, is configured to the content selected by the transmission of described client.
In certain embodiments, described tentation data form include following at least one: JSON, XML and Protocol Buffer.
In certain embodiments, described device also includes: adding device, is configured to add foot This engine, wherein, described script engine is used for judging that described candidate pushes whether content meets institute State subscription condition;And described resolution unit is configured to utilize script engine to described further Subscribe to request rule to resolve.
The content subscription method and apparatus that the application provides, terminal unit can will be used by detection The scheduled operation at family and the subscription data that generate are sent to server, server is to above-mentioned subscription According to resolving, in being obtained candidate by the subscribed content retrieval in above-mentioned subscription data and pushing In appearance, selector closes and states the content of the subscription condition subscribed in data, and sends it to client End, so that qualified content is only sent to user by server, it is to avoid bandwidth Waste.
Accompanying drawing explanation
By reading retouching in detail with reference to made non-limiting example is made of the following drawings Stating, other features, purpose and advantage will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of an embodiment according to present context method for subscribing;
Fig. 3 is the flow chart of another embodiment according to present context method for subscribing;
Fig. 4 is the flow chart of the further embodiment according to present context method for subscribing;
Fig. 5 is the structural representation of the embodiment subscribing to device according to present context;
Fig. 6 is the structural representation of another embodiment subscribing to device according to present context Figure;
Fig. 7 is adapted for the computer for the terminal unit or server realizing the embodiment of the present application The structural representation of system.
Detailed description of the invention
With embodiment, the application is described in further detail below in conjunction with the accompanying drawings.It is appreciated that , specific embodiment described herein is used only for explaining related invention, rather than to this Bright restriction.It also should be noted that, for the ease of describe, accompanying drawing illustrate only with About the part that invention is relevant.
It should be noted that in the case of not conflicting, the embodiment in the application and embodiment In feature can be mutually combined.Describe this below with reference to the accompanying drawings and in conjunction with the embodiments in detail Application.
Fig. 1 shows and can apply present context method for subscribing or the reality of content subscription device Execute the exemplary system architecture 100 of example.
As it is shown in figure 1, system architecture 100 can include terminal unit 101,102,103, Network 104 and server 105.Network 104 is in order at terminal unit 101,102,103 and The medium of communication link is provided between server 105.Network 104 can include various connection class Type, the most wired, wireless communication link or fiber optic cables etc..
User can use terminal unit 101,102,103 by network 104 and server 105 Alternately, to receive or to send message etc..Can be provided with on terminal unit 101,102,103 Various telecommunication customer ends are applied, such as web browser applications, cloud storage service class application etc..
Terminal unit 101,102,103 can have display screen and supported web page browses Various electronic equipments, include but not limited to smart mobile phone, panel computer, E-book reader, (Moving Picture Experts Group Audio Layer III, dynamic image is special for MP3 player Family compression standard audio frequency aspect 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio frequency aspect 4) player, portable meter on knee Calculation machine and desk computer etc..
Server 105 can be to provide the server of various service, such as to terminal unit 101, 102, the content subscribed on 103 provides the backstage Subscriber supported.Backstage Subscriber Can be analyzed the subscription data received waiting and process, and result (is such as retrieved To content) feed back to terminal unit.
It should be noted that the content subscription method that provided of the application Fig. 2 embodiment typically by Terminal unit 101,102,103 performs, correspondingly, and the content subscription that Fig. 5 embodiment provides Device is generally positioned in terminal unit 101,102,103;The content that Fig. 3 embodiment provides Method for subscribing is typically performed by server 105, and correspondingly, the content that Fig. 6 embodiment provides is ordered Read device to be generally positioned in server 105.
It should be understood that the number of terminal unit, network and the server in Fig. 1 is only signal Property.According to realizing needs, can have any number of terminal unit, network and server.
With continued reference to Fig. 2, it is shown that according to an embodiment of present context method for subscribing Flow process 200.Described content subscription method, comprises the following steps:
Step 201, the scheduled operation of detection user.
In the present embodiment, content subscription method runs on electronic equipment thereon (such as Fig. 1 Shown terminal unit) scheduled operation that can act on user in application set in advance enters Row detection, this scheduled operation can be the trigger action that user initiates to subscribe to application, can be right Preset touch or the clicking operation of a certain setting control on the page, it is also possible to be by various controls The operation of (such as text box, radio box, check box) input subscription information, it is also possible on being After stating the trigger action that user initiates to subscribe to application, by various controls input subscription information Sequence of operations.
Step 202, in response to detecting that scheduled operation generation has the subscription of tentation data form Data.
In the present embodiment, when above-mentioned predetermined registration operation being detected, above-mentioned electronic equipment can be by It generates the subscription data with tentation data form, and wherein, above-mentioned subscription data can include Subscribed content and subscription condition, above-mentioned subscription data can be to comprise above-mentioned subscribed content keyword Message with above-mentioned subscription condition keyword.Above-mentioned subscription condition can be to above-mentioned subscribed content Carry out the condition filtered, such as, get the barrage in video, get the lyrics etc. of song.
In some optional implementations of the present embodiment, user can also is that programmer, this Time, the scheduled operation in step 201 can also is that said procedure person is by means of above-mentioned electronic equipment Directly input the operation subscribing to data.At this moment, above-mentioned electronic equipment can directly will be inputted Subscribe to data as the subscription data treated to server transmission.
In some optional implementations of the present embodiment, above-mentioned tentation data form can be JSON (JavaScript Object Notation, JavaScript object representation), above-mentioned predetermined Data form can also be XML (Extensible Markup Language, extensible markup language Speech), above-mentioned tentation data form can also is that Protocol Buffer (PB).Above-mentioned data lattice Formula is the formatting that data are saved in file or record, can be that numerical value, character or two enter The forms such as number processed.By above-mentioned implementation, above-mentioned user can independently define data form.
Step 203, sends subscription according to this for service to the server supporting tentation data form Device resolves subscribing to data.
In the present embodiment, the subscription data that above-mentioned electronic equipment can will generate in step 202 It is sent to support the server of tentation data form, when above-mentioned server receives this with predetermined number According to after the subscription data that form represents, the subscription data received can be carried out by this server Resolve.
In the present embodiment, as example, above-mentioned subscription condition can be directly with expression formula text Form (such as, " AppKey ": " idc1 ", i.e. " AppKey " field be equal to " idc1 " Data), be sent to server.
Step 204, receives the content that server sends.
In the present embodiment, when above-mentioned server, the above-mentioned subscription data received are resolved Afterwards, the content of selection can be sent to client, above-mentioned electronic equipment can receive this service The content that device returns, wherein this content can be that above-mentioned server is by above-mentioned subscribed content and these clothes The content of business device local cache or the issue content of the long-range publishing side obtained are mated, inspection What rope obtained meets the content of above-mentioned subscription condition.
The method that above-described embodiment of the application provides supplies according to this by sending subscription to server It is resolved by server, afterwards, receives what server filtered out according to above-mentioned subscription data Content, so that the content that user receives is all the content meeting above-mentioned subscription condition, Avoid the waste of bandwidth.
With further reference to Fig. 3, it illustrates the flow process of another embodiment of content subscription method 300.The flow process 300 of content subscription method, comprises the following steps:
Step 301, receives client and sends the subscription data with tentation data form.
In the present embodiment, content subscription method runs on electronic equipment thereon (such as Fig. 1 Shown server) can be by wired connection mode or radio connection from user operation Client (the such as terminal unit shown in Fig. 1) receive there is the subscription of tentation data form Data, wherein, above-mentioned subscription data can be that above-mentioned client end response is in detecting that user's is pre- Determining operation and generate, this scheduled operation can be the trigger action that user initiates to subscribe to application, Can be the touch to setting control a certain on the default page or clicking operation, it is also possible to be to pass through The operation of various controls (such as text box, radio box, check box) input subscription information, also After can being the trigger action that above-mentioned user initiates to subscribe to application, ordered by the input of various controls Read the sequence of operations of information.
In some optional implementations of the present embodiment, user can also is that programmer, this Time, above-mentioned scheduled operation can also is that said procedure person directly inputs subscription by means of terminal unit The operation of data.At this moment, above-mentioned electronic equipment can receive said procedure person and sets by means of terminal The standby subscription data directly inputted.
In the present embodiment, above-mentioned subscription data can include subscribed content and subscription condition, on State subscription data and can comprise above-mentioned subscribed content keyword and above-mentioned subscription condition keyword Message.Above-mentioned subscription condition can be the condition filtering above-mentioned subscribed content, such as, Get the barrage in video, get the lyrics etc. of song.
In some optional implementations of the present embodiment, above-mentioned tentation data form can be JSON (JavaScript Object Notation, JavaScript object representation), above-mentioned predetermined Data form can also be XML (Extensible Markup Language, extensible markup language Speech), above-mentioned tentation data form can also is that Protocol Buffer (PB).Above-mentioned data lattice Formula is the formatting that data are saved in file or record, can be that numerical value, character or two enter The forms such as number processed.By above-mentioned implementation, above-mentioned user can independently define data form.
In the present embodiment, as example, the above-mentioned subscription condition that above-mentioned electronic equipment receives Can be to be form (such as, " AppKey ": " idc1 ", i.e. " AppKey " with expression formula text Field is equal to the data of " idc1 ") represent.
Step 302, resolves subscribing to data, obtains candidate according to subscribed content retrieval and pushes away Send content.
In the present embodiment, above-mentioned electronic equipment can be first to above-mentioned subscribed content and subscription bar Part resolves;Then, above-mentioned electronic equipment can utilize the Open Source Code of maturation to order above-mentioned Read tentation data form (such as, JSON, XML, Protocol of condition and above-mentioned subscribed content Buffer etc.) resolve;Finally, according to above-mentioned subscribed content, pre-at above-mentioned electronic equipment In the local content that first caches or the issue content of publishing side remotely obtained, retrieval obtains candidate and pushes away Sending content, wherein, it can be completely include above-mentioned subscribed content interior that above-mentioned candidate pushes content Holding, it can also be the content that part comprises above-mentioned subscribed content that above-mentioned candidate pushes content.
Step 303, pushes selector content from candidate and closes the content of subscription condition.
In the present embodiment, above-mentioned electronic equipment can push selector content from above-mentioned candidate Close and state the content of subscription condition, as example, push away with the above-mentioned candidate that JSON form represents Content is sent to include: " id ": 128636, " startTime ": 1450519360000, " AppKey ": " idc1 " }, " id ": 128637, " startTime ": 1450519361209, " AppKey ": " idc2 " }, " id ": 128638, " startTime ": 1450519364573, " AppKey ": " idc3 " }, when above-mentioned subscription condition is json.id >=128637 time, then meet above-mentioned subscription bar The candidate of part push content for " id ": 128637, " startTime ": 1450519361209, " AppKey ": " idc2 " } and " id ": 128638, " startTime ": 1450519364573, “AppKey”:“idc3”}.Above-mentioned electronic equipment can also will not meet above-mentioned subscription condition Content abandon.It should be noted that above-mentioned subscription condition can be multiple, above-mentioned subscription bar Part can also calculate.
Step 304, to the content selected by the transmission of described client.
In the present embodiment, the content selected based on step 303, above-mentioned electronic equipment can lead to Cross wired connection mode or radio connection and send above-mentioned selected symbol to above-mentioned client Close and state the content of subscription condition.
The method that above-described embodiment of the application provides is by receiving the subscription that client sends According to, and it is resolved, afterwards, send to client and filter out according to above-mentioned subscription data Content so that the content that user receives is the content meeting subscription condition, keep away Exempt from the waste of bandwidth.
With further reference to Fig. 4, it illustrates the flow process of the further embodiment of content subscription method 400.The flow process 400 of content subscription method, comprises the following steps:
Step 401, receives client and sends the subscription data with tentation data form.
In the present embodiment, content subscription method runs on electronic equipment thereon (such as Fig. 1 Shown server) can be by wired connection mode or radio connection from user operation Client (the such as terminal unit shown in Fig. 1) receive there is the subscription of tentation data form Data, wherein, above-mentioned subscription data can be that above-mentioned client end response is in detecting that user's is pre- Determining operation and generate, this scheduled operation can be the trigger action that user initiates to subscribe to application, Can be the touch to setting control a certain on the default page or clicking operation, it is also possible to be to pass through The operation of various controls (such as text box, radio box, check box) input subscription information, also After can being the trigger action that above-mentioned user initiates to subscribe to application, ordered by the input of various controls Read the sequence of operations of information.
In some optional implementations of the present embodiment, user can also is that programmer, this Time, above-mentioned scheduled operation can also is that said procedure person directly inputs subscription by means of terminal unit The operation of data.At this moment, above-mentioned electronic equipment can receive said procedure person and sets by means of terminal The standby subscription data directly inputted.
In some optional implementations of the present embodiment, above-mentioned tentation data form can be JSON (JavaScript Object Notation, JavaScript object representation), above-mentioned predetermined Data form can also be XML (Extensible Markup Language, extensible markup language Speech), above-mentioned tentation data form can also is that Protocol Buffer (PB).Above-mentioned data lattice Formula is the formatting that data are saved in file or record, can be that numerical value, character or two enter The forms such as number processed.
In the present embodiment, above-mentioned subscription data can include subscribed content and subscription condition, on State subscription data and can comprise above-mentioned subscribed content keyword and above-mentioned subscription condition keyword Message.Above-mentioned subscription condition can be the condition filtering above-mentioned subscribed content, such as, Get the barrage in video, get the lyrics etc. of song.
Step 402, adds script engine.
In the present embodiment, above-mentioned electronic equipment can also add script engine, wherein, above-mentioned Script engine is used for judging that above-mentioned candidate pushes whether content meets above-mentioned subscription condition.Above-mentioned foot This engine is the interpreter of a computer programming language, and its function is to explain to perform user Program documentaion, is translated into it and calculates the machine code that function performs, complete a series of function.
Step 403, utilizes script engine to resolve subscribing to data, examines according to subscribed content Rope obtains candidate and pushes content.
In the present embodiment, above-mentioned electronic equipment can be first with script engine to above-mentioned subscription Content and subscription condition resolve;Then, above-mentioned electronic equipment can also utilize opening of maturation Source code to the tentation data form of above-mentioned subscription condition and above-mentioned subscribed content (such as, JSON, XML, Protocol Buffer etc.) resolve;Finally, according to above-mentioned subscribed content, In local content that above-mentioned electronic equipment caches in advance or the issue content of publishing side that remotely obtains Retrieval obtains candidate and pushes content, and wherein, it can be to completely include that above-mentioned candidate pushes content Stating the content of subscribed content, it can also be that part comprises in above-mentioned subscription that above-mentioned candidate pushes content The content held.
Step 404, pushes selector content from candidate and closes the content of subscription condition.
In the present embodiment, above-mentioned electronic equipment can utilize script engine to push from above-mentioned candidate In content, selector closes and states the content of subscription condition, as example, represents in xml format Above-mentioned candidate push content and include:<id>128636</id> <startTime>1450519360000</startTime><AppKey>idc1</AppKey>; <id>128637</id><startTime>1450519361209</startTime><AppKey>idc2 </AppKey>;<id>128638</id><startTime>1450519364573</startTime> <appKey>idc3</AppKey>, when above-mentioned subscription condition is xml.id When<128637, then Meet the candidate of above-mentioned subscription condition and push content and be:<id>128636</id> <startTime>1450519360000</startTime><AppKey>idc1</AppKey>.On State electronic equipment can also the content that not meet above-mentioned subscription condition be abandoned.It should be noted that Above-mentioned subscription condition can be multiple, and above-mentioned subscription condition can also be by calculating.
Step 405, to the content selected by client transmission.
In the present embodiment, the content selected based on step 404, above-mentioned electronic equipment can lead to Cross wired connection mode or radio connection and send above-mentioned selected symbol to above-mentioned client Close and state the content of subscription condition.
Figure 4, it is seen that compared with the embodiment that Fig. 3 is corresponding, interior in the present embodiment The flow process 400 holding method for subscribing highlights the step adding script engine.Thus, the present embodiment The scheme described need not publishing side and data done extra process, directly supports that user subscribes to bar Part, thus improve safety and the operational efficiency of content subscription.
With further reference to Fig. 5, as to the realization of method shown in above-mentioned Fig. 2, the application provides One embodiment of a kind of content subscription device, this device embodiment and the method shown in Fig. 2 Embodiment is corresponding, and this device specifically can apply in various terminal unit.
As it is shown in figure 5, the content subscription device 500 described in the present embodiment includes: detector unit 501, signal generating unit 502, transmitting element 503 and reception unit 504.Wherein, detector unit 501 for detecting the scheduled operation of user;Signal generating unit 502 is for described in response to detecting Scheduled operation generates the subscription data with tentation data form, wherein, described subscription packet Include subscribed content and subscription condition;Transmitting element 503 is to the clothes supporting described tentation data form Business device sends described subscription and resolves described subscription data for described server according to this;And Receiving unit 504 to be used for receiving the content that described server sends, wherein, described content is institute State that server obtains according to the retrieval of described subscribed content and meet described subscription condition.
In the present embodiment, user can be made by the detector unit 501 of content subscription device 500 Scheduled operation in application set in advance detects, and this scheduled operation can be user Initiate to subscribe to the trigger action of application, can be the touch to setting control a certain on the default page Or clicking operation, it is also possible to it is by various controls (such as text box, radio box, check box) Input subscription information operation, it is also possible to be above-mentioned user initiate subscribe to application trigger action it After, by the sequence of operations of various controls input subscription information, above-mentioned scheduled operation is all right It is that above-mentioned user directly inputs the operation subscribing to data.
In the present embodiment, when above-mentioned predetermined registration operation being detected, signal generating unit 502 can be by It generates the subscription data with tentation data form, and wherein, above-mentioned subscription data can include Subscribed content and subscription condition, above-mentioned subscription data can be to comprise above-mentioned subscribed content keyword Message with above-mentioned subscription condition keyword.Above-mentioned subscribed content can be that above-mentioned user is concerned about Content, such as, picture, video, document, song etc., above-mentioned subscription condition can be to upper State the condition that subscribed content carries out filtering, such as, get the barrage in video, get song The bent lyrics etc..Above-mentioned user can also is that programmer, at this moment, and pre-in detector unit 501 Fixed operation can also is that said procedure person directly inputs by means of above-mentioned electronic equipment and subscribes to data Operation.At this moment, above-mentioned electronic equipment can directly using the subscription data that inputted as treating to clothes The subscription data that business device sends.
In the present embodiment, the subscription that signal generating unit 502 can be generated by transmitting element 503 According to being sent to support the server of tentation data form, when above-mentioned server receives this with predetermined After the subscription data that data form represents, the subscription data received can be entered by this server Row resolves.
In the present embodiment, when above-mentioned server, the above-mentioned subscription data received are resolved Afterwards, the content of selection can be sent to client, receive unit 504 and can receive this service The content that device returns, wherein this content can be that above-mentioned server is by above-mentioned subscribed content and these clothes The content of business device local cache or the issue content of the long-range publishing side obtained are mated, inspection What rope obtained meets the content of above-mentioned subscription condition.
In some optional implementations of the present embodiment, above-mentioned tentation data form can be JSON (JavaScript Object Notation, JavaScript object representation), above-mentioned predetermined Data form can also be XML (Extensible Markup Language, extensible markup language Speech), above-mentioned tentation data form can also is that Protocol Buffer (PB).Above-mentioned data lattice Formula is the formatting that data are saved in file or record, can be that numerical value, character or two enter The forms such as number processed.
With further reference to Fig. 6, as to the realization of method shown in above-mentioned Fig. 3, the application provides One embodiment of another content subscription device, this device embodiment and the side shown in Fig. 3 Method embodiment is corresponding, and this device specifically can apply in various server.
As shown in Figure 6, the content subscription device 600 described in the present embodiment includes: receive unit 601, resolution unit 602, selection unit 603 and transmitting element 604.Receive unit 601 to use In receiving the subscription data with tentation data form that client sends, wherein, described subscription Data are that described client end response generates, described subscription in scheduled operation user being detected Data include subscribed content and subscription condition;Resolution unit 602 is for entering described subscription data Row resolves, and obtains candidate according to the retrieval of described subscribed content and pushes content;Unit 603 is selected to use The content of described subscription condition is met in pushing selection in content from described candidate;And transmitting element 604 for the content selected by the transmission of described client.
In the present embodiment, the reception unit 601 of content subscription device 600 can be by wired Connected mode or radio connection receive from the client of user operation has tentation data lattice The subscription data of formula, wherein, above-mentioned subscription data can be that above-mentioned client end response is in detecting The scheduled operation of user and generate, this scheduled operation can be that user initiates to subscribe to touching of application Send out operation, can be the touch to setting control a certain on the default page or clicking operation, it is possible to To input subscription information by various controls (such as text box, radio box, check box) Operation, it is also possible to after being the trigger action that above-mentioned user initiates to subscribe to application, by various controls The sequence of operations of part input subscription information.Above-mentioned user can also is that programmer, at this moment, on State scheduled operation and can also is that said procedure person directly inputs subscription data by means of terminal unit Operation.At this moment, receiving unit 601, can to receive said procedure person direct by means of terminal unit The subscription data of input.
In the present embodiment, above-mentioned electronic equipment can be first to above-mentioned subscribed content and subscription bar Part resolves;Then, above-mentioned electronic equipment can utilize the Open Source Code of maturation to order above-mentioned Read tentation data form (such as, JSON, XML, Protocol of condition and above-mentioned subscribed content Buffer etc.) resolve;Finally, according to above-mentioned subscribed content, pre-at above-mentioned electronic equipment In the local content that first caches or the issue content of publishing side remotely obtained, retrieval obtains candidate and pushes away Sending content, wherein, it can be completely include above-mentioned subscribed content interior that above-mentioned candidate pushes content Holding, it can also be the content that part comprises above-mentioned subscribed content that above-mentioned candidate pushes content.
In the present embodiment, unit 603 is selected can to push selector content from above-mentioned candidate Close and state the content of subscription condition, select unit 603 can also will not meet above-mentioned subscription condition Content abandon.It should be noted that above-mentioned subscription condition can be multiple, above-mentioned subscription bar Part can also calculate.
In the present embodiment, based on the content selecting unit 603 to select, transmitting element 604 can To send above-mentioned selected to above-mentioned client by wired connection mode or radio connection The content meeting above-mentioned subscription condition.
In some optional implementations of the present embodiment, above-mentioned tentation data form can be JSON (JavaScript Object Notation, JavaScript object representation), above-mentioned predetermined Data form can also be XML (Extensible Markup Language, extensible markup language Speech), above-mentioned tentation data form can also is that Protocol Buffer (PB).Above-mentioned data lattice Formula is the formatting that data are saved in file or record, can be that numerical value, character or two enter The forms such as number processed.
In some optional implementations of the present embodiment, foregoing subscribes to device 600 also Can include that adding device (not shown), above-mentioned electronic equipment adding device can add foot This engine, wherein, above-mentioned script engine is used for judging that above-mentioned candidate pushes whether content meets State subscription condition.Above-mentioned script engine is the interpreter of a computer programming language, its merit Can be the program documentaion explained and perform user, it is translated into and calculates the machine code that function performs, Complete a series of function.Above-mentioned resolution unit 602 can utilize script engine to above-mentioned subscription Content and subscription condition resolve.
Below with reference to Fig. 7, it illustrates the terminal unit be suitable to for realizing the embodiment of the present application Or the structural representation of the computer system 700 of server.
As it is shown in fig. 7, computer system 700 includes CPU (CPU) 701, its Can be according to the program being stored in read only memory (ROM) 702 or from storage part 708 It is loaded into the program in random access storage device (RAM) 703 and performs various suitable action And process.In RAM 703, also storage has system 700 to operate required various program sums According to.CPU701, ROM 702 and RAM703 is connected with each other by bus 704.Input/ Output (I/O) interface 705 is also connected to bus 704.
It is connected to I/O interface 705: include the importation 706 of keyboard, button etc. with lower component; Output part 707 including such as liquid crystal display (LCD) and speaker etc.;Including hard The storage part 708 of dish etc.;And include that the network of such as LAN card, modem etc. connects The communications portion 709 of mouth card.Communications portion 709 performs communication via the network of such as the Internet Process.Driver 710 is connected to I/O interface 705 also according to needs.Detachable media 711, Such as disk, CD, magneto-optic disk, semiconductor memory etc., be arranged on driving as required On device 710, in order to the computer program read from it is mounted into storage part as required Divide 708.
Especially, according to embodiment of the disclosure, the process described above with reference to flow chart is permissible It is implemented as computer software programs.Such as, embodiment of the disclosure and include a kind of computer journey Sequence product, it includes the computer program being tangibly embodied on machine readable media, described meter Calculation machine program comprises the program code for performing the method shown in flow chart.In such enforcement In example, this computer program can be downloaded and installed from network by communications portion 709, And/or be mounted from detachable media 711.
Flow chart in accompanying drawing and block diagram, it is illustrated that according to the various embodiment of the application system, Architectural framework in the cards, function and the operation of method and computer program product.This point On, each square frame in flow chart or block diagram can represent a module, program segment or code A part, a part for described module, program segment or code comprise one or more for Realize the executable instruction of the logic function of regulation.It should also be noted that at some as replacement In realization, the function marked in square frame can also be sent out to be different from the order marked in accompanying drawing Raw.Such as, two square frames succeedingly represented can essentially perform substantially in parallel, they Sometimes can also perform in the opposite order, this is depending on involved function.It is also noted that It is, the square frame in each square frame in block diagram and/or flow chart and block diagram and/or flow chart Combination, can realize by the special hardware based system of the function or operation that perform regulation, Or can realize with the combination of specialized hardware with computer instruction.
Being described in the embodiment of the present application involved unit can be real by the way of software Existing, it is also possible to realize by the way of hardware.Described unit can also be arranged on process In device, for example, it is possible to be described as: a kind of processor includes detector unit, signal generating unit, sends out Send unit and receive unit.Wherein, the title of these unit be not intended that under certain conditions right The restriction of this unit itself, such as, detector unit is also described as " detecting the pre-of user The unit of fixed operation ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, This nonvolatile computer storage media can be described in above-described embodiment included in device Nonvolatile computer storage media;Can also be individualism, be unkitted allocate in terminal non- Volatile computer storage medium.Above-mentioned nonvolatile computer storage media storage have one or The multiple program of person, when one or more program is performed by an equipment so that described Equipment: the scheduled operation of detection user;In response to detecting that the generation of described scheduled operation has pre- The subscription data of given data form, wherein, described subscription data include subscribed content and subscribe to bar Part;Described subscription is sent according to this for described clothes to the server supporting described tentation data form Described subscription data are resolved by business device;Receive described server send content, wherein, Described content is described server obtain according to the retrieval of described subscribed content and order described in meeting Read condition.Or, above-mentioned nonvolatile computer storage media storage has one or more journey Sequence, when one or more program is performed by an equipment so that described equipment: connect Receive the subscription data with tentation data form that client sends, wherein, described subscription data It is that described client end response generates, described subscription data in scheduled operation user being detected Including subscribed content and subscription condition;Described subscription data are resolved, according to described subscription Content retrieval obtains candidate and pushes content;From described candidate push content select meet described in order Read the content of condition;To the content selected by the transmission of described client.
Above description is only the preferred embodiment of the application and saying institute's application technology principle Bright.It will be appreciated by those skilled in the art that invention scope involved in the application, do not limit In the technical scheme of the particular combination of above-mentioned technical characteristic, also should contain simultaneously without departing from In the case of described inventive concept, above-mentioned technical characteristic or its equivalent feature carry out combination in any And other technical scheme formed.Such as features described above and (but not limited to) disclosed herein The technical characteristic with similar functions is replaced mutually and the technical scheme that formed.

Claims (10)

1. a content subscription method, it is characterised in that described method includes:
The scheduled operation of detection user;
In response to detecting that the generation of described scheduled operation has the subscription data of tentation data form, Wherein, described subscription data include subscribed content and subscription condition;
Described subscription is sent according to this for described clothes to the server supporting described tentation data form Described subscription data are resolved by business device;
Receive the content that described server sends, wherein, described content be described server according to Described subscribed content is retrieved that obtain and meets described subscription condition.
Method the most according to claim 1, it is characterised in that described tentation data form Including following at least one: JSON, XML and Protocol Buffer.
3. a content subscription method, it is characterised in that described method includes:
Receive client send the subscription data with tentation data form, wherein, described in order Readding data is that described client end response generates in scheduled operation user being detected, described in order Read data and include subscribed content and subscription condition;
Described subscription data are resolved, obtains candidate according to the retrieval of described subscribed content and push Content;
The content selecting to meet described subscription condition content is pushed from described candidate;
To the content selected by the transmission of described client.
Method the most according to claim 3, it is characterised in that described tentation data form Including following at least one: JSON, XML and Protocol Buffer.
Method the most according to claim 4, it is characterised in that described to described subscription Before data resolve, described method also includes:
Adding script engine, wherein, described script engine is used for judging that described candidate pushes content Whether meet described subscription condition;And
Utilize script engine that described subscription condition is resolved.
6. a content subscription device, it is characterised in that described device includes:
Detector unit, is configured to detect the scheduled operation of user;
Signal generating unit, is configured in response to detecting that the generation of described scheduled operation has predetermined number According to the subscription data of form, wherein, described subscription data include subscribed content and subscription condition;
Transmitting element, is configured to send described to the server supporting described tentation data form Described subscription data are resolved by subscription according to this for described server;
Receive unit, be configured to receive the content that described server sends, wherein, described interior Appearance is that described server obtains according to the retrieval of described subscribed content and meets described subscription bar Part.
Device the most according to claim 6, it is characterised in that described tentation data form Including following at least one: JSON, XML and Protocol Buffer.
8. a content subscription device, it is characterised in that described device includes:
Receive unit, be configured to receive the subscription with tentation data form that client sends Data, wherein, described subscription data are that described client end response is in predetermined behaviour user being detected Making and generate, described subscription data include subscribed content and subscription condition;
Resolution unit, is configured to resolve described subscription data, according in described subscription Appearance retrieval obtains candidate and pushes content;
Select unit, be configured to push from described candidate content selects meet described subscription bar The content of part;
Transmitting element, is configured to the content selected by the transmission of described client.
Device the most according to claim 8, it is characterised in that described tentation data form Including following at least one: JSON, XML and Protocol Buffer.
Device the most according to claim 9, it is characterised in that described device also includes: Adding device, is configured to add script engine, and wherein, described script engine is used for judging institute State candidate and push whether content meets described subscription condition;And
Described resolution unit is configured to utilize script engine to subscribe to request rule to described further Resolve.
CN201610396729.4A 2016-06-07 2016-06-07 Content subscription method and device Pending CN105959383A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610396729.4A CN105959383A (en) 2016-06-07 2016-06-07 Content subscription method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610396729.4A CN105959383A (en) 2016-06-07 2016-06-07 Content subscription method and device

Publications (1)

Publication Number Publication Date
CN105959383A true CN105959383A (en) 2016-09-21

Family

ID=56907912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610396729.4A Pending CN105959383A (en) 2016-06-07 2016-06-07 Content subscription method and device

Country Status (1)

Country Link
CN (1) CN105959383A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109067690A (en) * 2018-08-07 2018-12-21 腾讯科技(深圳)有限公司 The method for pushing and device of off-line calculation result data
CN109308202A (en) * 2018-09-13 2019-02-05 武汉斗鱼网络科技有限公司 A kind of method and mobile terminal linking barrage
CN110662089A (en) * 2018-06-29 2020-01-07 武汉斗鱼网络科技有限公司 Bullet screen receiving and processing method, storage medium, electronic equipment and system
CN114710463A (en) * 2020-12-31 2022-07-05 腾讯科技(深圳)有限公司 Message subscribing and publishing method, device, medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040002972A1 (en) * 2002-06-26 2004-01-01 Shyamalan Pather Programming model for subscription services
CN103516788A (en) * 2013-09-13 2014-01-15 杭州东方通信软件技术有限公司 Data pushing method and Flash client terminal and server thereof
CN103905471A (en) * 2012-12-25 2014-07-02 腾讯科技(深圳)有限公司 Social network information push method, server and social network
CN105491111A (en) * 2015-11-24 2016-04-13 镇江恒驰科技有限公司 Windows communication foundation (WCF)-based Internet of things communication method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040002972A1 (en) * 2002-06-26 2004-01-01 Shyamalan Pather Programming model for subscription services
CN103905471A (en) * 2012-12-25 2014-07-02 腾讯科技(深圳)有限公司 Social network information push method, server and social network
CN103516788A (en) * 2013-09-13 2014-01-15 杭州东方通信软件技术有限公司 Data pushing method and Flash client terminal and server thereof
CN105491111A (en) * 2015-11-24 2016-04-13 镇江恒驰科技有限公司 Windows communication foundation (WCF)-based Internet of things communication method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110662089A (en) * 2018-06-29 2020-01-07 武汉斗鱼网络科技有限公司 Bullet screen receiving and processing method, storage medium, electronic equipment and system
CN109067690A (en) * 2018-08-07 2018-12-21 腾讯科技(深圳)有限公司 The method for pushing and device of off-line calculation result data
CN109067690B (en) * 2018-08-07 2021-03-26 腾讯科技(深圳)有限公司 Method and device for pushing offline calculation result data
CN109308202A (en) * 2018-09-13 2019-02-05 武汉斗鱼网络科技有限公司 A kind of method and mobile terminal linking barrage
CN114710463A (en) * 2020-12-31 2022-07-05 腾讯科技(深圳)有限公司 Message subscribing and publishing method, device, medium and equipment
CN114710463B (en) * 2020-12-31 2024-03-15 腾讯科技(深圳)有限公司 Message subscription and publishing method, device, medium and equipment

Similar Documents

Publication Publication Date Title
CN105447204B (en) Network address recognition methods and device
CN108804450B (en) Information pushing method and device
CN107679211A (en) Method and apparatus for pushed information
CN107066609A (en) Image display method and device
CN106407425A (en) A method and a device for information push based on artificial intelligence
CN105718313A (en) Application operation method and device
US10496696B2 (en) Search method and apparatus
CN105959383A (en) Content subscription method and device
CN106302445A (en) For the method and apparatus processing request
CN106104498B (en) Information processing system, data processing control method, program and recording medium
CN107731229A (en) Method and apparatus for identifying voice
CN106484831A (en) Search system, method and apparatus
CN107169077A (en) Method and apparatus for pushed information
CN107634947A (en) Limitation malice logs in or the method and apparatus of registration
CN105786207A (en) Information input method and device
CN105488205A (en) Page generation method and page generation apparatus
CN105260459B (en) Searching method and device
CN105975861A (en) Application detection method and device
CN105701198B (en) Page verification method and device
US20120054598A1 (en) Method and system for viewing web page and computer Program product thereof
CN107656910A (en) Method and apparatus for generating list
CN109471976A (en) Processing method, device, electronic equipment and the storage medium of web page operation data
CN107632971A (en) Method and apparatus for generating multidimensional form
CN107885872B (en) Method and device for generating information
CN107368407A (en) Information processing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160921

RJ01 Rejection of invention patent application after publication