CN111552860A - Feed acquisition method and device, electronic equipment and storage medium - Google Patents

Feed acquisition method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111552860A
CN111552860A CN202010339806.9A CN202010339806A CN111552860A CN 111552860 A CN111552860 A CN 111552860A CN 202010339806 A CN202010339806 A CN 202010339806A CN 111552860 A CN111552860 A CN 111552860A
Authority
CN
China
Prior art keywords
target
information content
feed
content
identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010339806.9A
Other languages
Chinese (zh)
Other versions
CN111552860B (en
Inventor
姜凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010339806.9A priority Critical patent/CN111552860B/en
Publication of CN111552860A publication Critical patent/CN111552860A/en
Application granted granted Critical
Publication of CN111552860B publication Critical patent/CN111552860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a feed acquisition method, a feed acquisition device, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a target feed acquisition request sent by a client, wherein the target feed acquisition request comprises identification information of a target feed; determining an information content identification group with identification information of a target feed as a target information content identification group; the target information content identification group comprises: at least one target information content identifier, wherein the target information content identifier is an identifier of the target information content; acquiring target information content corresponding to each target information content identifier in a target information content identifier group; and generating target feeds based on the target information contents and sending the target feeds to the client. By adopting the method provided by the embodiment of the invention, the target feed can be obtained without storing the generated feed to the feed pool, and the storage resource of the feed pool is saved.

Description

Feed acquisition method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a feed acquisition method, apparatus, electronic device, and storage medium.
Background
In recent years, feed streams have been used very widely. A feed stream is understood to be an information stream that characterizes the information flow that is passed between an information producer and an information consumer, wherein in the field of information technology a feed is understood to be information that is produced by an information producer for an information consumer. Typically a feed may comprise one or more pieces of information, wherein the pieces of information may be text, pictures, video and audio. For example, a feed may include: a picture and a segment of text. Common application scenarios for feed streams may be various news browsers and various social software.
Generally, users and feed producers can upload information contents to a server, and the server can store the uploaded information contents to a content pool after receiving the uploaded information contents. When feed production is carried out, a feed producer can obtain information content matched with the theme of the feed to be produced from the content pool, select proper information content from the obtained information content to combine, further produce the combined information content into a feed, and store the produced feed to the feed pool so as to be convenient for a user to obtain.
However, a feed produced may have duplication of information content, e.g., the same text, pictures, or video may be present in different feeds. If the same information content exists in a plurality of feeds stored in the feed pool, that is, the same information content is repeatedly stored in the feed pool for a plurality of times. Storing the same information content multiple times in the feed pool results in wasted storage resources of the feed pool. Also, it is often desirable for feed producers to produce feeds that are rich in content, such as feeds that contain video, text, and pictures. The pictures and videos occupy more storage resources, and when a plurality of feeds contain the same picture or video, the same picture or video contained in the feeds is repeatedly stored in the feed pool for multiple times, which causes a great waste of the storage resources of the feed pool.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a method and an apparatus for acquiring a feed, an electronic device, and a storage medium, so as to save storage resources of a feed pool.
In order to achieve the above object, an embodiment of the present invention provides a feed acquisition method, applied to a server, including:
receiving a target feed acquisition request sent by a client, wherein the target feed acquisition request comprises identification information of a target feed;
determining an information content identification group with the identification information of the target feed as a target information content identification group; the target information content identification group comprises: at least one target information content identifier, wherein the target information content identifier is an identifier of the target information content;
acquiring target information content corresponding to each target information content identifier in the target information content identifier group;
and generating a target feed based on each target information content and sending the target feed to the client.
Further, the identification information of the target feed includes: the content tag of the target feed, and/or the identification information of the producer of the target information content identification group.
Further, the determining the information content identification group with the identification information of the target feed as a target information content identification group includes:
and finding out the information content identification group with the identification information of the target feed from the information content identification groups stored in the feed pool as a target information content identification group, wherein the feed pool is used for storing the information content identification group.
Further, the acquiring of the target information content corresponding to each target information content identifier in the target information content identifier group includes:
and based on each target information content identifier in the target information content identifier group, searching out the information content corresponding to each target information content identifier from the information content stored in a content pool as the target information content, wherein the content pool is used for storing the information content.
Further, the generating a feed based on each target information content as a target feed includes:
acquiring the arrangement sequence of the target information content identifications in the target information content identification group; and generating a feed containing the target information content as a target feed, wherein the arrangement sequence of each target information content in the target feed is correspondingly the same as the arrangement sequence of the target information content identifier in the target information content identifier group.
Further, the method further comprises:
obtaining a modification instruction aiming at the target feed sent by a client; the modification instruction comprises identification information of the target feed, target information content to be modified and a modification mode;
when the modification mode is deletion, deleting the target information content to be modified to obtain a modified target feed;
when the modification mode is replacing content, replacing the target information content to be modified by using the information content specified in the modification instruction of the target feed to obtain a modified target feed;
when the modification mode is adding content, adding specified information content at a specified position in the target feed based on the specified position and the specified information content in the modification instruction of the target feed to obtain the modified target feed;
and sending the modified target feed to the client.
In order to achieve the above object, an embodiment of the present invention further provides a feed acquisition apparatus, including:
the request receiving module is used for receiving a target feed acquisition request sent by a client, wherein the target feed acquisition request comprises identification information of a target feed;
an identification group determination module, configured to determine an information content identification group having the identification information of the target feed as a target information content identification group; the target information content identification group comprises: at least one target information content identifier, wherein the target information content identifier is an identifier of the target information content;
the information content acquisition module is used for acquiring the target information content corresponding to each target information content identifier in the target information content identifier group;
a feed generation module for generating feeds as target feeds based on the target information contents;
and the feed sending module is used for sending the target feed to the client.
Further, the identification information of the target feed includes: the content tag of the target feed, and/or the identification information of the producer of the target information content identification group.
Further, the identifier group determining module is specifically configured to find an information content identifier group having identifier information of the target feed from information content identifier groups stored in a feed pool, where the feed pool is used to store the information content identifier group, and the information content identifier group is used as a target information content identifier group.
Further, the information content obtaining module is specifically configured to find, based on each target information content identifier in the target information content identifier group, information content corresponding to each target information content identifier from information content stored in a content pool, where the content pool is used for storing the information content, and the information content corresponding to each target information content identifier is used as the target information content.
Further, the feed generation module is specifically configured to obtain an arrangement order of the target information content identifiers in the target information content identifier group; and generating a feed containing the target information content as a target feed, wherein the arrangement sequence of each target information content in the target feed is correspondingly the same as the arrangement sequence of the target information content identifier in the target information content identifier group.
Further, the apparatus further includes: a feed modification module;
the request receiving module is further configured to obtain a modification instruction for the target feed sent by the client; the modification instruction comprises identification information of the target feed, target information content to be modified and a modification mode;
the feed modification module is used for deleting the target information content to be modified when the modification mode is deletion, so as to obtain a modified target feed; when the modification mode is replacing content, replacing the target information content to be modified by using the information content specified in the modification instruction of the target feed to obtain a modified target feed; when the modification mode is adding content, adding specified information content at a specified position in the target feed based on the specified position and the specified information content in the modification instruction of the target feed to obtain the modified target feed;
the feed sending module is further configured to send the modified target feed to the client.
In order to achieve the above object, an embodiment of the present invention provides an electronic device, which includes a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface are configured to complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of any feed acquisition method when the program stored in the memory is executed.
In order to achieve the above object, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements any of the above described feed acquisition method steps.
To achieve the above object, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to perform any of the above described feed acquisition method steps.
The embodiment of the invention has the following beneficial effects:
by adopting the feed acquisition method provided by the embodiment of the invention, the server can determine the target information content identification group matched with the identification information of the target feed according to the identification information of the target feed contained in the target feed acquisition request; further acquiring target information content corresponding to the target information content identification; target feeds containing the respective target information contents are generated, and the server can send the target feeds to the client.
Therefore, by adopting the method provided by the embodiment of the invention, the target feed can be obtained through the target information content identification group without obtaining the target feed from the stored feed, and the target feed generated by the target information content can be further obtained. That is, the method provided by the embodiment of the present invention can obtain the target feed without storing the generated feed to the feed pool, thereby saving the storage resource of the feed pool.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
FIG. 1 is a flow chart of a feed acquisition method according to an embodiment of the present invention;
FIG. 2 is another flow chart of a feed acquisition method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a feed;
FIG. 4 is a diagram illustrating storing information content identifier groups in a feed pool according to an embodiment of the present invention;
fig. 5 is a schematic diagram of storing information content in a content pool according to an embodiment of the present invention;
FIG. 6a is a schematic diagram of a target feed displayed on a client according to an embodiment of the present invention;
FIG. 6b is a diagram illustrating another target feed presented at the client according to an embodiment of the present invention;
FIG. 7a is a schematic diagram of interaction between a client and a server according to an embodiment of the present invention;
FIG. 7b is a diagram illustrating a target feed at the client according to an embodiment of the present invention;
FIG. 7c is a schematic diagram of a modified target feed according to an embodiment of the present invention;
FIG. 7d is a schematic diagram of another modified target feed according to an embodiment of the present invention;
FIG. 7e is a schematic diagram of another modified target feed according to the embodiment of the present invention;
FIG. 8 is a flow chart of modifying a target feed in a feed acquisition method according to an embodiment of the present invention;
fig. 9 is a flowchart of generating an information content identifier group according to an embodiment of the present invention;
fig. 10 is a schematic diagram of uploading information content to a content pool according to an embodiment of the present invention;
FIG. 11a is a block diagram of a feed acquisition device according to an embodiment of the present invention;
FIG. 11b is another structural diagram of a feed acquisition device according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to save storage resources of a feed pool, the embodiment of the invention provides a feed acquisition method.
Referring to fig. 1, fig. 1 is a flow chart of a feed acquisition method, which includes the following steps:
step 101, receiving a target feed acquisition request sent by a client, wherein the target feed acquisition request comprises identification information of a target feed.
Step 102, determining an information content identification group with identification information of a target feed as a target information content identification group; the target information content identification group comprises: at least one target information content identification, wherein the target information content identification is the identification of the target information content.
Step 103, acquiring the target information content corresponding to each target information content identifier in the target information content identifier group.
And 104, generating target feed based on each target information content and sending the target feed to the client.
By adopting the feed acquisition method provided by the embodiment of the invention, the target feed can be acquired through the target information content identification group without acquiring the target feed from the stored feed, and the target feed generated by the target information content can be acquired. That is, the method provided by the embodiment of the present invention can obtain the target feed without storing the generated feed to the feed pool, thereby saving the storage resource of the feed pool.
Referring to fig. 2, fig. 2 is another flow chart of a feed acquisition method, which includes the steps of:
step 201, receiving a target feed acquisition request sent by a client.
In the embodiment of the present invention, a feed may include one or more information contents, where the information contents may be pictures, texts, videos, or audios. A feed may typically include one or more of pictures, text, video and audio. As shown in fig. 3, fig. 3 is a schematic diagram of a feed, and the feed in fig. 3 includes a picture and a text.
In the embodiment of the invention, the target feed acquisition request comprises the identification information of the target feed. The identification information of the target feed may include: the content tag of the target feed, and/or the identification information of the producer of the target information content identification group.
The content tag of the target feed is a tag reflecting the content expressed by the target feed, and there may be one or more content tags of the target feed. For example, the target feed is a feed related to movie-series a, and the content tag of the target feed may be one or more of a series name, a name of a character in the series, a title of the series, a keyword summary of the content of the series, and the like.
The producers of the target information content identification group are: and the operator producing the target information content identification group. The identification information of the producer of the target information content identification group may be: the id of the operator who produced the target information content identification group, or other identification that may represent the identity of the operator or user. For example, if the operator produces the target content id group at the video website a, the identification information of the producer of the target content id group may be: the operator is at the user id of video website a.
Step 202, finding out the information content identification group with the identification information of the target feed from the information content identification groups stored in the feed pool as the target information content identification group.
In the embodiment of the present invention, the target information content identifier group includes: at least one target information content identification, wherein the target information content identification is the identification of the target information content. In the target information content identification group, each target information content identification corresponds to one target information content.
In the embodiment of the invention, the information content identification is identification information of the information content. For example, the information content identifier included in the content identifier group may be an id (identity) of the information content, where the id of the information content is a unique identifier assigned to the information content, for example, for the information content a: if the information content a can be assigned a unique identification code 1001, "1001" can be used as the identification information of the information content a. Likewise, for information content B: a unique identification code 1002 can be assigned to the information content B, and then "1002" can be used as the identification information of the information content B; for information content C: if the information content C can be assigned with the unique identification code 1003, then "1003" can be used as the identification information of the information content C; for information content D: the information content D may be assigned a unique identification code 1004, and "1004" may be used as the identification information of the information content D.
In the embodiment of the present invention, the information content identifier group may include one or more information content identifiers, and each information content identifier in the information content identifier group corresponds to one information content. For example, the information content identification group α is: [1001, 1002, 1003, 1004], the information content identification group α comprises 4 information content identifications, wherein "1001" corresponds to information content a, "1002" corresponds to information content B, "1003" corresponds to information content C, and "1004" corresponds to information content D.
In the embodiment of the invention, the feed pool is used for storing the information content identification group. The information content identification group and the identification information of the feed corresponding to the information content identification group are stored in the feed pool together. As shown in FIG. 4, FIG. 4 is the content stored by the feed pool. "bsz 1" in fig. 4 indicates: information content identifier group [1001, 1002, 1003], identifier information "feed id" 13 "and" tag "of feed corresponding to the information content identifier group: # AA # BB "is stored together in a feed pool.
Therefore, in this step, the information content identification group having the identification information of the target feed can be searched in the feed pool as the target information content identification group. For example, as shown in fig. 4, if the identification information of the target feed is "feed id ═ α", and it is found in the feed pool that the information content identification group α has the identification information "feed id ═ α" of the target feed, it is possible to specify the information content identification group α as the target information content identification group. And the information content identifiers in the target information content identifier group α: "1001", "1002", "1003" and "1004" are each destination information content identifications.
Step 203, based on each target information content identifier in the target information content identifier group, finding out the information content corresponding to each target information content identifier from the information content stored in the content pool as the target information content.
In the embodiment of the invention, the content pool is used for storing information content. Referring to fig. 5, fig. 5 is a content pool in which: information content, and an information content identification for the information content. In fig. 5, the information content a is a picture, the information content B is a segment of characters, the information content C is a video, the information content D is a segment of characters, and the information content E is a picture. Among them, the information content identification of the information content a is "1001", the information content identification of the information content B is "1002", the information content identification of the information content C is "1003", the information content identification of the information content D is "1004", and the information content identification of the information content E is "1005".
In this step, after each target information content identifier in the target information content identifier group is determined, the information content with the target information content identifier may be searched in the content pool, and the searched information content with the target information content identifier is the target information content.
For example, if it is determined that the target information content identification group is: α [1001, 1002, 1003, 1004], and "1001", "1002", "1003" and "1004" in the destination information content identification group α are destination information content identifications, and can be found in a content pool as shown in fig. 5: information content a with a destination information content identification of "1001", information content B with a destination information content identification of "1002", information content C with a destination information content identification of "1003" and information content D with a destination information content identification of "1004", it can be determined that information content a, information content B, information content C and information content D are all destination information contents.
And step 204, generating target feed based on each target information content and sending the target feed to the client.
In this step, after each target information content is obtained, the arrangement sequence of the target information content identifiers in the target information content identifier group can be obtained first;
and correspondingly sequencing the target information contents according to the arrangement sequence of the target information content identifications in the target information content identification group to generate a target feed containing the target information contents. That is, the arrangement order of each target content in the finally generated target feed may be the same as the arrangement order of the target content identifier in the target content identifier group. For example, the following steps are carried out:
in one possible implementation, as shown in fig. 4, if the content identifier group α in fig. 4 is a target content identifier group, the target content identifier group α includes: the target information content identifies "1001", "1002", "1003", and "1004". As can be seen from fig. 5, the destination information content identifiers "1001", "1002", "1003" and "1004" correspond to the destination information content a, the destination information content B, the destination information content C and the destination information content D, respectively. Referring to fig. 6a, fig. 6a is a target feed generated based on target information content A, B, C and D. It can be seen that the arrangement order of the target information contents in the target feed shown in fig. 6a is the same as the arrangement order of the target information content identifiers in the target information content identifier group α.
In another possible implementation, as shown in fig. 4, if the content id group β in fig. 4 is a target content id group, the target content id group β includes: the target information content identification "1002", "1004", and "1005". Referring again to fig. 5, the destination information content identifiers "1002", "1004", and "1005" correspond to the destination information content B, the destination information content D, and the destination information content E, respectively. In the target information content identifier group β, the arrangement order of each target information identifier is: "1004", "1005" and "1002", the target feeds generated corresponding to the target information contents are shown in fig. 6b, fig. 6b shows the target feeds generated based on the target information contents B, D and E, and the arrangement order of the target feeds is: a target information content D, a target information content E and a target information content B. It can be seen that the arrangement order of the target content in the target feed shown in fig. 6b is the same as the arrangement order of the target content identifiers in the target content identifier group β.
In one possible implementation, as shown in fig. 7a, the client sends a target feed acquisition request to the server, where the target feed acquisition request includes identification information of the target feed. For example, as shown in fig. 4, if the identification information of the target feed is: the feed id 13 may be searched for the information content identifier group bsz1 with "feed id 13" from the information content identifier groups stored in the feed pool, and the information content identifier group bsz1 is the target information content identifier group. After the target information content identification group bsz1 is acquired, corresponding target information contents can be searched in the content pool as shown in fig. 5 based on the target information content identifications "1001, 1002 and 1003" in the target information content identification group bsz 1: the target information content mark 1001 corresponds to the target information content a, the target information content mark 1002 corresponds to the target information content B, and the target information content mark 1003 corresponds to the target information content C. After each target information content is found, a target feed including each target information content may be generated. Referring to fig. 7B, fig. 7B shows a target feed generated based on target information content a, target information content B and target information content C. After the target feed is generated, the target feed may be sent to the client for presentation.
By adopting the feed acquisition method provided by the embodiment of the invention, the feed pool does not need to store the generated feed, and only the information content identification group is stored. The target information content identification group can be searched from the information content identification group stored in the feed pool, and then the target information content is searched according to the target information content identification in the target information content identification group, and finally the target feed comprising the target information content is generated. That is, the method provided in the embodiment of the present invention may obtain the target feed only by the target information content identifier group stored in the feed pool without storing the generated feed to the feed pool, and only store the information content identifier group without storing the generated feed in the feed pool, thereby saving the storage resource of the feed pool.
In one possible implementation, the target feed may also be modified after it is sent to the client. Referring to fig. 8, fig. 8 is a flow of modifying a target feed sent to a client, and specifically includes the following steps:
step 801, obtaining a modification instruction for a target feed sent by a client.
In this step, modifying the instruction includes: any one or more combinations of the first information set to the third information set;
a first set of information: identification information, a modification mode and target information content to be modified of the target feed;
the second information set is: identification information, a modification mode, target information content to be modified and specified information content of the target feed;
the third information set: identification information, modification mode, specified position and specified information content of the target feed.
Wherein, the modification mode includes: delete, replace, and add content.
When the modification mode is deletion, the target information content to be modified needs to be deleted; when the modification mode is replacing content, the information content to be modified is replaced by the appointed information content; when the modification mode is adding the content, the specified information content needs to be added at the specified position in the target feed.
In this step, the target feed includes one or more target information contents, and the user can determine the target information contents to be modified from the target information contents of the target feed, and can also determine the designated position and the designated information contents.
Step 802, determining the information content identification group with the identification information of the target feed as the target information content identification group.
Step 803, obtain the target information content corresponding to each target information content identifier in the target information content identifier group.
Step 804, based on each target information content, generates feed as target feed.
Step 805, modifying the target feed according to the modification mode to obtain the modified target feed.
In this step, when the modification mode is deletion, deleting the target information content to be modified to obtain a modified target feed; for example, as shown in fig. 7b, if the modification mode is deletion, and it is determined that the target information content a in the target feed shown in fig. 7b, that is, the first picture in fig. 7b is the target information content to be modified, the target information content to be modified may be deleted, and the modified target feed shown in fig. 7c is obtained.
When the modification mode is to replace the content, replacing the information content of the target to be modified by using the information content appointed in the modification instruction of the target feed to obtain the modified target feed; for example, as shown in fig. 7b, if the modification mode is replacement content, and the target information content a in the target feed shown in fig. 7b, i.e. the first picture in fig. 7b, is determined as the target information content to be modified. The specified information content is the information content E as shown in fig. 5. The target information content to be modified may be replaced with the specified information content, information content E shown in fig. 5, resulting in a modified target feed as shown in fig. 7 d.
When the modification mode is adding content, based on the specified position and the specified information content in the modification instruction of the target feed, adding the specified information content at the specified position in the target feed to obtain the modified target feed; for example, as shown in fig. 7b, if the modification is to add content and the position after the target information content a in fig. 7b is determined to be a designated position, the designated information content is the information content E as shown in fig. 5. The information content E as shown in fig. 5 can be added at a position after the target information content a as shown in fig. 7b resulting in a modified target feed as shown in fig. 7E.
Step 806, sending the modified target feed to the client.
Since the prior art stores the generated feed in the feed pool, the prior art cannot modify the feed already generated. When the user requirements cannot be met in the feeds sent to the client, the prior art can only regenerate a new feed, but cannot modify the current feed. This approach is slow and inefficient because of the need to regenerate the feed again.
In the embodiment of the invention, the target information content in the target feed can be directly modified aiming at the target feed. Therefore, when the target feed sent to the client cannot meet the user requirement, the client can send a modification instruction aiming at the target feed to the server, modify the target feed according to the modification instruction, and finally obtain the modified target feed meeting the user requirement. According to the method and the device for modifying the target feed, the target information content in the target feed only needs to be deleted, replaced or added, so that feed stream service can be provided for a user more efficiently, and the user experience is improved.
Referring to fig. 9, fig. 9 is a flow of generating an information content identifier group, which may specifically include:
step 901, displaying a plurality of information contents for selection.
In the embodiment of the invention, operators or users can upload the information content to the server, and the server can store the received information content in the content pool. As shown in fig. 10, an operator or a user may upload information contents such as pictures, texts, videos, and audios to a server, and finally store the information contents in a content pool.
Wherein, each information content is assigned with an information content identification when being uploaded to the server. And, the information content and the information content identification of the information content are stored together in a content pool. As shown in fig. 10, each information content stored in the content pool further stores an information content identifier: the information content identifier "id" of the information content a is 1001 ", the information content identifier" id "of the information content B is 1002", the information content identifier "id" of the information content C is 1003 ", the information content identifier" id "of the information content D is 1004", and the information content identifier "id" of the information content E is 1005 ". When each information content stored in the content pool is stored, not only the information content and the information content identifier, but also the type, the tag, and the storage address in the content pool of the information content can be stored together.
As shown in fig. 10, the content pool stored together with the information content a further includes: the content identifier "id" of the content a is 1001, "the type" picture img "of the content a," tag "of the content a, # AA # BB," and url (Uniform resource Locator) of the content a, "url ═ http:// xxxxx/img. Stored in the content pool together with the information content B further comprises: the content id "1002" of the content B, the type "text txt" of the content B, the tag "# AA # BB" of the content B, and the text name "text ═ CC" of the content B. Stored in the content pool together with the information content C further comprises: the content identification "id" of the content C is 1003 ", the type" video "of the content C, the tag" # AA # BB "of the content C, and the" video id "of the content C is 3312349200". The content pool together with the information content D further comprises: the information content identification "id ═ 1004" type of information content D "text txt", tag "# AA # BB" of information content D, and text name "text ═ MM" of information content D. The content pool together with the information content E further comprises: the information content identification "id" 1005 "of the information content E, the type" picture img "of the information content E, the tag (label)" # AA # BB "of the information content E, and" url "http:// xxxyy/img.
In this step, the information content with the designated tag may be searched in the content pool through the designated tag searched by the operator, and then a plurality of information contents with the designated tag for selection are displayed, where the designated tag may be a subject name of the searched information content, for example, when searching for the movie and television series a, the series name of the movie and television series a or the content of the related stories in the movie and television series a may be searched. For example, if the designated label is "# AA # BB", as shown in fig. 10, the information content a, the information content B, the information content C, the information content D, and the information content E having the designated label "# AA # BB" in the content pool may be displayed.
Step 902 determines each selected information content from the displayed plurality of information contents.
In this step, the operator can actively click the information content from the displayed information contents to screen the information contents, so as to determine each selected information content.
As shown in fig. 10, when the operator searches for the designation label "# AA # BB", the information content a, the information content B, the information content C, the information content D, and the information content E are displayed in order, and when the user clicks on the information content a, the information content C, and the information content D, it can be determined that each of the selected information contents is: information content a, information content C and information content D.
And selecting the information content with the preset quantity threshold value as each selected information content according to the displayed sequence of the displayed information content. The preset number threshold may be set to the number of information contents that the feed desired by the operator can include. For example, if the preset number threshold may be set to 4, the first 4 information contents of the displayed information contents may be selected as the selected information contents; for example, the preset number threshold may be set to 5, and the first 5 information contents of the displayed information contents may be selected as the selected information contents.
As shown in fig. 10, when the operator searches for the designation label "# AA # BB", the information content a, the information content B, the information content C, the information content D, and the information content E are displayed in order. If the preset number is 3, the first 3 information contents "information content a, information content B, and information content C" in the displayed information contents may be determined as the selected information contents.
Step 903, obtaining the information content identifier of the selected information content, and generating an information content identifier group including each information content identifier.
In this step, for each selected information content, the information content identifier of the selected information content may be acquired, and then an information content identifier group including each information content identifier may be generated.
As shown in fig. 10, if each of the information contents determined to be selected is: information content a, information content B and information content C, it is possible to obtain: the information content identifier "id" 1001 "of the information content a, the information content identifier" id "1002" of the information content B, and the information content identifier "id" 1003 "of the information content C. Then, an information content identification group [ id 1001, id 1002, id 1003] including "id 1001", "id 1002", and "id 1003" is generated.
In the generated information content identifier group, the arrangement order of each information content identifier corresponds to the same order in which the information content corresponding to each information content identifier is selected. For example, if the operator selects the information content a, the information content B, and the information content C in the following order: the information content a, the information content C and the information content B, and the identifier of each information content in the generated information content identifier group is: [ id 1001, 1003, 1002 ].
And 904, storing the generated information content identification group into a feed pool.
In this step, the generated information content identifier group and the identifier information of the feed corresponding to the information content identifier group are stored in the feed pool together, wherein the identifier information of the feed corresponding to the information content identifier group includes: the content tag of the feed corresponding to the content identification group, and/or the identity information of the producer of the content identification group. The identity information of the producer of the information content identification group is: and generating the id of the operator of the information content identification group. As shown in fig. 4, the information content identification group stored in the feed pool, taking the information content identification group "bsz 1" as an example, and the information content identification group "bsz 1" collectively store the following information content identification groups: a content tag "# AA # BB" of feed corresponding to the information content identification group "bsz 1", and identification information "feed id ═ 13" of the producer of the information content identification group "bsz 1".
By adopting the method for generating the information content identification group provided by the embodiment of the invention, the operator determines the selected information content through a plurality of information contents for selection, acquires the information content identification of each selected information content, further generates the information content identification group comprising each information content identification, and stores the generated information content identification group in the feed pool. Only the information content identification group is required to be stored in the feed pool, the feed is not required to be stored, and the storage resources occupied by the feed are far larger than the information content identification group, so that the storage resources of the feed pool can be saved.
Based on the same inventive concept, according to the feed acquisition method provided in the above embodiment of the present invention, correspondingly, another embodiment of the present invention further provides a feed acquisition apparatus.
Referring to fig. 11a, fig. 11a is a structure of a feed acquisition apparatus, which specifically includes:
a request receiving module 1101, configured to receive a target feed acquisition request sent by a client, where the target feed acquisition request includes identification information of a target feed;
an identifier group determining module 1102, configured to determine an information content identifier group having identifier information of a target feed as a target information content identifier group; the target information content identification group comprises: at least one target information content identifier, wherein the target information content identifier is an identifier of the target information content;
an information content obtaining module 1103, configured to obtain target information content corresponding to each target information content identifier in the target information content identifier group;
a feed generation module 1104, configured to generate feeds as target feeds based on the respective target information contents;
a feed sending module 1105, configured to send the target feed to the client.
Therefore, by using the feed acquisition device provided by the embodiment of the invention, the target feed can be acquired through the target information content identification group without acquiring the target feed from the stored feed, and the target feed generated by the target information content can be acquired. That is, the method provided by the embodiment of the present invention can obtain the target feed without storing the generated feed to the feed pool, thereby saving the storage resource of the feed pool.
Further, the identification information of the target feed includes: the content tag of the target feed, and/or the identification information of the producer of the target information content identification group.
Further, the identifier group determining module 1102 is specifically configured to find an information content identifier group having identifier information of a target feed from the information content identifier groups stored in the feed pool, where the feed pool is used to store the information content identifier group.
Further, the information content obtaining module 1103 is specifically configured to find, based on each target information content identifier in the target information content identifier group, an information content corresponding to each target information content identifier from information contents stored in the content pool, where the content pool is used for storing the information content, and the information content is used as the target information content. A
Further, the feed generation module 1104 is specifically configured to obtain an arrangement order of the target information content identifiers in the target information content identifier group; and generating a feed containing the target information content as a target feed, wherein the arrangement sequence of each target information content in the target feed is correspondingly the same as the arrangement sequence of the target information content identifier in the target information content identifier group.
Further, referring to fig. 11b, the feed acquiring apparatus further includes: a feed modification module 1106;
the request receiving module 1101 is further configured to obtain a modification instruction for the target feed sent by the client; the modification instruction comprises identification information of the target feed, target information content to be modified and a modification mode;
the identifier group determining module 1102 is further configured to determine an information content identifier group having identifier information of the target feed as a target information content identifier group; the target information content identification group comprises: at least one target information content identifier, wherein the target information content identifier is an identifier of the target information content;
the information content obtaining module 1103 is further configured to obtain target information content corresponding to each target information content identifier in the target information content identifier group;
a feed generation module 1104, configured to generate feeds as target feeds based on the target information contents;
a feed modification module 1106, configured to, when the modification mode is deletion, delete the target information content to be modified, to obtain a modified target feed; when the modification mode is to replace the content, replacing the information content of the target to be modified by using the information content appointed in the modification instruction of the target feed to obtain the modified target feed; when the modification mode is adding content, based on the specified position and the specified information content in the modification instruction of the target feed, adding the specified information content at the specified position in the target feed to obtain the modified target feed;
the feed sending module 1105 is further configured to send the modified target feed to the client.
Therefore, by adopting the feed acquisition device provided by the embodiment of the invention, the target information content in the target feed can be directly modified aiming at the target feed. Therefore, when the target feed sent to the client cannot meet the user requirement, the client can send a modification instruction aiming at the target feed to the server, modify the target feed according to the modification instruction, and finally obtain the modified target feed meeting the user requirement. According to the method and the device for modifying the target feed, the target information content in the target feed only needs to be deleted, replaced or added, so that feed stream service can be provided for a user more efficiently, and the user experience is improved.
Based on the same inventive concept, according to the feed acquisition method provided by the above embodiment of the present invention, correspondingly, another embodiment of the present invention further provides an electronic device, referring to fig. 12, the electronic device according to the embodiment of the present invention includes a processor 1201, a communication interface 1202, a memory 1203 and a communication bus 1204, wherein the processor 1201, the communication interface 1202 and the memory 1203 complete mutual communication through the communication bus 1204.
A memory 1203 for storing a computer program;
the processor 1201 is configured to implement the following steps when executing the program stored in the memory 1203:
receiving a target feed acquisition request sent by a client, wherein the target feed acquisition request comprises identification information of a target feed;
determining an information content identification group with the identification information of the target feed as a target information content identification group; the target information content identification group comprises: at least one target information content identifier, wherein the target information content identifier is an identifier of the target information content;
acquiring target information content corresponding to each target information content identifier in the target information content identifier group;
and generating a target feed based on each target information content and sending the target feed to the client.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned feed acquisition methods.
In yet another embodiment, a computer program product containing instructions is provided, which when run on a computer, causes the computer to perform any of the feed acquisition methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the electronic device and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A feed acquiring method is applied to a server and comprises the following steps:
receiving a target feed acquisition request sent by a client, wherein the target feed acquisition request comprises identification information of a target feed;
determining an information content identification group with the identification information of the target feed as a target information content identification group; the target information content identification group comprises: at least one target information content identifier, wherein the target information content identifier is an identifier of the target information content;
acquiring target information content corresponding to each target information content identifier in the target information content identifier group;
and generating a target feed based on each target information content and sending the target feed to the client.
2. The method of claim 1, wherein the identification information of the target feed comprises: the content tag of the target feed, and/or the identification information of the producer of the target information content identification group.
3. The method of claim 1, wherein determining the content id group with the identification information of the target feed as a target content id group comprises:
and finding out the information content identification group with the identification information of the target feed from the information content identification groups stored in the feed pool as a target information content identification group, wherein the feed pool is used for storing the information content identification group.
4. The method of claim 1, wherein obtaining the set of target content identifiers, each target content identifier identifying a corresponding target content comprises:
and based on each target information content identifier in the target information content identifier group, searching out the information content corresponding to each target information content identifier from the information content stored in a content pool as the target information content, wherein the content pool is used for storing the information content.
5. The method of claim 1, wherein generating a feed as a target feed based on each of the target information contents comprises:
acquiring the arrangement sequence of the target information content identifications in the target information content identification group; and generating a feed containing the target information content as a target feed, wherein the arrangement sequence of each target information content in the target feed is correspondingly the same as the arrangement sequence of the target information content identifier in the target information content identifier group.
6. The method according to any one of claims 1-4, further comprising:
obtaining a modification instruction aiming at the target feed sent by a client; the modification instruction comprises identification information of the target feed, target information content to be modified and a modification mode;
when the modification mode is deletion, deleting the target information content to be modified to obtain a modified target feed;
when the modification mode is replacing content, replacing the target information content to be modified by using the information content specified in the modification instruction of the target feed to obtain a modified target feed;
when the modification mode is adding content, adding specified information content at a specified position in the target feed based on the specified position and the specified information content in the modification instruction of the target feed to obtain the modified target feed;
and sending the modified target feed to the client.
7. The utility model provides a fodder feed acquisition device which characterized in that is applied to the server, includes:
the request receiving module is used for receiving a target feed acquisition request sent by a client, wherein the target feed acquisition request comprises identification information of a target feed;
an identification group determination module, configured to determine an information content identification group having the identification information of the target feed as a target information content identification group; the target information content identification group comprises: at least one target information content identifier, wherein the target information content identifier is an identifier of the target information content;
the information content acquisition module is used for acquiring the target information content corresponding to each target information content identifier in the target information content identifier group;
a feed generation module for generating feeds as target feeds based on the target information contents;
and the feed sending module is used for sending the target feed to the client.
8. The apparatus of claim 7, further comprising: a feed modification module;
the request receiving module is further configured to obtain a modification instruction for the target feed sent by the client; the modification instruction comprises identification information of the target feed, target information content to be modified and a modification mode;
the feed modification module is used for deleting the target information content to be modified when the modification mode is deletion, so as to obtain a modified target feed; when the modification mode is replacing content, replacing the target information content to be modified by using the information content specified in the modification instruction of the target feed to obtain a modified target feed; when the modification mode is adding content, adding specified information content at a specified position in the target feed based on the specified position and the specified information content in the modification instruction of the target feed to obtain the modified target feed;
the feed sending module is further configured to send the modified target feed to the client.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
CN202010339806.9A 2020-04-26 2020-04-26 Feed acquisition method and device, electronic equipment and storage medium Active CN111552860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010339806.9A CN111552860B (en) 2020-04-26 2020-04-26 Feed acquisition method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010339806.9A CN111552860B (en) 2020-04-26 2020-04-26 Feed acquisition method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111552860A true CN111552860A (en) 2020-08-18
CN111552860B CN111552860B (en) 2023-10-31

Family

ID=72005957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010339806.9A Active CN111552860B (en) 2020-04-26 2020-04-26 Feed acquisition method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111552860B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212298A (en) * 2007-12-25 2008-07-02 华为技术有限公司 Method, device and system for providing and reading Feed file
CN103177027A (en) * 2011-12-23 2013-06-26 北京新媒传信科技有限公司 Method and system for obtaining dynamic feed index
CN108880972A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of information processing method, server and terminal
CN109635174A (en) * 2018-10-29 2019-04-16 珠海市君天电子科技有限公司 News information flow management method, device, electronic equipment and storage medium
CN110381382A (en) * 2019-07-23 2019-10-25 腾讯科技(深圳)有限公司 Video takes down notes generation method, device, storage medium and computer equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212298A (en) * 2007-12-25 2008-07-02 华为技术有限公司 Method, device and system for providing and reading Feed file
CN103177027A (en) * 2011-12-23 2013-06-26 北京新媒传信科技有限公司 Method and system for obtaining dynamic feed index
CN108880972A (en) * 2017-05-09 2018-11-23 腾讯科技(深圳)有限公司 A kind of information processing method, server and terminal
CN109635174A (en) * 2018-10-29 2019-04-16 珠海市君天电子科技有限公司 News information flow management method, device, electronic equipment and storage medium
CN110381382A (en) * 2019-07-23 2019-10-25 腾讯科技(深圳)有限公司 Video takes down notes generation method, device, storage medium and computer equipment

Also Published As

Publication number Publication date
CN111552860B (en) 2023-10-31

Similar Documents

Publication Publication Date Title
US9672286B2 (en) Singular, collective and automated creation of a media guide for online content
JP6084954B2 (en) Method for providing a real-time link to a part of a media object in a social network update and a computing device
US10243889B2 (en) Keyword based automatic reply generation in a messaging application
US8078693B2 (en) Inserting a multimedia file through a web-based desktop productivity application
US10185486B2 (en) Method for one-click subscribing to multiple channels of information on a single topic
US20090307602A1 (en) Systems and methods for creating and sharing a presentation
CN101477527B (en) Multimedia resource retrieval method and apparatus
CN104090899B (en) A kind of method and apparatus of feedback display content information
CN107786631B (en) Content publishing method and device and electronic equipment
CN108470057B (en) Generating and pushing method, device, terminal, server and medium of integrated information
CN113286173A (en) Video editing method and device
CN110968314A (en) Page generation method and device
KR101503268B1 (en) Symantic client, symantic information management server, method for generaing symantic information, method for searching symantic information and computer program recording medium for performing the methods
CN112689170B (en) Content playing method of display terminal, display terminal and readable storage medium
CN114095755A (en) Video processing method, device and system, electronic equipment and storage medium
US20160210335A1 (en) Server and service searching method of the server
US20140095594A1 (en) Server apparatus and information processing apparatus
CN111552860B (en) Feed acquisition method and device, electronic equipment and storage medium
US20150358261A1 (en) Playback method and associated transmitting device, playback device, and communication system
KR20180088260A (en) Method and apparatus for generating web pages
CN110598009B (en) Method and device for searching works, electronic equipment and storage medium
CN112543356B (en) Video pushing method and device, computer equipment and storage medium
CN104079594A (en) Method and device used for implementing downloading of network resources in closed system
CN112153414A (en) Video processing method, device, terminal, video server and storage medium
CN117992258A (en) IM card message circulation method, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant