The content of the invention
The present invention provides a kind of processing method and processing device of update content, to realize that a kind of update content on platform can be withAnother platform is shown in time and intactly.
In a first aspect, embodiments provide a kind of processing method of update content, for by the second accounts informationUpdate content be shown in the page structure belonging to the first accounts information, methods described includes:
Obtain the update content of second accounts information;
Parse the page structure of the update content;
Detect whether the page structure belonging to first accounts information is identical with the page structure of the update content;
When the page structure belonging to first accounts information is identical with the page structure of the update content, describedThe update content is loaded in page structure belonging to first accounts information;
When the page structure belonging to first accounts information is different from the page structure of the update content, to describedUpdate content is decomposed, and the word segment and non-legible part that decomposition is obtained is respectively loaded on the first accounts information instituteIn the page structure of category.
It is with reference on the other hand, in a kind of possible embodiment on the other hand, described to obtain the second account letterThe update content of breath, including:
Obtain the network address of the update content of second accounts information in affiliated server;
The network address is stored in the server belonging to first accounts information;
When the network address of storage changes, judge that second accounts information there are update content, from describedServer request belonging to second accounts information simultaneously downloads the update content.
On the other hand with reference to, in a kind of possible embodiment on the other hand, it is described by the second accounts information moreNew content is shown in the page structure belonging to the first accounts information, including:
Obtain the time tag of the update content;
Between detection current time and the time tag, whether difference is more than a predetermined threshold value;
When difference is more than a predetermined threshold value between the current time and the time tag, second account is obtainedThe update content of information the page structure being shown in belonging to first accounts information;
When between the current time and the time tag, difference, not less than a predetermined threshold value, keeps first accountThe current state of information.
With reference on the other hand, in a kind of possible embodiment on the other hand, methods described also includes:
Obtain the frequency of occurrences of data in the update content;
Detect whether the frequency of occurrences of data in the update content exceedes predeterminated frequency;
When the frequency of occurrences of data in the update content exceedes predeterminated frequency, data in the update content are carried outCaching.
With reference on the other hand, in a kind of possible embodiment on the other hand, methods described also includes:
In judging the update content, whether data are data cached;
When in the update content, data are data cached, load from caching described data cached;
When in the update content, data are non-caching data, load from the corresponding network address of the update contentThe non-caching data.
Second aspect, present invention also offers a kind of processing meanss of update content, its specific technical scheme is as follows:
A kind of processing meanss of update content, for the update content of the second accounts information is shown in the first accounts informationAffiliated page structure, described device include:
Update content acquisition module, is configured to obtain the update content of second accounts information;
Parsing module, is configured to parse the page structure of the update content;
Detection module, is configured to detect the page of the page structure belonging to first accounts information and the update contentWhether face structure is identical;
Module is loaded directly into, the page structure being configured as belonging to first accounts information and the update contentWhen page structure is identical, the update content is loaded in the page structure belonging to first accounts information;
Decompose load-on module, the page structure being configured as belonging to first accounts information and the update contentWhen page structure is different, the update content is decomposed, the word segment and non-legible part that decomposition is obtained adds respectivelyIt is loaded onto in the page structure belonging to first accounts information.
Above-mentioned processing meanss, the update content acquisition module, including:
Address acquisition submodule, is configured to obtain the update content of second accounts information in affiliated serverThe network address;
Sub-module stored, is configured to for the network address to be stored in the server belonging to first accounts informationIn;
Judging submodule, when being configured as the network address change for storing, judges that second accounts information is depositedThere is update content, from the server request belonging to second accounts information and the update content is downloaded.
Above-mentioned processing meanss, the update content by the second accounts information are shown in the page belonging to the first accounts informationFace structure, including:
Time-obtaining module, is configured to obtain the time tag of the update content;
Time detecting module, is configured to detect whether difference is default more than one between current time and the time tagThreshold value;
The module that is loaded directly into is additionally configured to:When between the current time and the time tag difference more than oneDuring predetermined threshold value, obtain the update content of second accounts information and be shown in the knot of the page belonging to first accounts informationStructure;
Module is kept, difference between the current time and the time tag is configured as and threshold is preset not less than oneValue, keeps the current state of first accounts information.
Above-mentioned processing meanss, described device also include:
Frequency acquisition module, is configured to obtain the frequency of occurrences of data in the update content;
Frequency detection module, is configured to detect whether the frequency of occurrences of data in the update content exceedes default frequencyRate;
Cache module, when being configured as the frequency of occurrences of data in the update content more than predeterminated frequency, to describedIn update content, data are cached.
Above-mentioned processing meanss, described device also include:
Caching judge module, in being configured to judge the update content, whether data are data cached;
Caching load-on module, be configured as in the update content data for it is data cached when, institute is loaded from cachingState data cached;
Non-caching load-on module, when being configured as that data are non-caching data in the update content, from the renewalThe non-caching data are loaded in the corresponding network address of content.
The present invention is by detecting the page structure whether phase of page structure and the platform belonging to update content of current platformTogether, update content is judged if appropriate in the page structure for loading on current platform, and to being not suitable for loading on current platformUpdate content in page structure is parsed the page knot for more making update content load on current platform after parsing respectivelyThe disparate modules of structure, solve the problems, such as that update content cannot be shown in the page structure of current platform in time and intactly, realizeThe update content obtained from another platform can be shown in the page structure of current platform in time and intactly, and can support manyPlant the effect of the data mode of different update content.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, notThe present invention can be limited.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouchedThe specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to justPart related to the present invention rather than entire infrastructure are illustrate only in description, accompanying drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detailThe process described as flow chart or method.It is although each step to be described as in flow chart the process of order, therein to be permittedMulti-step can concurrently, concomitantly or while implement.Additionally, the order of each step can be rearranged, when its operationProcess when completing can be terminated, it is also possible to have other steps being not included in accompanying drawing.Process and can correspond toIn method, function, code, subroutine, subprogram etc..
The present invention relates to a kind of processing method and processing device of update content, which mainly applies to need another platform moreNew content is timely and intactly loads on the scene in current platform, and its basic thought is:By in the renewal to another platformThe analysis and the parsing to update content of the page structure of page structure and current platform belonging to holding so that update content energyIt is enough in time, to be intactly shown in the page structure of current platform.
The present embodiment is applicable in the live platform with data processing module be updated the feelings of the process of contentIn condition, the method can be performed by live client, and wherein the client can be realized by software and/or hardware, typicallyGround can be integrated in live platform, as shown in figure 1, the main flow for a kind of processing method of update content of the present invention is illustratedFigure, which is mainly used in for the update content of the second accounts information being shown in the page structure belonging to the first accounts information, at thisIn a kind of embodiment of bright exemplary embodiment, first accounts information can belonging to live platform, second account letterBreath can belonging to microblog, the update content is the fresh information issued in the microblog, with reference to diagram, the sideMethod specifically may include steps of:
In step 110, obtain the update content of second accounts information;
The update content is have tool by include word, picture, audio frequency, video and hyperlink etc. that user issuesThe data of body content information, the type data carry identity, you can correspond with user is issued.
In a kind of feasible embodiment, such as in live platform, the spectators with certain authority can also pass throughThe mode for searching for a certain main broadcaster's title obtains update content of the main broadcaster on another platform in such as microblog so that the toolThe spectators for having certain authority obtain the content of microblog that main broadcaster updates by may be implemented in current live platform.
In the step 120, parse the page structure of the update content;
When the update content is got, while the page structure to the update content in its affiliated platform is carried outParsing, draws order of each several part data of update content in the page structure and composition information.
In step 130, detect the page knot of the page structure belonging to first accounts information and the update contentWhether structure is identical;
Page structure belonging to first accounts information, can be for showing at the exclusive interface of first accounts informationShow the update content in its second platform belonging to the second accounts information, the page structure can be by multiple different display modulesComposition, such as animation display module, text importing module, dynamic picture display module etc..
In step 140, when the page structure belonging to first accounts information and the page structure of the update contentWhen identical, the update content is loaded in the page structure belonging to first accounts information;
The page structure of the two is identical, you can judge that the update content of current second accounts information can load on the first accountIn page structure belonging to information.
In step 150, when the page structure belonging to first accounts information and the page structure of the update contentWhen different, the update content is decomposed, the word segment and non-legible part that decomposition is obtained is respectively loaded on describedIn page structure belonging to first accounts information.
Word segment therein is the descriptive text of the word property in the update content issued, and its non-legible part can be withFor picture, video, Streaming Media, link etc., word segment therein also includes the word of the description to non-legible part.
Different display modules according to included by page structure, can add each described respectively in variant display moduleWord segment and non-legible part, so that the word segment of update content and non-legible part are respectively loaded on page structureIn different display modules.
In a kind of implement scene of exemplary embodiment of the present, each word segment and non-is can record in resolvingThe parsing order of word segment, and according to the order of the display module in the parsing order adjustment page structure, so that in the pageFormer update content can be reduced according to parsing sequential full in the structure of face, update content will not be caused to exist as order is differentAssociation situation chaotic after showing occurs.
By the method for exemplary embodiment of the present, by the parsing of the update content of user on the second platform andThe analysis of the page structure of current platform and the second platform so that the update content shown on the second platform can be in time and completeBe shown in current platform dynamic bar page structure in so that other users of current platform can check in current platformTo fresh information of the specific user in the second platform, it is that the user of spectators' property has saved the time, it is also possible to reduce usingThe resource occupation of the used equipment in family, greatly improves Consumer's Experience.
In another kind of implement scene of exemplary embodiment of the present, the renewal for obtaining second accounts informationContent is also included dumping in the server that the first accounts information is located simultaneously the update content of the second accounts informationIt is formed in the server that can be located via first accounts information when again reading off to directly read, with through the network addressThe server request update content being directly located to the second accounts information, as shown in Fig. 2 this process may include following process:
In step 210, obtain the network address of the update content of second accounts information in affiliated server;
In a step 220, the network address is stored in the server belonging to first accounts information;
In step 230, when the network address of storage changes, judge that second accounts information there are renewalContent, from the server request belonging to second accounts information and downloads the update content.
The network address is preserved in server belonging to first accounts information, the network address institute is not preservedCorresponding update content, can greatly reduce the resource occupation in the server that first accounts information is located.
Before each renewal is preserved in the form of the address list in the server that first accounts information is located andThe network address after renewal so that can be clicked on by address list check the user of the second accounts information it is recent it is all moreNew content, and obtain update content when the network address changes more in time, it is that user brings great convenience.
In another kind of implement scene of exemplary embodiment of the present, the update content by the second accounts information showsThe page structure being shown in belonging to the first accounts information, judges including according to time tag whether update content needs to exist in timeIt is updated in page structure belonging to first accounts information, as shown in figure 3, this process may include following steps:
In the step 310, obtain the time tag of the update content;
The time tag is the renewal time of the update content, its portability in the data message of update content,The time tag of the update content can be obtained by way of temporal information is extracted.
In step 320, detect that whether difference is more than a predetermined threshold value between current time and the time tag;
The predetermined threshold value is arranged in the way of it can set, and its data is transformable, typically may be configured as 10 minutesIntegral multiple, is similarly a temporal information by the difference between the time shown in current time and time tag, and which can be accurate toMillisecond, such as current time are 21:22 ' 20 ", the time that time tag shows is 20:42 ' 38 ", then now its difference is:39 ' 42 ", and predetermined threshold value is set as 35 ', then now detection process be 39 ' 42 " and 35 ' between comparison.
In a step 330, when between the current time and the time tag, difference is more than a predetermined threshold value, obtainThe update content of second accounts information the page structure being shown in belonging to first accounts information;
When its difference is:39 ' 42 ", predetermined threshold value when being set as 35 ', i.e. its difference exceedes predetermined threshold value, and the time isThe default time is spent, the update content of second accounts information can be reacquired and the first accounts information institute is shown inThe page structure of category.
In step 340, when between the current time and the time tag difference not less than a predetermined threshold value, keepThe current state of first accounts information.
In another kind of implement scene of exemplary embodiment of the present, current time is 21:00:00, difference is:17’22 ", and predetermined threshold value is when being set as 35 ', then can be determined that its difference, not less than predetermined threshold value, now, can keep current state,And step 310 is re-started again through one second Preset Time.
The update content of the second accounts information to the appearance in the first accounts information is capable of achieving by the method for the present inventionUpgrade in time, it is ensured that the user of spectators' property can view the update content of specific user in time on current platform,Saving time and efficiency, while so that current platform ensure that more recoverable amounts.
In another kind of implement scene of exemplary embodiment of the present, methods described also includes normal to Jing in update contentThe data of appearance are cached with the step of customer flow is reduced, as shown in figure 4, this process may include following steps:
In step 410, obtain the frequency of occurrences of data in the update content;
The custom of specific user makes so, can fix and be furnished with a certain picture or link when which is updated the issue of content,For the partial data in update content can then be cached, with it is upper once update when directly by caching in read the numberAccording to the load time of saving update content.
In a kind of implement scene of exemplary embodiment of the present, the partial data in update content can be occurredThe statistics of frequency, such as the image data in non-legible part, for the word segment in update content can then be not counted in statistics,Statistical method and according to actually used situation sets itself.
At step 420, detect whether the frequency of occurrences of data in the update content exceedes predeterminated frequency;
The predeterminated frequency is calculated according to big data by current platform, it is also possible to by user's sets itself, and its numerical value canIt is transformable.
In step 430, when the frequency of occurrences of data in the update content exceedes predeterminated frequency, in the renewalIn appearance, data are cached.
Exceed the partial data in the update content of predeterminated frequency to the frequency of occurrences to cache, may be selected to be stored in firstIn platform belonging to accounts information.
In another kind of implement scene of exemplary embodiment of the present, with reference to above-mentioned example embodiment, when to secondDuring the loading of the platform request update content belonging to accounts information, can judge to whether the data of update content cache,By the different pieces of information in update content carry out it is different in the way of load, with reference to shown in Fig. 4, this process may include following steps:Also include:
In step 440, in judging the update content, whether data are data cached;
Data cached judgement can be carried out to the partial data in the update content or total data.
In step 450, when data are data cached in the update content, the caching number is loaded from cachingAccording to;
When in the update content, data are data cached, which is at least the partial data in the update content for cachingData, then the partial data can be loaded from caching, and the data of other parts are then needed from belonging to the second accounts informationPlatform in make requests on and load on current platform.
In step 460, when in the update content, data are non-caching data, from the corresponding net of the update contentThe non-caching data are loaded in network address.
When data are non-caching data in the update content, the total data in update content is referred to not slowMiddle storage is deposited, then the total data of update content is now loaded to the platform request belonging to second accounts information.
The method of exemplary embodiment of the present, the data asked possibly for Jing frequentations in update content are cached, and are madeThe data reduced when the renewal of content is updated every time to the platform request loading belonging to the second accounts information are obtained, so thatThe update content of current platform loading is able to faster more timely update and shows.
A kind of structural representation of the processing meanss of update content that Fig. 5 is provided for exemplary embodiment of the present, the dressPut and can be realized by software and/or hardware, be usually integrated in live platform, can be by the processing method of update content come realIt is existing.As illustrated, the present embodiment can be based on above-described embodiment, there is provided a kind of processing meanss of update content, it is used forThe update content of the second accounts information is shown in into the page structure belonging to the first accounts information, which mainly includes update contentAcquisition module 510, parsing module 520, detection module 530, be loaded directly into module 540 and decompose load-on module 550, it is thereinConnection can be communicated two-by-two between module, and each module can be connected with the communication of the Central Control Module of live platform.
Update content acquisition module 510 therein, is configured to obtain the update content of second accounts information;
Parsing module therein 520, is configured to parse the page structure of the update content;
Detection module therein 530, be configured to detect page structure belonging to first accounts information with it is described moreWhether the page structure of new content is identical;
It is therein to be loaded directly into module 540, be configured as page structure belonging to first accounts information with it is describedWhen the page structure of update content is identical, the update content is loaded in the page structure belonging to first accounts information;
Decomposition load-on module 550 therein, be configured as page structure belonging to first accounts information with it is describedWhen the page structure of update content is different, the update content is decomposed, the word segment that obtains and non-legible will be decomposedPart is respectively loaded in the page structure belonging to first accounts information.
In another kind of implement scene of exemplary embodiment of the present, the update content acquisition module, including:
Address acquisition submodule, is configured to obtain the update content of second accounts information in affiliated serverThe network address;
Sub-module stored, is configured to for the network address to be stored in the server belonging to first accounts informationIn;
Judging submodule, when being configured as the network address change for storing, judges that second accounts information is depositedThere is update content, from the server request belonging to second accounts information and the update content is downloaded.
In another kind of implement scene of exemplary embodiment of the present, the update content by the second accounts information showsThe page structure being shown in belonging to the first accounts information, including:
Time-obtaining module, is configured to obtain the time tag of the update content;
Time detecting module, is configured to detect whether difference is default more than one between current time and the time tagThreshold value;
The module that is loaded directly into is additionally configured to:When between the current time and the time tag difference more than oneDuring predetermined threshold value, obtain the update content of second accounts information and be shown in the knot of the page belonging to first accounts informationStructure;
Module is kept, difference between the current time and the time tag is configured as and threshold is preset not less than oneValue, keeps the current state of first accounts information.
In another kind of implement scene of exemplary embodiment of the present, described device also includes:
Frequency acquisition module, is configured to obtain the frequency of occurrences of data in the update content;
Frequency detection module, is configured to detect whether the frequency of occurrences of data in the update content exceedes default frequencyRate;
Cache module, when being configured as the frequency of occurrences of data in the update content more than predeterminated frequency, to describedIn update content, data are cached.
In another kind of implement scene of exemplary embodiment of the present, described device also includes:
Caching judge module, in being configured to judge the update content, whether data are data cached;
Caching load-on module, be configured as in the update content data for it is data cached when, institute is loaded from cachingState data cached;
Non-caching load-on module, when being configured as that data are non-caching data in the update content, from the renewalThe non-caching data are loaded in the corresponding network address of content.
In the executable present invention of the processing meanss of the update content provided in above-described embodiment provided in any embodimentUpdate content processing method, possess the corresponding functional module of execution the method and beneficial effect, not in the above-described embodimentsThe ins and outs of detailed description, can be found in the processing method of the update content provided in any embodiment of the present invention.
It will be appreciated that, the present invention also extends to the computer program for being suitable for putting the invention into practice, particularlyComputer program on carrier or in carrier.Program can be with source code, object code, code intermediate source and such as part volumeThe form of the object code of the form translated, or with any other shape being adapted to used in the realization according to the method for the present inventionFormula.Also it will be noted that, such program may have many different frame designs.For example, realize the side according to the present inventionFunctional program code of method or system may be subdivided into one or more subroutine.
For will be obvious for technical personnel in the functional many different modes of these subroutine intermediate distributions.Subroutine can be collectively stored in an executable file, so as to form self-contained program.Such executable file canWith including computer executable instructions, such as processor instruction and/or interpreter instruction (for example, Java interpreter instruction).CanAlternatively, one or more or all subroutines of subroutine is may be stored at least one external library file, andAnd statically or dynamically (such as at runtime) links with mastery routine.Mastery routine contains at least one of subroutineAt least one call.Subroutine can also be included to mutual function call.It is related to the embodiment bag of computer programInclude the computer executable instructions of each step of process step corresponding at least one of illustrated method method.These refer toOrder can be subdivided into subroutine and/or be stored in the file of one or more possible static or dynamic link.
Another embodiment for being related to computer program include corresponding in illustrated system and/or product at leastThe computer executable instructions of each device in the device of.These instructions can be subdivided into subroutine and/or be storedIn the file of one or more possible static or dynamic link.
The carrier of computer program can be any entity or device that can deliver program.For example, carrier can be wrappedContaining storage medium, such as (ROM such as CDROM or quasiconductor ROM) or magnetic recording media (such as floppy disk or hard disk).EnterOne step ground, carrier can be the carrier that can be transmitted, such as electricity or optical signalling, its can via cable or optical cable, orPerson passes through radio or other means are transmitted.When program is embodied as such signal, carrier can be by such cableOr device composition.Alternatively, carrier can be the integrated circuit for being wherein embedded with program, and the integrated circuit is suitable for holdingRow correlation technique, or for correlation technique execution used by.
Should be noted that, embodiment mentioned above is to illustrate the present invention, rather than limits the present invention, and thisThe technical staff in field is possible to design many alternate embodiments, without departing from scope of the following claims.In powerDuring profit is required, any reference markss being placed between round parentheses are not to be read as being limitations on claims.Verb " bagInclude " and its paradigmatic depositing using the element or step that are not excluded in addition to those recorded in the claims.Article " one " or " one " before element is not excluded for the presence of a plurality of such elements.The present invention can pass throughIncluding the hardware of several visibly different components, and realized by properly programmed computer.Enumerating several devicesIn device claim, several in these devices can be embodied by the same item of hardware.In mutually different appurtenanceProfit states in requiring that the simple fact of some measures is not intended that the combination of these measures can not be used to benefit.
If desired, difference in functionality discussed herein can be performed and/or be performed simultaneously with one another with different order.In addition, if desired, one or more functions described above can be optional or can be combined.
If desired, each step is not limited to the execution sequence in each embodiment, different step as discussed aboveCan perform and/or perform simultaneously with one another with different order.Additionally, in other embodiments, described above one or manyIndividual step can be optional or can be combined.
Although various aspects of the invention are given in the independent claim, the other side of the present invention include fromThe combination of the dependent claims of the feature of described embodiment and/or the feature with independent claims, and not onlyIt is the combination be clearly given in claim.
It should be noted herein that, although the example embodiment of the present invention is the foregoing described, but these descriptions are notShould be understood in a limiting sense.Conversely, several changing and modifications can be carried out will without departing from the right as appended byThe scope of the present invention defined in asking.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present invention can be with general meterCalculate device to realize, each module can be concentrated in the group of networks of single computing device or computing device composition, and the present invention is realThe device in example is applied corresponding to the method in previous embodiment, which can be realized by executable program code, it is also possible to logicalCross the mode of integrated circuit combination to realize, therefore the invention is not limited in specific hardware or software and its combination.
Will be appreciated by those skilled in the art that each module in the device of the embodiment of the present invention can be with general shiftingRealizing, each module can be concentrated in the device combination of single mobile terminal or mobile terminal composition dynamic terminal, the present inventionCorresponding to the method in previous embodiment, which can be realized device in embodiment by editing executable program code,Can be realized by way of integrated circuit combination, therefore the invention is not limited in specific hardware or software and its knotClose.
Note, above are only the exemplary embodiment and institute's application technology principle of the present invention.Those skilled in the art can manageSolution, the invention is not restricted to specific embodiment described here, can carry out various obvious changes for a person skilled in the artChange, readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is entered by above exampleGo and be described in further detail, but the present invention has been not limited only to above example, without departing from the inventive concept,More other Equivalent embodiments can also be included, and the scope of the present invention is determined by scope of the appended claims.