Social dynamic pulling method and device, electronic equipment and storage medium

By obtaining the latest dates in social platforms and pulling dynamic information by pages in the order of dynamic publishing time, the problem of inefficiency of social platforms in the existing technology when pulling social dynamics of user attention lists is solved, and more efficient dynamics are achieved Information pull.

CN119441639APending Publication Date: 2025-02-14BEIJING PIXEL SOFTWARE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411571833.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

In the prior art, social platforms are inefficient when pulling out social dynamics of user attention lists. Active pulling causes redundant information to occupy storage space, while passive pulling requires high-cost organization and sorting data.

Method used

By obtaining the latest date, determining the account to be pulled, and quickly pulling local dynamic information on the page in the order of dynamic publishing time, pulling dynamic details based on the dynamic index in the dynamic information, and returning to the client to display.

Benefits of technology

It reduces the organization and sorting costs of social dynamics and improves the efficiency of social platforms when pulling social dynamics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441639A_ABST
    Figure CN119441639A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a social dynamic pulling method and device, electronic equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps of: acquiring a latest date to be pulled, and determining an account to be pulled in concerned accounts according to the latest date; obtaining to-be-pulled dynamic information corresponding to the to-be-pulled account according to the latest date and the dynamic number of each page; the to-be-pulled dynamic information comprises a dynamic index and dynamic release time; extracting target dynamic information from the to-be-pulled dynamic information according to the sequence of the dynamic release time; and pulling corresponding dynamic details according to the dynamic index of the target dynamic information, and returning the dynamic details to the client for display. According to the method, the local dynamic information is quickly pulled page by page according to the sequence of the dynamic release dates, and the dynamic details are pulled according to the dynamic indexes in the dynamic information and are returned to the client to be displayed, so that the organization and sorting cost of the social dynamic is reduced, and the social dynamic pulling efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for extracting social dynamics. Background Art

[0002] With the rapid development of Internet technology, various social platforms have been widely used. On these social platforms, each user will have a follow list, and the objects in the follow list are the user's friends or the objects that the user focuses on. Users can learn about the dynamics posted by friends or objects of interest by browsing the social dynamics in the follow list. When pulling social dynamics, electronic devices on the social platform server can use two methods: active pulling and passive pulling.

[0003] Among them, active pulling means that regardless of whether the customer uses the social platform, the electronic device on the server side will pull the social dynamics corresponding to each user's follow list, so that the user can log in at any time to view the social dynamics of the follow list. However, active pulling will generate a large amount of redundant information and occupy the storage space of the server.

[0004] Therefore, passive pulling is often used in the prior art to obtain social dynamics in the follow list. When a user browses the social dynamics in the follow list, the server sorts all the follow objects in the user's follow list, and then sorts the dynamics posted by the follow objects by time. The data range involved is large, and the organization and sorting costs are high, resulting in low efficiency in pulling social dynamics. Summary of the invention

[0005] In view of this, an object of the present invention is to provide a social dynamics extraction method, device, electronic device and storage medium, which can improve the efficiency of social dynamics extraction.

[0006] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:

[0007] In a first aspect, the present invention provides a social dynamics extraction method, the method comprising:

[0008] Obtain the latest date to be pulled, and determine the account to be pulled from the follow accounts according to the latest date;

[0009] According to the latest date and the number of dynamics per page, the dynamic information to be pulled corresponding to the account to be pulled is obtained; the dynamic information to be pulled includes a dynamic index and a dynamic publishing time;

[0010] According to the order of the dynamic release time, the target dynamic information is retrieved from the dynamic information to be retrieved; the number of the target dynamic information does not exceed the number of dynamics per page;

[0011] The corresponding dynamic details are pulled according to the dynamic index of the target dynamic information and returned to the client for display.

[0012] In an optional implementation manner, obtaining the latest date to be pulled includes:

[0013] Receiving an instruction to pull social dynamics corresponding to a logged-in account, and determining a list of dates to be pulled according to the logged-in account; the list of dates to be pulled records a correspondence between at least one date to be pulled and a follow-up account;

[0014] The latest date to be pulled in the list of dates to be pulled is determined as the latest date.

[0015] In an optional implementation, the receiving of an instruction to retrieve social dynamics corresponding to a login account, and determining a list of dates to be retrieved according to the login account, includes:

[0016] When pulling the homepage social dynamics corresponding to the login account, obtaining the follow list corresponding to the login account;

[0017] Constructing a list of objects to be pulled based on the follow accounts in the follow list and the latest dynamic release dates corresponding to the follow accounts;

[0018] According to the preset number of accounts and the latest dynamic release date, the target follow-up account is retrieved from the list of follow-up objects to be pulled;

[0019] At least one of the to-be-pulled dates corresponding to the target concerned account is acquired according to the target concerned account, and the target concerned account is classified according to each of the to-be-pulled dates to obtain the to-be-pulled date list.

[0020] In an optional implementation manner, after extracting the target follow-up account from the list of follow-up objects to be pulled according to the preset number of accounts and the latest dynamic release date, the method further includes:

[0021] If the follow account in the follow list also records other dynamic publishing dates, the follow account and the latest other dynamic publishing dates are saved in the list of follow objects to be pulled; the other dynamic publishing dates represent the dynamic publishing dates before the date to be pulled corresponding to the follow account.

[0022] In an optional implementation manner, determining the account to be pulled from the follow accounts according to the latest date includes:

[0023] Determine the follow-up account corresponding to the latest date in the list of dates to be pulled as the target account;

[0024] When the number of dynamic details to be displayed corresponding to the target account is not recorded in the list of dates to be pulled, the target account is determined as the account to be pulled, and after obtaining the dynamic information to be pulled corresponding to the account to be pulled or taking out the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is recorded in the list of dates to be pulled;

[0025] When the number of dynamic details to be displayed corresponding to the target account is recorded in the list of dates to be pulled, the target account whose number of dynamic details to be displayed is a preset value is determined as the account to be pulled, and after obtaining the dynamic information to be pulled corresponding to the account to be pulled or taking out the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is updated in the list of dates to be pulled.

[0026] In an optional implementation manner, the obtaining the dynamic information to be pulled corresponding to the account to be pulled according to the latest date and the dynamic quantity per page includes:

[0027] According to the latest date and the account to be pulled, a timeline container to be pulled corresponding to the account to be pulled is determined; the timeline container to be pulled is used to record the dynamic index and dynamic publishing time corresponding to the dynamics published by the account to be pulled on the latest date; the dynamic index is proportional to the dynamic publishing time;

[0028] When the next index value corresponding to the account to be pulled is not recorded in the list of dates to be pulled, the dynamic index and the corresponding dynamic publishing time are obtained from the timeline container to be pulled according to the dynamic quantity per page in reverse order of the index value, the dynamic information to be pulled corresponding to the account to be pulled is obtained, and the next index value corresponding to the account to be pulled is recorded in the list of dates to be pulled;

[0029] When the next index value corresponding to the account to be pulled is recorded in the list of dates to be pulled, the dynamic index starting with the next index value and the corresponding dynamic publishing time are obtained from the timeline container to be pulled in reverse order of the index values ​​according to the dynamic quantity per page, the dynamic information to be pulled corresponding to the account to be pulled is obtained, and the next index value corresponding to the account to be pulled is updated in the list of dates to be pulled.

[0030] In an optional implementation manner, after the step of acquiring the dynamic information to be pulled corresponding to the account to be pulled according to the latest date and the dynamic quantity per page, the method further includes:

[0031] When the to-be-pulled account does not have the to-be-pulled dynamic information, the to-be-pulled account is deleted from the entry corresponding to the latest date in the to-be-pulled date list;

[0032] When there is no follow-up account in the table item corresponding to the latest date, the table item corresponding to the latest date is deleted from the list of dates to be pulled.

[0033] In a second aspect, the present invention provides a social dynamics extraction device, the device comprising:

[0034] A processing module, used for obtaining the latest date to be pulled, and determining the account to be pulled from the follow accounts according to the latest date;

[0035] The acquisition module is used to acquire the dynamic information to be pulled corresponding to the account to be pulled according to the latest date and the number of dynamics per page; the dynamic information to be pulled includes a dynamic index and a dynamic release time; according to the order of the dynamic release time, the target dynamic information is taken out from the dynamic information to be pulled; the number of the target dynamic information does not exceed the number of dynamics per page;

[0036] The output module is used to pull the corresponding dynamic details according to the dynamic index of the target dynamic information and return them to the client for display.

[0037] In a third aspect, the present invention provides an electronic device comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the social dynamics pulling method described in any of the aforementioned implementations.

[0038] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the social dynamics extraction method as described in any one of the aforementioned embodiments.

[0039] Compared with the prior art, the social dynamics pulling method, device, electronic device and storage medium provided by the embodiments of the present invention quickly pulls local dynamic information by page in the order of dynamic release date, and pulls dynamic details according to the dynamic index in the dynamic information, and returns them to the client for display, thereby reducing the organization and sorting costs of social dynamics, and further improving the efficiency of social dynamics pulling.

[0040] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 A schematic diagram of a process of extracting social dynamics provided by an embodiment of the present invention is shown.

[0043] Figure 2 Another schematic flow chart of a social dynamics extraction method provided in an embodiment of the present invention is shown.

[0044] Figure 3 A schematic diagram of organizing and managing social dynamics provided by an embodiment of the present invention is shown.

[0045] Figure 4 A schematic diagram of a list of attention objects to be pulled provided by an embodiment of the present invention is shown.

[0046] Figure 5 A schematic diagram of a list of dates to be pulled provided by an embodiment of the present invention is shown.

[0047] Figure 6 Another schematic diagram of a list of attention objects to be pulled provided by an embodiment of the present invention is shown.

[0048] Figure 7 A schematic diagram of a dynamic information list provided by an embodiment of the present invention is shown.

[0049] Figure 8 Another schematic diagram of a list of dates to be pulled provided by an embodiment of the present invention is shown.

[0050] Fig. 9 Another schematic diagram of a list of dates to be pulled and dynamic information provided by an embodiment of the present invention is shown.

[0051] Fig.10 Another schematic diagram of a list of dates to be pulled and dynamic information provided by an embodiment of the present invention is shown.

[0052] Fig.11 Another schematic diagram of a list of dates to be pulled and dynamic information provided by an embodiment of the present invention is shown.

[0053] Fig.12 Another schematic diagram of a list of dates to be pulled and dynamic information provided by an embodiment of the present invention is shown.

[0054] Fig.13Another schematic diagram of a list of dates to be pulled provided by an embodiment of the present invention is shown.

[0055] Fig.14 A block diagram of a social dynamics extraction device provided by an embodiment of the present invention is shown.

[0056] Fig.15 A block diagram of an electronic device provided by an embodiment of the present invention is shown.

[0057] Icon: 100 - electronic device; 110 - memory; 120 - processor; 130 - communication module; 300 - social dynamics pulling device; 301 - processing module; 302 - acquisition module; 303 - output module. DETAILED DESCRIPTION

[0058] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0059] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.

[0060] It should be noted that relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0061] There are two ways to pull social dynamics: active pulling and passive pulling. Active pulling means that the server pulls the social dynamics corresponding to each user's follow list to the local server, so that when the user browses the social dynamics, the locally cached social dynamics can be easily and quickly returned. However, active pulling will take up a lot of storage space on the server. Therefore, the server usually uses passive pulling to pull the social dynamics of each user.

[0062] When a user (i.e., logged-in account) pulls social dynamics, the server obtains all the follow objects (i.e., follow accounts) in the user's follow list, sorts all the follow accounts, and then sorts the dynamics posted by the follow accounts by time. The organization and sorting involve a large range of data, resulting in low efficiency in pulling social dynamics.

[0063] Based on this, the social dynamics pulling method and device provided by the embodiments of the present invention quickly pull local dynamic information by page in the order of dynamic release date, and pull dynamic details according to the dynamic index in the dynamic information, and return them to the client for display, thereby reducing the organization and sorting costs of social dynamics, and further improving the efficiency of social dynamics pulling.

[0064] The embodiments of the present invention are described in detail below with reference to the accompanying drawings.

[0065] Please refer to Figure 1 , Figure 1 A schematic diagram of a process flow of a social dynamics extraction method provided by an embodiment of the present invention is shown. The method comprises the following steps:

[0066] Step S10, obtaining the latest date to be pulled, and determining the account to be pulled from the follow accounts according to the latest date.

[0067] In the embodiment of the present invention, in order to meet the needs of users to browse the latest dynamics, social dynamics are pulled in pages starting from the latest dynamic release time. When the follow account has not updated the dynamics, the dynamic details corresponding to the dynamic page browsed by the user will be cached in the client, so that the user can check the social dynamics that have been browsed at any time. Once the follow account updates the dynamics, the client needs to pull the social dynamics in pages again.

[0068] When a user browses a new dynamic page, the latest date to be pulled is obtained. The latest date represents one or more dates that are closest to the current date among the dates to be pulled. The account to be pulled is determined from the follow accounts corresponding to the latest date. The follow accounts corresponding to the latest date refer to the follow accounts that have sent dynamics on the latest date.

[0069] Step S20, according to the latest date and the number of dynamics per page, obtain the dynamic information to be pulled corresponding to the account to be pulled; the dynamic information to be pulled includes the dynamic index and the dynamic publishing time.

[0070] In an embodiment of the present invention, the dynamic information to be pulled is obtained according to the number of dynamics per page, the latest date and the account to be pulled. Among them, the dynamic index is globally uniformly addressed and is used to uniquely identify the dynamic details. The dynamic index may include the identifier of the follow-up account, the dynamic release date and the index value. The index value is used to characterize the order of the dynamic index of the follow-up account within the dynamic release date. The larger the index value, the more recent the dynamic details corresponding to the dynamic index are released. The dynamic index can be set according to the actual application scenario, which is not limited by the present invention.

[0071] Step S30, extracting target dynamic information from the dynamic information to be pulled in the order of dynamic publishing time; the number of target dynamic information does not exceed the number of dynamics per page.

[0072] In the embodiment of the present invention, when the number of dynamic information to be pulled is not less than the number of dynamic information per page, the dynamic information to be pulled with a newer dynamic publishing time is selected as the target dynamic information according to the number of dynamic information per page. When the number of dynamic information to be pulled is less than the number of dynamic information per page, all the dynamic information to be pulled is determined as the target dynamic information. In other words, when the user browses to the last dynamic page, the dynamic details to be displayed are less than one page, and the remaining dynamic information to be pulled is determined as the target dynamic information.

[0073] Step S40: Pull corresponding dynamic details according to the dynamic index of the target dynamic information, and return them to the client for display.

[0074] In the embodiment of the present invention, the corresponding dynamic details are pulled according to the dynamic index of the target dynamic information, packaged and sent to the client for display.

[0075] To sum up, the social dynamics pulling method provided by the embodiment of the present invention quickly pulls local dynamic information by page in the order of dynamic release date, and pulls dynamic details according to the dynamic index in the dynamic information, and returns them to the client for display, thereby reducing the organization and sorting costs of social dynamics, and further improving the efficiency of social dynamics pulling.

[0076] Optionally, for how to obtain the latest date to be pulled, the following is a possible implementation method. Please refer to Figure 2 , Figure 1 The sub-step of obtaining the latest date to be pulled in step S10 may include:

[0077] Step S101, receiving an instruction to pull social dynamics corresponding to a logged-in account, and determining a list of dates to be pulled according to the logged-in account; the list of dates to be pulled records a correspondence between at least one date to be pulled and a follow-up account.

[0078] In an embodiment of the present invention, a list of dates to be pulled is used to record at least one date to be pulled corresponding to a login account and an account to be followed corresponding to the date to be pulled. The account to be followed corresponding to the date to be pulled refers to an account to be followed that has posted dynamics on the date to be pulled. Different items in the list of dates to be pulled are used to record different dates to be pulled and corresponding accounts to be followed, and different dates to be pulled may correspond to the same account to be followed.

[0079] Step S102: determine the latest date to be pulled in the list of dates to be pulled as the latest date.

[0080] In the embodiment of the present invention, the latest date to be pulled in the list of dates to be pulled is obtained as the latest date. When the dynamic information to be pulled corresponding to the latest date is accumulated, and the total amount of dynamic information to be pulled is still lower than the dynamic amount per page, the next latest date to be pulled in the list of dates to be pulled is determined as the new latest date, until the total amount of dynamic information to be pulled reaches the dynamic amount per page, and at least one latest date is obtained.

[0081] Optionally, when pulling social dynamics on the homepage, a possible implementation method is provided below on how to determine a list of dates to be pulled based on a login account. Figure 2 The sub-step of obtaining the latest date to be pulled in step S101 may include:

[0082] When pulling the social dynamics on the homepage corresponding to the logged-in account, obtain the follow list corresponding to the logged-in account; build a list of objects to be pulled based on the follow accounts in the follow list and the latest dynamic release dates corresponding to the follow accounts; take out the target follow account from the list of objects to be pulled based on the preset number of accounts and the latest dynamic release dates; obtain at least one to-be-pulled date corresponding to the target follow account based on the target follow account, and classify the target follow accounts according to each to-be-pulled date to obtain a list of to-be-pulled dates.

[0083] As a possible implementation method, assume that a Redis database is used to store the follow list of each account and the dynamic information corresponding to the follow account in the follow list, such as Figure 3 shown. Figure 3 The following list of account X is given in the figure. The following accounts in the following list are account A, account B, account C and account D. In other words, account X follows four accounts: account A, account B, account C and account D. When account X browses the dynamics in the following list, he will only browse the dynamics posted by these four accounts.

[0084] from Figure 3It can be seen that a total time container is set for each follow account. The total time container of each follow account is used to record all dynamic release dates corresponding to the follow account, and can also record the first release time of the dynamic release on each dynamic release date. The total time container of each follow account is also used to manage the timeline container corresponding to each dynamic release date of the follow account.

[0085] When publishing dynamics, if the corresponding timeline container does not exist in the redis database on the day when the account you follow publishes the dynamics, you need to create a new timeline container corresponding to the dynamic publishing date. For example, when account A sends the first dynamic of the day at 23:10 on June 13, 20XX, at this time, 20XX-6-13 is not recorded in the total time container of account A. Add 20XX-6-13 and 23:10 to the total time container of account A, create the 20XX-6-13 timeline container of account A, and update the latest dynamic publishing date of account A in the redis database to 20XX-6-13.

[0086] Generate a dynamic index based on the ID of the account being followed, the dynamic release date, and the newly assigned index value, and store the dynamic index and dynamic details in the redis database one by one. At the same time, save the dynamic index and the dynamic release time 6-1323:10 to the 20XX-6-13 timeline container of account A, that is, manage the 20XX-6-13 timeline container of account A under the total time container of account A.

[0087] It should be noted that, since the dynamic posted at 23:10 is the first dynamic post, the index value can be set to the initial index, for example, the initial index is set to 1. When dynamic posts are posted later that day, the index values ​​are assigned incrementally, and the present invention does not limit how to set the index value.

[0088] In the embodiment of the present invention, when a user browses the social dynamics on the homepage based on the login account, the corresponding follow list is obtained according to the login account, and a list of objects to be pulled is generated according to the time sequence and the corresponding latest dynamic release date of each follow account in the follow list. At this time, the list of objects to be pulled records all the objects in the follow list.

[0089] Continue with Figure 3 For example, assuming that the login account is account X, when pulling the social dynamics of the homepage corresponding to account X, the list of objects to be pulled is constructed as follows Figure 4 shown. Figure 4In the list of objects to be pulled, there are records of account A, account B, account C and account D. The dynamic release date corresponding to account A is 20XX-6-13, the dynamic release date corresponding to account B is 20XX-6-13, the dynamic release date corresponding to account C is 20XX-6-11, and the dynamic release date corresponding to account D is 20XX-6-8.

[0090] by Figure 4 For example, assuming that the number of preset accounts is 3 and the number of dates to be pulled is 3. According to the order of the latest dynamic release date, accounts A, B and C in the list of objects to be pulled are selected as target accounts.

[0091] For each target follow account, obtain up to three dates to be pulled starting from the corresponding latest dynamic release date. Specifically, the dates to be pulled corresponding to account A are 20XX-6-13, 20XX-6-11, and 20XX-6-9, the dates to be pulled corresponding to account B are 20XX-6-13, 20XX-6-11, and 20XX-6-9, and the date to be pulled corresponding to account C is 20XX-6-12. At this point, there are four dates to be pulled, and the target follow accounts are classified according to the dates to be pulled, that is, 20XX-6-13 corresponds to account A and account B, 20XX-6-12 corresponds to account C, 20XX-6-11 corresponds to account A and account B, and 20XX-6-9 corresponds to account A and account B. The list of dates to be pulled is obtained, such as Figure 5 shown.

[0092] It can be seen that the embodiment of the present invention uses the preset number of accounts and the number of dates to be pulled to recursively construct and update the list of dates to be pulled, and uses the list of dates to be pulled to pull social dynamics page by page, thereby achieving the effect of local fast sorting and pulling, which can effectively improve the efficiency of social dynamics pulling.

[0093] Optionally, a possible implementation method is provided below for how to update the list of follow objects to be pulled. The social dynamics pulling method also includes the following steps:

[0094] If the follow account in the follow list also records other dynamic release dates, the follow account and the latest other dynamic release date are saved in the list of follow objects to be pulled; other dynamic release dates represent dynamic release dates before the date to be pulled corresponding to the follow account.

[0095] Continue with Figure 3 For example, remove the target follow account that does not have other dynamic release dates and the corresponding latest dynamic release date from the list of follow objects to be pulled. Figure 4Account B, the latest update date corresponding to account B 20XX-6-13, account C and the latest update date corresponding to account C 20XX-6-12 are removed from the list of objects to be pulled.

[0096] If the target account has other dynamic release dates, use the latest dynamic release date to update the dynamic release date of the target account in the list of objects to be pulled. Figure 4 Account A also has a dynamic release date of 20XX-6-8. Use the dynamic release date 20XX-6-8 to update the dynamic release date corresponding to account A, and obtain the updated list of objects to be pulled, such as Figure 6 shown.

[0097] Optionally, the following is a possible implementation method for how to pull the account. Figure 2 , Figure 1 The sub-step of determining the account to be pulled from the follow-up accounts according to the latest date in step S10 may include:

[0098] Step S103, determining the follow-up account corresponding to the latest date in the list of dates to be pulled as the target account.

[0099] Step S104, when the number of dynamic details to be displayed corresponding to the target account is not recorded in the list of dates to be pulled, the target account is determined as the account to be pulled, and after obtaining the dynamic information to be pulled corresponding to the account to be pulled or taking out the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is recorded in the list of dates to be pulled.

[0100] In an embodiment of the present invention, when the number of dynamic details to be displayed corresponding to the target account is not recorded in the list of dates to be pulled, it means that it is the first time to pull the dynamic information of the target account on the latest date, and all target accounts are used as accounts to be pulled. After the dynamic information to be pulled from the account to be pulled, the number of dynamic information to be pulled is used as the number of dynamic details to be displayed corresponding to the account to be pulled, and is recorded in the list of dates to be pulled. When the dynamic information to be pulled corresponding to the account to be pulled is popped up as the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is set to a preset value, such as 0.

[0101] Step S105, when the number of dynamic details to be displayed corresponding to the target account is recorded in the list of dates to be pulled, the target account whose number of dynamic details to be displayed is a preset value is determined as the account to be pulled, and after obtaining the dynamic information to be pulled corresponding to the account to be pulled or taking out the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is updated in the list of dates to be pulled.

[0102] In an embodiment of the present invention, when the number of dynamic details to be displayed corresponding to the target account is recorded in the list of dates to be pulled, it means that the dynamic information of the target account about the latest date has been pulled. When the number of dynamic details to be displayed is not the preset value, it means that the dynamic information pulled from the target account has not yet been displayed to the user, and there is no need to pull the dynamic information of the target account at this moment.

[0103] When the number of dynamic details to be displayed is a preset value (for example, the preset value is 0), it means that the dynamic information pulled out by the target account was published earlier and has been popped up and displayed to the user. At this moment, the target account needs to be determined as the account to be pulled, and after the dynamic information to be pulled is pulled from the account to be pulled, the number of dynamic details to be displayed corresponding to the account to be pulled in the list of dates to be pulled is updated to the number of dynamic information to be pulled. When the dynamic information to be pulled corresponding to the account to be pulled is popped up as the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is set to the preset value, for example, 0.

[0104] Optionally, the following provides a possible implementation method for how to pull the dynamic information corresponding to the account to be pulled. Figure 2 , Figure 1 The sub-step of step S20 may include:

[0105] Step S201, according to the latest date and the account to be pulled, determine the timeline container to be pulled corresponding to the account to be pulled; the timeline container to be pulled is used to record the dynamic index and dynamic publishing time corresponding to the dynamics published by the account to be pulled on the latest date; the dynamic index is proportional to the dynamic publishing time.

[0106] As a possible implementation, continue with Figure 3 and Figure 5 For example, assume that each timeline container of each account records 10 dynamic information, and the number of dynamics per page is 3. When pulling the social dynamics on the homepage, the latest date is 20XX-6-13.

[0107] When the dynamic information corresponding to the latest date 20XX-6-13 is first pulled, both account A and account B are determined as accounts to be pulled. The timeline container to be pulled for account A determined based on account A and 20XX-6-13 is the 20XX-6-13 timeline container of account A. Similarly, the timeline container to be pulled for account B is the 20XX-6-13 timeline container of account B.

[0108] Step S202, when the next index value corresponding to the account to be pulled is not recorded in the list of dates to be pulled, the dynamic index and the corresponding dynamic publishing time are obtained from the timeline container to be pulled in reverse order of the index value according to the number of dynamics per page, the dynamic information to be pulled corresponding to the account to be pulled is obtained, and the next index value corresponding to the account to be pulled is recorded in the list of dates to be pulled.

[0109] In the embodiment of the present invention, when the next index value corresponding to the account to be pulled is not recorded in the list of dates to be pulled, it means that the dynamic information of the account to be pulled is pulled for the first time, that is, the dynamic information of the account to be pulled on the latest date is pulled for the first time. Since the dynamic index is proportional to the dynamic release time, that is, the index value is proportional to the dynamic release time, the larger the index value, the newer the dynamic release time.

[0110] Get three pieces of dynamic information with index values ​​of 10, 9, and 8 from the 20XX-6-13 timeline container of account A, and get three pieces of dynamic information with index values ​​of 10, 9, and 8 from the 20XX-6-13 timeline container of account B. Get six pieces of dynamic information to be pulled and save them in the dynamic information list, such as Figure 7 shown.

[0111] At the same time, update the 20XX-6-13 table item in the list of dates to be pulled, set the number of dynamic details to be displayed for account A and account B in the 20XX-6-13 table item to 3, and set the next index value to 7. The updated list of dates to be pulled is as follows: Figure 8 shown.

[0112] Since the dynamic information of account A is published later than that of account B in the dynamic information list, the three dynamic information of account A are taken out from the dynamic information list as the target dynamic information to pull the corresponding dynamic details and return them to the client for display. At the same time, the number of dynamic details to be displayed corresponding to account A in the 20XX-6-13 table item in the list of dates to be pulled is updated to 0. The updated dynamic information list and the list of dates to be pulled are as follows: Fig. 9 shown.

[0113] Step S203, when the next index value corresponding to the account to be pulled is recorded in the list of dates to be pulled, the dynamic index starting from the next index value and the corresponding dynamic publishing time are obtained from the timeline container to be pulled in reverse order of the index value according to the dynamic quantity per page, the dynamic information to be pulled corresponding to the account to be pulled is obtained, and the next index value corresponding to the account to be pulled is updated in the list of dates to be pulled.

[0114] In the embodiment of the present invention, when the user pulls the second page dynamics, based on Fig. 9Continue to execute, the latest date is 20XX-6-13, because the number of dynamic details to be displayed for account A in the 20XX-6-13 table item in the list of dates to be pulled is 0, and the next index value is 7, account A is determined as the account to be pulled. Starting from index value 7, three dynamic information corresponding to index values ​​7, 6, and 5 are obtained from the 20XX-6-13 timeline container of account A, and the number of dynamic details to be displayed for account A in the 20XX-6-13 table item in the list of dates to be pulled is updated to 3, and the next index value is updated to 4. At the same time, the newly obtained dynamic information is added to the dynamic information list. The updated dynamic information list and the list of dates to be pulled are as follows: Fig.10 shown.

[0115] Optionally, a possible implementation method is provided below for how to update the list of dates to be pulled. Figure 1 After step S20, the social dynamics extraction method further includes the following steps:

[0116] When there is no dynamic information to be pulled for the account to be pulled, the account to be pulled is deleted from the table item corresponding to the latest date in the list of dates to be pulled; when there is no follow-up account in the table item corresponding to the latest date, the table item corresponding to the latest date is deleted from the list of dates to be pulled.

[0117] Continue with Figure 3 For example, when the user browses the fourth page of social dynamics, the latest date is still 20XX-6-13. After obtaining the dynamic information with an index value of 1 from the 20XX-6-13 timeline container of account A, there is no dynamic information to be pulled in the 20XX-6-13 timeline container of account A. Account A is deleted from the 20XX-6-13 table item in the list of dates to be pulled. At the same time, the newly obtained dynamic information is added to the dynamic information list. The updated dynamic information list and the list of dates to be pulled are as follows: Fig.11 shown.

[0118] When the user browses the seventh page of social dynamics, the latest dates are 20XX-6-13 and 20XX-6-12. After obtaining the dynamic information with an index value of 1 from the 20XX-6-13 timeline container of account B, there is no dynamic information to be pulled in the 20XX-6-13 timeline container of account B, and account B is deleted from the 20XX-6-13 table item in the list of dates to be pulled. At this time, there is no follow account in the 20XX-6-13 table item, and the 20XX-6-13 table item is deleted from the list of dates to be pulled.

[0119] Get the three pieces of dynamic information corresponding to the index values ​​10, 9 and 8 from the 20XX-6-12 timeline container of account C, save the newly acquired four pieces of dynamic information into the dynamic information list, and set the number of dynamic details to be displayed for account C in the 20XX-6-12 table item to 3, and the next index value to 7. The updated dynamic information list and the list of dates to be pulled are as follows: Fig.12 shown.

[0120] When the 20XX-6-9 entry in the list of dates to be pulled is empty, delete the 20XX-6-9 entry from the list of dates to be pulled, and use Figure 6 Update the list of dates to be pulled in the updated list of objects to be pulled. That is, add the 20XX-6-8 table item to the list of dates to be pulled, and add account A and account D to the 20XX-6-8 table item. The updated list of dates to be pulled is as follows: Fig.13 As shown. Since the follow-up account in the follow-up list does not record other dynamic release dates, delete the empty list of follow-up objects to be pulled. When the 20XX-6-8 item in the list of dates to be pulled is empty, delete the empty list of dates to be pulled. When the dynamic information list is empty, that is, all dynamic details corresponding to the follow-up list are pulled, and notify the client that the social dynamic display is complete.

[0121] Based on the same inventive concept, the basic principle and technical effect of the social dynamic pulling device provided in the embodiment of the present invention are the same as those in the above embodiment. For the sake of brief description, for parts not mentioned in this embodiment, reference may be made to the corresponding contents in the above embodiment.

[0122] Please refer to Fig.14 , Fig.14 A block diagram of a social dynamics extraction device 300 provided in an embodiment of the present invention. The social dynamics extraction device 300 includes a processing module 301 , an acquisition module 302 , and an output module 303 .

[0123] Processing module 301, used to obtain the latest date to be pulled, and determine the account to be pulled from the follow accounts according to the latest date;

[0124] The acquisition module 302 is used to acquire the dynamic information to be pulled corresponding to the account to be pulled according to the latest date and the number of dynamics per page; the dynamic information to be pulled includes the dynamic index and the dynamic release time; according to the order of the dynamic release time, the target dynamic information is taken out from the dynamic information to be pulled; the number of the target dynamic information does not exceed the number of dynamics per page;

[0125] The output module 303 is used to pull the corresponding dynamic details according to the dynamic index of the target dynamic information and return them to the client for display.

[0126] To sum up, the social dynamics pulling device provided by the embodiment of the present invention quickly pulls local dynamic information by page in the order of dynamic release date, and pulls dynamic details according to the dynamic index in the dynamic information, and returns it to the client for display, thereby reducing the organization and sorting costs of social dynamics, and further improving the efficiency of social dynamics pulling.

[0127] Optionally, processing module 301 is specifically used to receive instructions for pulling social dynamics corresponding to a logged-in account, determine a list of dates to be pulled based on the logged-in account; the list of dates to be pulled records the correspondence between at least one date to be pulled and a followed account; and determine the latest date to be pulled in the list of dates to be pulled as the latest date.

[0128] Optionally, processing module 301 is specifically used to obtain a follow list corresponding to the login account when pulling the homepage social dynamics corresponding to the login account; construct a list of follow objects to be pulled according to the follow accounts in the follow list and the latest dynamic publication dates corresponding to the follow accounts; retrieve the target follow account from the list of follow objects to be pulled according to the preset number of accounts and the latest dynamic publication date; obtain at least one to-be-pulled date corresponding to the target follow account according to the target follow account, and classify the target follow account according to each to-be-pulled date to obtain a list of to-be-pulled dates.

[0129] Optionally, processing module 301 is also used to save the follow account and the latest other dynamic publishing date into the list of follow objects to be pulled if the follow account in the follow list also records other dynamic publishing dates; other dynamic publishing dates represent dynamic publishing dates before the date to be pulled corresponding to the follow account.

[0130] Optionally, processing module 301 is specifically used to determine the follow-up account corresponding to the latest date in the list of dates to be pulled as the target account; when the number of dynamic details to be displayed corresponding to the target account is not recorded in the list of dates to be pulled, the target account is determined as the account to be pulled, and after obtaining the dynamic information to be pulled corresponding to the account to be pulled or taking out the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is recorded in the list of dates to be pulled; when the number of dynamic details to be displayed corresponding to the target account is recorded in the list of dates to be pulled, the target account whose number of dynamic details to be displayed is a preset value is determined as the account to be pulled, and after obtaining the dynamic information to be pulled corresponding to the account to be pulled or taking out the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is updated in the list of dates to be pulled.

[0131] Optionally, the acquisition module 302 is specifically used to determine the timeline container to be pulled corresponding to the account to be pulled according to the latest date and the account to be pulled; the timeline container to be pulled is used to record the dynamic index and dynamic publishing time corresponding to the dynamics published by the account to be pulled on the latest date; the dynamic index is proportional to the dynamic publishing time; when the next index value corresponding to the account to be pulled is not recorded in the list of dates to be pulled, the dynamic index and the corresponding dynamic publishing time are obtained from the timeline container to be pulled in reverse order of the index value according to the number of dynamics per page, to obtain the dynamic information to be pulled corresponding to the account to be pulled, and record the next index value corresponding to the account to be pulled in the list of dates to be pulled.

[0132] When the next index value corresponding to the account to be pulled is recorded in the list of dates to be pulled, the dynamic index starting from the next index value and the corresponding dynamic publishing time are obtained from the timeline container to be pulled in reverse order of the index value according to the number of dynamics per page, the dynamic information to be pulled corresponding to the account to be pulled is obtained, and the next index value corresponding to the account to be pulled is updated in the list of dates to be pulled.

[0133] Optionally, the acquisition module 302 is also used to delete the account to be pulled from the table item corresponding to the latest date in the list of dates to be pulled when there is no dynamic information to be pulled for the account to be pulled; when there is no follow-up account in the table item corresponding to the latest date, delete the table item corresponding to the latest date from the list of dates to be pulled.

[0134] Please refer to Fig.15 , is a block diagram of an electronic device 100 provided in an embodiment of the present invention. The electronic device 100 includes a memory 110, a processor 120, and a communication module 130. The memory 110, the processor 120, and the communication module 130 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0135] The memory 110 is used to store programs or data. The memory 110 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), etc.

[0136] The processor 120 is used to read / write data or programs stored in the memory 110 and execute corresponding functions. For example, when the computer program stored in the memory 110 is executed by the processor 120, the social dynamics extraction method disclosed in the above embodiments can be implemented.

[0137] The communication module 130 is used to establish a communication connection between the electronic device 100 and other communication terminals through a network, and to send and receive data through the network.

[0138] It should be understood that Fig.15 The structure shown is only a schematic diagram of the structure of the electronic device 100. The electronic device 100 may also include Fig.15 More or fewer components as shown, or with Fig.15 Different configurations are shown. Fig.15 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0139] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by the processor 120, the social dynamics extraction method disclosed in the above embodiments is implemented.

[0140] The embodiment of the present invention further provides a program product, which, when executed by the processor 120, implements the social dynamics pulling method disclosed in the above embodiments.

[0141] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0142] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.

[0143] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0144] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A social dynamics extraction method, characterized in that: The method comprises: Obtain the latest date to be pulled, and determine the account to be pulled from the follow accounts according to the latest date; According to the latest date and the number of dynamics per page, the dynamic information to be pulled corresponding to the account to be pulled is obtained; the dynamic information to be pulled includes a dynamic index and a dynamic publishing time; According to the order of the dynamic release time, the target dynamic information is retrieved from the dynamic information to be retrieved; the number of the target dynamic information does not exceed the number of dynamics per page; The corresponding dynamic details are pulled according to the dynamic index of the target dynamic information and returned to the client for display.

2. The social dynamics extraction method according to claim 1, characterized in that: The latest date to be pulled includes: Receiving an instruction to pull social dynamics corresponding to a logged-in account, and determining a list of dates to be pulled according to the logged-in account; the list of dates to be pulled records a correspondence between at least one date to be pulled and a follow-up account; The latest date to be pulled in the list of dates to be pulled is determined as the latest date.

3. The social dynamics extraction method according to claim 2, characterized in that: The receiving of an instruction to pull social dynamics corresponding to a login account, and determining a list of dates to be pulled according to the login account, includes: When pulling the homepage social dynamics corresponding to the login account, obtaining the follow list corresponding to the login account; Constructing a list of objects to be pulled based on the follow accounts in the follow list and the latest dynamic release dates corresponding to the follow accounts; According to the preset number of accounts and the latest dynamic release date, the target follow-up account is retrieved from the list of follow-up objects to be pulled; At least one of the to-be-pulled dates corresponding to the target concerned account is acquired according to the target concerned account, and the target concerned account is classified according to each of the to-be-pulled dates to obtain the to-be-pulled date list.

4. The social dynamics extraction method according to claim 3, characterized in that: After extracting the target follow-up account from the list of follow-up objects to be pulled according to the preset number of accounts and the latest dynamic release date, the method further includes: If the follow account in the follow list also records other dynamic publishing dates, the follow account and the latest other dynamic publishing dates are saved in the list of follow objects to be pulled; the other dynamic publishing dates represent the dynamic publishing dates before the date to be pulled corresponding to the follow account.

5. The social dynamics extraction method according to claim 2, characterized in that: Determining the account to be pulled from the follow accounts according to the latest date includes: Determine the follow-up account corresponding to the latest date in the list of dates to be pulled as the target account; When the number of dynamic details to be displayed corresponding to the target account is not recorded in the list of dates to be pulled, the target account is determined as the account to be pulled, and after obtaining the dynamic information to be pulled corresponding to the account to be pulled or taking out the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is recorded in the list of dates to be pulled; When the number of dynamic details to be displayed corresponding to the target account is recorded in the list of dates to be pulled, the target account whose number of dynamic details to be displayed is a preset value is determined as the account to be pulled, and after obtaining the dynamic information to be pulled corresponding to the account to be pulled or taking out the target dynamic information, the number of dynamic details to be displayed corresponding to the account to be pulled is updated in the list of dates to be pulled.

6. The social dynamics extraction method according to claim 2, characterized in that: The dynamic index includes an index value, and obtaining the dynamic information to be pulled corresponding to the account to be pulled according to the latest date and the dynamic quantity per page includes: According to the latest date and the account to be pulled, a timeline container to be pulled corresponding to the account to be pulled is determined; the timeline container to be pulled is used to record the dynamic index and dynamic publishing time corresponding to the dynamics published by the account to be pulled on the latest date; the dynamic index is proportional to the dynamic publishing time; When the next index value corresponding to the account to be pulled is not recorded in the list of dates to be pulled, the dynamic index and the corresponding dynamic publishing time are obtained from the timeline container to be pulled according to the dynamic quantity per page in reverse order of the index value, the dynamic information to be pulled corresponding to the account to be pulled is obtained, and the next index value corresponding to the account to be pulled is recorded in the list of dates to be pulled; When the next index value corresponding to the account to be pulled is recorded in the list of dates to be pulled, the dynamic index starting with the next index value and the corresponding dynamic publishing time are obtained from the timeline container to be pulled in reverse order of the index values ​​according to the dynamic quantity per page, the dynamic information to be pulled corresponding to the account to be pulled is obtained, and the next index value corresponding to the account to be pulled is updated in the list of dates to be pulled.

7. The social dynamics extraction method according to claim 2, characterized in that: After the step of obtaining the dynamic information to be pulled corresponding to the account to be pulled according to the latest date and the dynamic quantity per page, the method further includes: When the to-be-pulled account does not have the to-be-pulled dynamic information, the to-be-pulled account is deleted from the entry corresponding to the latest date in the to-be-pulled date list; When there is no follow-up account in the table item corresponding to the latest date, the table item corresponding to the latest date is deleted from the list of dates to be pulled.

8. A social dynamics extraction device, characterized in that: The device comprises: A processing module, used for obtaining the latest date to be pulled, and determining the account to be pulled from the follow accounts according to the latest date; The acquisition module is used to acquire the dynamic information to be pulled corresponding to the account to be pulled according to the latest date and the number of dynamics per page; the dynamic information to be pulled includes a dynamic index and a dynamic release time; according to the order of the dynamic release time, the target dynamic information is taken out from the dynamic information to be pulled; the number of the target dynamic information does not exceed the number of dynamics per page; The output module is used to pull the corresponding dynamic details according to the dynamic index of the target dynamic information and return them to the client for display.

9. An electronic device, characterized in that: It includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor can execute the machine executable instructions to implement the social dynamics pulling method described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the social dynamics pulling method according to any one of claims 1 to 7 is implemented.