[go: up one dir, main page]

CN109086428B - Forwarding information access frequency counting method and device - Google Patents

Forwarding information access frequency counting method and device Download PDF

Info

Publication number
CN109086428B
CN109086428B CN201810908087.0A CN201810908087A CN109086428B CN 109086428 B CN109086428 B CN 109086428B CN 201810908087 A CN201810908087 A CN 201810908087A CN 109086428 B CN109086428 B CN 109086428B
Authority
CN
China
Prior art keywords
forwarding information
url
identifier
forwarding
information identifier
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.)
Active
Application number
CN201810908087.0A
Other languages
Chinese (zh)
Other versions
CN109086428A (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.)
Jiangsu Qiyidian Network Co
Original Assignee
Jiangsu Qiyidian Network Co
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 Jiangsu Qiyidian Network Co filed Critical Jiangsu Qiyidian Network Co
Priority to CN201810908087.0A priority Critical patent/CN109086428B/en
Publication of CN109086428A publication Critical patent/CN109086428A/en
Application granted granted Critical
Publication of CN109086428B publication Critical patent/CN109086428B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a statistical method and a device for access times of forwarding information, wherein the method comprises the steps of obtaining a forwarding information identifier of the forwarding information, and obtaining a Uniform Resource Locator (URL) according to the forwarding information identifier; forwarding the forwarding information according to the URL; when the client accesses the forwarding information through the URL, the forwarding information identification is obtained according to the URL, and the number of times of the client accessing through the URL is recorded according to the forwarding information identification, so that the number of times of the client with the user identification accessing the forwarding information after forwarding can be known through the user identification, and accurate statistics of the click rate of the forwarding information forwarded by different clients can be realized.

Description

Forwarding information access frequency counting method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for counting access times of forwarding information.
Background
With the increasing development of the internet and the mobile internet, forward sharing becomes an increasingly important activity. For example, when a user sees a good article on a website, the user can forward the good article to his own friends to read and share. The forwarding activity promotes information spreading on the internet, and becomes an indispensable link for internet spreading, so that the reading mode of people is changed slowly, more and more people read the shared article by forwarding, and less people go to the original place of the article to read.
The contribution of the forwarding effect or the forwarding to the reading amount refers to the click or reading amount obtained after the article is forwarded, for example, a user forwards an article to a friend circle, and the number of times that a friend in the friend circle clicks the forwarded article is the click amount obtained after the forwarding.
At present, when the click rate is counted, only the total click rate of the article can be counted, and the click rate obtained after each forwarding cannot be counted respectively.
Disclosure of Invention
The embodiment of the invention provides a method and a device for counting access times of forwarded information, which aim to solve the problem that the click rate obtained after each forwarding cannot be respectively counted by the conventional method for counting the click rate of an article.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a method for counting access times of forwarding information, where the method includes:
acquiring a forwarding information identifier of forwarding information, wherein the forwarding information identifier comprises a user identifier and an article identifier;
acquiring a Uniform Resource Locator (URL) according to the forwarding information identifier, wherein the forwarding information identifier and the URL have a one-to-one correspondence relationship;
forwarding the forwarding information according to the URL so that a client accesses the forwarding information through the URL;
and when the client accesses the forwarding information through the URL, acquiring the forwarding information identifier according to the URL, and recording the access times of the client through the URL according to the forwarding information identifier.
In a second aspect, an embodiment of the present invention further provides a method for counting access times of forwarding information, where the method includes:
acquiring a forwarding information identifier of forwarding information, wherein the forwarding information identifier comprises a user identifier and an article identifier;
acquiring a Uniform Resource Locator (URL) according to the forwarding information identifier, wherein the forwarding information identifier and the URL have a one-to-one correspondence relationship;
and forwarding the forwarding information according to the URL, so that when a client accesses the forwarding information through the URL, the target device acquires the forwarding information identifier according to the URL and records the access times of the client through the URL according to the forwarding information identifier.
In a third aspect, an apparatus for counting forwarding click volumes in an embodiment of the present invention is characterized by including:
the forwarding information identification acquisition module is used for acquiring a forwarding information identification of forwarding information, and the forwarding information identification comprises a user identification and an article identification;
a URL obtaining module, configured to obtain a uniform resource locator URL according to the forwarding information identifier, where the forwarding information identifier and the URL have a one-to-one correspondence;
the first forwarding module is used for forwarding the forwarding information according to the URL so that a client accesses the forwarding information through the URL;
and the visit frequency recording module is used for acquiring the forwarding information identifier according to the URL when the client visits the forwarding information through the URL, and recording the visit frequency of the client through the URL according to the forwarding information identifier.
In a fourth aspect, an embodiment of the present invention provides a device for counting access times of forwarding information, where the device includes:
the forwarding information identification acquisition module is used for acquiring a forwarding information identification of forwarding information, and the forwarding information identification comprises a user identification and an article identification;
a URL obtaining module, configured to obtain a uniform resource locator URL according to the forwarding information identifier, where the forwarding information identifier and the URL have a one-to-one correspondence;
and the second forwarding module is used for forwarding the forwarding information according to the URL, so that when the client accesses the forwarding information through the URL, the target device acquires the forwarding information identifier according to the URL and records the access times of the client through the URL according to the forwarding information identifier.
In the embodiment of the invention, the access times of the client with the user identification after forwarding the forwarding information can be obtained through the user identification, so that the accurate statistics of the click rate of the forwarding information forwarded by different clients is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for counting access times of forwarding information according to an embodiment of the present invention;
fig. 1a is a second flowchart of a method for counting access times of forwarding information according to a first embodiment of the present invention;
fig. 2 is a third flowchart of a method for counting access times of forwarding information according to an embodiment of the present invention;
fig. 3 is a fourth flowchart of a method for counting access times of forwarding information according to an embodiment of the present invention;
fig. 4 is a fifth flowchart of a method for counting access times of forwarding information according to a second embodiment of the present invention;
fig. 5 is one of the structural diagrams of the access frequency counting apparatus for forwarding information according to the third embodiment of the present invention;
fig. 5a is a second structural diagram of a device for counting access times of forwarding information according to a third embodiment of the present invention;
fig. 5b is a third structural diagram of a device for counting access times of forwarding information according to a third embodiment of the present invention;
fig. 5c is a fourth structural diagram of a device for counting access times of forwarding information according to a third embodiment of the present invention;
fig. 5d is a fifth structural diagram of a device for counting access times of forwarding information according to a third embodiment of the present invention;
fig. 5e is a sixth structural diagram of a device for counting access times of forwarding information according to a third embodiment of the present invention;
fig. 6 is a structural diagram of a device for counting access times of forwarding information according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
Referring to fig. 1, fig. 1 is a flowchart of a statistical method for access times of forwarding information according to an embodiment of the present invention, and as shown in fig. 1, the statistical method for access times of forwarding information according to the embodiment of the present invention is applied to a server, and includes the following steps:
step 101, obtaining a forwarding information identifier of forwarding information, where the forwarding information identifier includes a user identifier and an article identifier.
Specifically, the forwarding information includes information to be forwarded by the client, including one or more of characters, pictures, audios, videos, and the like, and a forwarding information identifier is correspondingly set for each piece of forwarding information, where the forwarding information identifier includes a user identifier and an article identifier. The user identification is used for identifying the client side which forwards the forwarding information, the user identification and the client side are in one-to-one correspondence, the article identification is used for identifying the forwarding information, and the article identification and the forwarding information have one-to-one correspondence.
The method in this embodiment is applied to a server, so in this step, a forwarding information identifier of forwarding information may be sent by a client, and generally, when the client a forwards the forwarding information B, the forwarding information identifier of the forwarding information B is sent to the server, and at this time, a user identifier may use account information of the client a, or may use other information of the client a, as long as the client a can be uniquely identified, which is not limited herein.
In this embodiment, the client includes a Computer, a mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), and other devices capable of forwarding the forwarding information.
And 102, acquiring a URL according to the forwarding information identifier, wherein the forwarding information identifier and the URL have a one-to-one correspondence relationship.
Specifically, the URL is obtained according to the forwarding information identifier, so that the forwarding information identifier can be obtained through the URL.
The first implementation mode can adopt a reversible algorithm to process the forwarding information identifier so as to obtain the URL, wherein the forwarding information identifier is different, and the URL address obtained by adopting the reversible algorithm is also different. A second implementation may use a reversible algorithm or an irreversible algorithm to generate the URL address, such as an obfuscation algorithm or an encryption algorithm, and then bind the forwarding information identifier to the URL address, where the purpose of the binding is to make the forwarding information identifier and the URL address have a one-to-one correspondence. In the first implementation manner, a reversible encryption algorithm may be used, and the forwarding information identifier may be obtained by performing inverse operation on the URL of the URL obtained by the reversible encryption algorithm.
And 103, forwarding the forwarding information according to the URL so that the client accesses the forwarding information through the URL.
Specifically, forwarding information is forwarded according to the URL, that is, the URL generated in step 102 is sent to the client, and the client can access the forwarding information corresponding to the URL through the URL.
And 104, when the client accesses the forwarding information through the URL, acquiring the forwarding information identifier according to the URL, and recording the access times of the client through the URL according to the forwarding information identifier.
Specifically, when the client accesses the forwarding information through the URL, the client sends an access request to the server according to the URL, and the server can obtain the forwarding information identifier corresponding to the URL according to the URL, which corresponds to two ways of obtaining the URL in step 102, where in this step, when obtaining the forwarding information identifier according to the URL, two obtaining ways are adopted: when the first implementation manner is adopted in step 102, when the forwarding information identifier is obtained according to the URL in this step, the forwarding information identifier is obtained by performing reversible operation on the URL. When the second implementation manner is adopted in step 102, in this step, when the forwarding information identifier is obtained according to the URL, the forwarding information identifier is obtained by searching for a corresponding relationship between the forwarding information identifier and the URL.
And after the forwarding information identifier is obtained, recording the access times corresponding to the forwarding information identifier. Because the forwarding information identifier comprises the user identifier, the access times of the client with the user identifier after forwarding the forwarding information can be known through the user identifier, and therefore accurate statistics of the click rate of the forwarding information forwarded by different clients is achieved.
The statistical method for the access times of the forwarding information in the embodiment of the invention obtains the forwarding information identifier of the forwarding information, wherein the forwarding information identifier comprises a user identifier and an article identifier; acquiring a Uniform Resource Locator (URL) according to the forwarding information identifier, wherein the forwarding information identifier and the URL have a one-to-one correspondence relationship; forwarding the forwarding information according to the URL so that a client accesses the forwarding information through the URL; and when the client accesses the forwarding information through the URL, acquiring the forwarding information identifier according to the URL, and recording the access times of the client through the URL according to the forwarding information identifier. Therefore, the access times of the client with the user identification after forwarding the forwarding information can be obtained through the user identification, and accurate statistics of the click rate of the forwarding information forwarded by different clients is realized.
Further, in an embodiment of the present invention, as shown in fig. 1a, after step 104, the following steps are further included:
and 105, acquiring the forwarding information according to the article identifiers in the forwarding information identifiers, wherein the article identifiers and the forwarding information have a one-to-one correspondence relationship.
And if the client C accesses the forwarding information through the URL, the server acquires the forwarding information identifier according to the URL and acquires the forwarding information according to the article identifier in the forwarding information identifier.
And step 106, sending the forwarding information to the client.
For example, the server sends the acquired forwarding information to the client C, so that the client C accesses the forwarding information B forwarded by the client a.
Further, in an embodiment of the present invention, this embodiment is a supplementary description based on the embodiment shown in fig. 1 or fig. 1 a. Referring to fig. 2, fig. 2 is a third flowchart of a statistical method for access times of forwarding information according to an embodiment of the present invention, and as shown in fig. 2, the statistical method for access times of forwarding information according to the embodiment of the present invention includes the following steps:
step 101, obtaining a forwarding information identifier of forwarding information, where the forwarding information identifier includes a user identifier and an article identifier.
Step 102, obtaining a URL according to the forwarding information identifier, where the forwarding information identifier and the URL have a one-to-one correspondence relationship, and the method specifically includes:
step 1021, processing the forwarding information identifier according to a reversible algorithm to obtain a unique identifier.
Specifically, the unique identifier obtained by processing the forwarding information identifier by using a reversible algorithm can be obtained again by performing reversible operation on the unique identifier, and the forwarding information identifier and the unique identifier have a one-to-one correspondence relationship. And if the user identifier is a user _ id and the article identifier is a post _ id, reversible operation is carried out on the user identifier which is the user _ id and the article identifier which is the post _ id to obtain unique _ id, and the unique _ id is the unique identifier.
Step 1022, obtaining the URL according to the unique identifier; and the forwarding information identifier and the URL have one-to-one correspondence.
Specifically, the URL is obtained according to the unique identifier, so that the URL comprises the unique identifier, such as http:// www.site.com/post/{ unique _ id }, in the URL, different unique identifiers can be obtained for different user identifiers and article identifiers, and thus, the URL obtained according to the unique identifier is also different.
And 103, forwarding the forwarding information according to the URL so that the client accesses the forwarding information through the URL.
Step 104, when the client accesses the forwarding information through the URL, acquiring the forwarding information identifier according to the URL, and recording the number of times that the client accesses through the URL according to the forwarding information identifier, specifically including:
step 1041a, parsing the URL to obtain the unique identifier;
specifically, the unique identifier is obtained by parsing the URL, for example, for the URL obtained in step 1022: and (3) analyzing http:// www.site.com/post/{ unique _ id } to obtain unique _ id.
1042a, obtaining the forwarding information identifier according to the unique identifier;
since the unique _ id is generated by using a reversible algorithm in step 1021, the user identification user _ id and the article identification post _ id can be obtained by performing a reversible operation on the unique _ id in this step.
Step 1043a, generating or updating record information according to the forwarding information identifier, where the record information includes the forwarding information identifier and the access times corresponding to the forwarding information identifier.
Specifically, after the forwarding information identifier is obtained according to the URL, the access frequency corresponding to the forwarding information identifier needs to be recorded, for example, when there is no record of the forwarding information identifier in the record information, a new record is generated in the record information, where the new record includes the forwarding information identifier and the access frequency, the access frequency is 1, and when the client accesses through the URL again, the access frequency in the new record is updated, so that the access frequency is increased by 1. When the access amount statistics is performed on the forwarding information forwarded by the client A, the access times can be obtained by searching in the record information according to the user identifier of the client A and the article identifier of the forwarding information, so that the accurate statistics of the click amounts of the forwarding information forwarded by different clients is realized.
In another embodiment of the present invention, this embodiment is a supplementary description based on the embodiment shown in fig. 1 or fig. 1 a. Referring to fig. 3, fig. 3 is a fourth flowchart of a statistical method for access times of forwarding information according to an embodiment of the present invention, and as shown in fig. 3, the statistical method for access times of forwarding information according to the embodiment of the present invention includes the following steps:
step 101, obtaining a forwarding information identifier of forwarding information, where the forwarding information identifier includes a user identifier and an article identifier.
And 102, acquiring a URL according to the forwarding information identifier, wherein the forwarding information identifier and the URL have a one-to-one correspondence relationship.
In this step, the forwarding information identifier is processed in the following manner:
obtaining an intermediate identifier by splicing the user identifier and the article identifier and then using a confusion algorithm;
splicing the user identification and the article identification and then using an encryption algorithm to obtain an intermediate identification;
the unique identifier generated in the database is used as an intermediate identifier by storing the user identifier and the article identifier in the database.
The above manner of obtaining the intermediate identifier is not limited in this embodiment, and the forwarding information identifier and the intermediate identifier have a one-to-one correspondence relationship.
The URL obtained according to the forwarding information identifier comprises an intermediate identifier, for example, when the URL is http:// www.site.com/post/{ id }, the id is the intermediate identifier.
And A, recording the corresponding relation between the URL and the forwarding information identifier.
Specifically, the corresponding relationship between the URL and the forwarding information identifier may be recorded, or the corresponding relationship between the intermediate identifier included in the URL and the forwarding information identifier may be recorded. Such as recording the correspondence between http:// www.site.com/post/{ id } and the forwarding information identity, or recording the correspondence between id and the forwarding information identity.
Step a may also be located between step 103 and step 104.
And 103, forwarding the forwarding information according to the URL so that the client accesses the forwarding information through the URL.
Step 104, when the client accesses the forwarding information through the URL, acquiring the forwarding information identifier according to the URL, and recording the number of times that the client accesses through the URL according to the forwarding information identifier, specifically including:
step 1041b, searching in the corresponding relation between the URL and the forwarding information identifier according to the URL to obtain the forwarding information identifier corresponding to the URL.
The corresponding relation between the URL and the forwarding information identifier has been recorded in step a, so that after the URL is known, the forwarding information identifier corresponding to the URL can be obtained by searching for the corresponding relation between the URL and the forwarding information identifier.
Further, when the correspondence between the intermediate identifier included in the URL and the forwarding information identifier recorded in step a is a correspondence between the intermediate identifier included in the URL and the forwarding information identifier, in this step, the intermediate identifier is first obtained from the URL, and then the correspondence between the intermediate identifier included in the URL and the forwarding information identifier is searched according to the intermediate identifier, so as to obtain the forwarding information identifier corresponding to the URL.
Step 1042b, generating or updating record information according to the forwarding information identifier, where the record information includes the forwarding information identifier and the access times corresponding to the forwarding information identifier.
This step is the same as step 1043a, and reference may be specifically made to the record in step 1043a, which is not described herein again.
According to the method in the embodiment, the corresponding relation between the URL and the forwarding information identifier is recorded, the forwarding information identifier is obtained according to the URL, the access times of the URL are recorded according to the forwarding information identifier, when the click rate of the forwarding information forwarded by different clients is counted, the access times corresponding to the URL obtained when the clients forward the forwarding information can be found by searching the user identifier of the client and the article identifier of the forwarding information, and therefore accurate counting of the click rate of the forwarding information forwarded by different clients is achieved.
Example two
Referring to fig. 4, fig. 4 is a fifth flowchart of a statistical method for access times of forwarding information according to a second embodiment of the present invention, where the method in the present embodiment is applied to a client, as shown in fig. 4, the statistical method for access times of forwarding information according to the present embodiment of the present invention includes the following steps:
step 201, obtaining a forwarding information identifier of forwarding information, where the forwarding information identifier includes a user identifier and an article identifier.
Specifically, the forwarding information includes information to be forwarded by the client, including one or more of characters, pictures, audios, videos, and the like, and a forwarding information identifier is correspondingly set for each piece of forwarding information, where the forwarding information identifier includes a user identifier and an article identifier. The user identification is used for identifying the client side which forwards the forwarding information, the user identification and the client side are in one-to-one correspondence, the article identification is used for identifying the forwarding information, and the article identification and the forwarding information have one-to-one correspondence.
In this step, the forwarding information identifier may be received from other devices, where the other devices include a server or other clients, for example, the execution subject of the method in this embodiment is client C, and the other clients are clients other than client C, such as client D. The forwarding information identifier can also be obtained from a local processing module, the local processing module is a processing module of the client C, and when the forwarding information is stored locally at the client C, the article identifier is obtained by the local processing module of the client C.
In this embodiment, the client includes a Computer, a mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), and other devices capable of forwarding the forwarding information.
Step 202, obtaining a Uniform Resource Locator (URL) according to the forwarding information identifier, wherein the forwarding information identifier and the URL have a one-to-one correspondence relationship.
Specifically, the URL is obtained according to the forwarding information identifier, so that the forwarding information identifier can be obtained through the URL.
The first implementation mode can adopt a reversible algorithm to process the forwarding information identifier so as to obtain the URL, wherein the forwarding information identifier is different, and the URL address obtained by adopting the reversible algorithm is also different. A second implementation may use a reversible algorithm or an irreversible algorithm to generate the URL address, such as an obfuscation algorithm or an encryption algorithm, and then bind the forwarding information identifier to the URL address, where the purpose of the binding is to make the forwarding information identifier and the URL address have a one-to-one correspondence. In the first implementation manner, a reversible encryption algorithm may be used, and the forwarding information identifier may be obtained by performing inverse operation on the URL of the URL obtained by the reversible encryption algorithm.
In this step, the forwarding information identifier is processed in the following manner:
obtaining an intermediate identifier by splicing the user identifier and the article identifier and then using a confusion algorithm;
splicing the user identification and the article identification and then using an encryption algorithm to obtain an intermediate identification;
the unique identifier generated in the database is used as an intermediate identifier by storing the user identifier and the article identifier in the database.
The above manner of obtaining the intermediate identifier is not limited in this embodiment, and the forwarding information identifier and the intermediate identifier have a one-to-one correspondence relationship.
The URL obtained according to the forwarding information identifier comprises an intermediate identifier, for example, when the URL is http:// www.site.com/post/{ id }, the id is the intermediate identifier.
Step 203, forwarding the forwarding information according to the URL, so that when the client accesses the forwarding information through the URL, the target device obtains the forwarding information identifier according to the URL, and records the number of times that the client accesses through the URL according to the forwarding information identifier.
Specifically, the forwarding information is forwarded according to the URL, that is, the URL generated in step 202 is sent to the target device, and the target device sends the URL to the client, so that the client can access the forwarding information corresponding to the URL through the URL.
When the client accesses the forwarding information through the URL, the client sends an access request to the target device according to the URL, and the target device can obtain the forwarding information identifier corresponding to the URL according to the URL, which corresponds to two ways of obtaining the URL in step 202, and this step adopts two obtaining ways when obtaining the forwarding information identifier according to the URL: when the first implementation manner is adopted in step 202, in this step, when the forwarding information identifier is obtained according to the URL, the forwarding information identifier is obtained by performing reversible operation on the URL. When the second implementation manner is adopted in step 202, in this step, when the forwarding information identifier is obtained according to the URL, the forwarding information identifier is obtained by searching for a corresponding relationship between the forwarding information identifier and the URL.
And after the target equipment obtains the forwarding information identification, recording the access times corresponding to the forwarding information identification. Because the forwarding information identifier comprises the user identifier, the access times of the client with the user identifier after forwarding the forwarding information can be known through the user identifier, and therefore accurate statistics of the click rate of the forwarding information forwarded by different clients is achieved.
In this embodiment, the target device may be a server.
The statistical method for the access times of the forwarding information in the embodiment of the invention obtains the forwarding information identifier of the forwarding information, wherein the forwarding information identifier comprises a user identifier and an article identifier; then, acquiring a Uniform Resource Locator (URL) according to the forwarding information identifier, wherein the forwarding information identifier and the URL have a one-to-one correspondence relationship; and finally, forwarding the forwarding information according to the URL so that the target equipment acquires the forwarding information identifier according to the URL and records the number of times of accessing the client through the URL according to the forwarding information identifier. Therefore, the access times of the client with the user identification after forwarding the forwarding information can be obtained through the user identification, and accurate statistics of the click rate of the forwarding information forwarded by different clients is realized.
Further, forwarding the forwarding information according to the URL includes:
and sending the URL to the target equipment so that the target equipment forwards the forwarding information according to the URL. The target device sends the URL to the client, and the client can access the forwarding information corresponding to the URL through the URL.
Further, forwarding the forwarding information according to the URL, further comprising: and when the forwarding information is not stored in the target equipment, sending the forwarding information to the target equipment.
For example, when the forwarding information is stored locally in the client C, the forwarding information is not stored on the target device, and at this time, the forwarding information needs to be sent to the target device, so that when the client accesses the forwarding information through the URL, the target device sends the corresponding forwarding information to the client.
Further, in an embodiment of the present invention, step 202 includes:
processing the forwarding information identifier according to a reversible algorithm to obtain a unique identifier;
and obtaining the URL according to the unique identifier.
The implementation manners of the two steps are respectively the same as the implementation manners of step 1021 and step 1022 (only the execution main bodies are different, the execution main body in this embodiment is a client, and the execution main bodies of step 1021 and step 1022 are servers), which may specifically refer to the descriptions in step 1021 and step 1022, and are not described herein again.
Correspondingly, the step of acquiring the forwarding information identifier by the target device according to the URL, and recording the number of times of accessing the client through the URL according to the forwarding information identifier includes:
the target device analyzes the URL to obtain the unique identifier;
the target equipment acquires the forwarding information identifier according to the unique identifier;
and the target equipment generates or updates record information according to the forwarding information identifier, wherein the record information comprises the forwarding information identifier and the access times corresponding to the forwarding information identifier.
The implementation manners of the above three steps are respectively the same as the implementation manners of step 1041a to step 1043a, and reference may be specifically made to the records in step 1041a to step 1043a, which is not described herein again.
Further, after the target device acquires the URL, the method further includes:
and recording the corresponding relation between the URL and the forwarding information identifier. The implementation manner of this step is the same as that of step a (only the execution main body is different, the execution main body in this embodiment is a client, and the execution main body of step a is a server), which may specifically refer to the description in step a, and is not described herein again.
Correspondingly, the step of acquiring the forwarding information identifier by the target device according to the URL, and recording the number of times of accessing the client through the URL according to the forwarding information identifier includes:
and the target equipment searches in the corresponding relation between the URL and the forwarding information identifier according to the URL to acquire the forwarding information identifier corresponding to the URL. This step is the same as step 1041b, and reference may be made to the record in 1041b, which is not described herein again.
And the target equipment generates or updates record information according to the forwarding information identifier, wherein the record information comprises the forwarding information identifier and the access times corresponding to the forwarding information identifier. The step is the same as the step 1042b, and the description of the step 1042b can be specifically referred to, which is not repeated herein.
Further, after the step of acquiring, by the target device, the forwarding information identifier according to the URL when the client accesses the forwarding information through the URL, and recording the number of times that the client accesses through the URL according to the forwarding information identifier, the method further includes:
and the target equipment acquires the forwarding information according to the article identification in the forwarding information identification, wherein the article identification and the forwarding information have one-to-one correspondence. The step is the same as the step 105, and reference may be made to the description in the step 105, which is not described herein again.
And the target equipment sends the forwarding information to the client. The step is the same as the step 106, and reference may be made to the description in step 105, which is not described herein again.
EXAMPLE III
The present embodiment is an embodiment of an apparatus corresponding to the first embodiment, and is used for executing the method in the first embodiment.
Referring to fig. 5, fig. 5 is a structural diagram of a device for counting access times of forwarding information according to an embodiment of the present invention, and as shown in fig. 5, the device for counting access times of forwarding information according to an embodiment of the present invention includes a forwarding information identifier obtaining module 301, a URL obtaining module 302, a first forwarding module 303, and an access time recording module 304.
The forwarding information identifier obtaining module 301 is configured to obtain a forwarding information identifier of forwarding information, where the forwarding information identifier includes a user identifier and an article identifier.
A URL obtaining module 302, configured to obtain a uniform resource locator URL according to the forwarding information identifier, where the forwarding information identifier and the URL have a one-to-one correspondence relationship.
A first forwarding module 303, configured to forward the forwarding information according to the URL, so that the client accesses the forwarding information through the URL.
And an access frequency recording module 304, configured to, when the client accesses the forwarding information through the URL, obtain the forwarding information identifier according to the URL, and record the frequency of accessing the client through the URL according to the forwarding information identifier.
Further, as shown in fig. 5a, the URL obtaining module 302 includes:
the unique identifier obtaining submodule 3021 is configured to process the forwarding information identifier according to a reversible algorithm to obtain a unique identifier;
a URL obtaining submodule 3022, configured to obtain the URL according to the unique identifier;
as shown in fig. 5b, the access number recording module 304 includes:
a parsing submodule 3041, configured to parse the URL to obtain the unique identifier;
a first forwarding information identifier obtaining sub-module 3042, configured to obtain the forwarding information identifier according to the unique identifier;
the access frequency recording sub-module 3043 is configured to generate or update record information according to the forwarding information identifier, where the record information includes the forwarding information identifier and the access frequency corresponding to the forwarding information identifier.
Further, as shown in fig. 5c, the apparatus in the foregoing embodiment further includes a correspondence recording module 305, configured to record a correspondence between the URL and the forwarding information identifier;
as shown in fig. 5d, the access time recording module 304 includes a second forwarding information identifier obtaining sub-module 3041a and an access time recording sub-module 3043.
The second forwarding information identifier obtaining submodule 3041a is configured to search, according to the URL, a corresponding relationship between the URL and the forwarding information identifier, so as to obtain the forwarding information identifier corresponding to the URL.
The access frequency recording sub-module 3043 is configured to generate or update record information according to the forwarding information identifier, where the record information includes the forwarding information identifier and the access frequency corresponding to the forwarding information identifier.
Further, as shown in fig. 5e, the apparatus in the foregoing embodiment further includes a forwarding information obtaining module 306 and a forwarding information sending module 307.
The forwarding information obtaining module 306 is configured to obtain the forwarding information according to the article identifier in the forwarding information identifier, where the article identifier and the forwarding information have a one-to-one correspondence relationship;
a forwarding information sending module 307, configured to send the forwarding information to the client.
The present embodiment is an embodiment of an apparatus corresponding to the first embodiment, and for the description of each module, reference may be made to the description in the first embodiment, and details are not repeated here.
Example four
The present embodiment is an embodiment of an apparatus corresponding to the second embodiment, and is used for executing the method in the second embodiment.
Referring to fig. 6, fig. 6 is a structural diagram of a statistics apparatus for access times of forwarding information according to a fourth embodiment of the present invention, and as shown in fig. 6, the statistics apparatus for access times of forwarding information according to the fourth embodiment of the present invention includes a forwarding information identifier obtaining module 301, a URL obtaining module 302, and a second forwarding module 403.
The forwarding information identifier obtaining module 301 is configured to obtain a forwarding information identifier of forwarding information, where the forwarding information identifier includes a user identifier and an article identifier;
a URL obtaining module 302, configured to obtain a uniform resource locator URL according to the forwarding information identifier, where the forwarding information identifier and the URL have a one-to-one correspondence;
a second forwarding module 403, configured to forward the forwarding information according to the URL, so that when a client accesses the forwarding information through the URL, a target device obtains the forwarding information identifier according to the URL, and records the number of times that the client accesses through the URL according to the forwarding information identifier.
Further, the second forwarding module 403 is specifically configured to: and sending the URL to the target equipment so that the target equipment forwards the forwarding information according to the URL.
Further, the second forwarding module 403 is further configured to: and when the forwarding information is not stored in the target equipment, sending the forwarding information to the target equipment.
The present embodiment is an embodiment of an apparatus corresponding to the first embodiment, and for the description of each module, reference may be specifically made to the description in the second embodiment, and details are not repeated here.
Further, the target device includes a unique identifier acquiring submodule 3021, a URL acquiring submodule 3022, an access number recording module 304, a correspondence recording module 305, a forwarding information acquiring module 306, and a forwarding information sending module 307.
The unique identifier obtaining sub-module 3021 is configured to process the forwarding information identifier according to a reversible algorithm to obtain a unique identifier;
a URL obtaining submodule 3022, configured to obtain the URL according to the unique identifier;
a correspondence recording module 305, configured to record a correspondence between the URL and the forwarding information identifier.
A forwarding information obtaining module 306, configured to obtain the forwarding information according to the article identifier in the forwarding information identifier, where the article identifier and the forwarding information have a one-to-one correspondence relationship;
a forwarding information sending module 307, configured to send the forwarding information to the client.
In an embodiment of the present invention, as shown in fig. 5b, the access time recording module 304 includes a parsing submodule 3041, a first forwarding information identifier obtaining submodule 3042, and an access time recording submodule 3043.
The parsing submodule 3041 is configured to parse the URL to obtain the unique identifier;
a first forwarding information identifier obtaining sub-module 3042, configured to obtain the forwarding information identifier according to the unique identifier;
the access frequency recording sub-module 3043 is configured to generate or update record information according to the forwarding information identifier, where the record information includes the forwarding information identifier and the access frequency corresponding to the forwarding information identifier.
In another embodiment of the present invention, as shown in fig. 5d, the access time recording module 304 includes a second forwarding information identifier obtaining sub-module 3041a and an access time recording sub-module 3043.
The second forwarding information identifier obtaining submodule 3041a is configured to search, according to the URL, a corresponding relationship between the URL and the forwarding information identifier, so as to obtain the forwarding information identifier corresponding to the URL;
the access frequency recording sub-module 3043 is configured to generate or update record information according to the forwarding information identifier, where the record information includes the forwarding information identifier and the access frequency corresponding to the forwarding information identifier.
Each module included in the target device has the same function as the module with the same name in the third embodiment, which may be referred to in the description of the third embodiment specifically, and is not described herein again.
It should be noted that, in this document, 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 like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (14)

1. A statistical method for access times of forwarding information is characterized by comprising the following steps:
acquiring a forwarding information identifier of forwarding information, wherein the forwarding information identifier comprises a user identifier and an article identifier;
acquiring a Uniform Resource Locator (URL) according to the forwarding information identifier, wherein the forwarding information identifier and the URL have a one-to-one correspondence relationship, and the URL is obtained by processing the forwarding information identifier by adopting a reversible algorithm;
forwarding the forwarding information according to the URL so that a client accesses the forwarding information through the URL;
and when the client accesses the forwarding information through the URL, acquiring the forwarding information identifier according to the URL, and recording the access times of the client through the URL according to the forwarding information identifier.
2. The method of claim 1, wherein the step of obtaining a Uniform Resource Locator (URL) according to the forwarding information identifier comprises:
processing the forwarding information identifier according to a reversible algorithm to obtain a unique identifier;
obtaining the URL according to the unique identifier;
the step of, when the client accesses the forwarding information through the URL, acquiring the forwarding information identifier according to the URL, and recording the number of times that the client accesses through the URL according to the forwarding information identifier specifically includes:
analyzing the URL to obtain the unique identifier;
acquiring the forwarding information identifier according to the unique identifier;
and generating or updating record information according to the forwarding information identifier, wherein the record information comprises the forwarding information identifier and the access times corresponding to the forwarding information identifier.
3. The method according to claim 1, wherein after the step of obtaining a uniform resource locator URL according to the forwarding information identifier, and before the step of obtaining the forwarding information identifier according to the URL when the client accesses the forwarding information through the URL, and recording the number of times that the client accesses through the URL according to the forwarding information identifier, the method further comprises:
recording the corresponding relation between the URL and the forwarding information identifier;
the step of, when the client accesses the forwarding information through the URL, acquiring the forwarding information identifier according to the URL, and recording the number of times that the client accesses through the URL according to the forwarding information identifier specifically includes:
searching in the corresponding relation between the URL and the forwarding information identifier according to the URL to acquire the forwarding information identifier corresponding to the URL;
and generating or updating record information according to the forwarding information identifier, wherein the record information comprises the forwarding information identifier and the access times corresponding to the forwarding information identifier.
4. The method according to claim 1, wherein after the steps of obtaining the forwarding information identifier according to the URL and recording the number of times that the client accesses the forwarding information through the URL according to the forwarding information identifier when the client accesses the forwarding information through the URL, the method further comprises:
acquiring the forwarding information according to the article identifier in the forwarding information identifier, wherein the article identifier and the forwarding information have a one-to-one correspondence relationship;
and sending the forwarding information to the client.
5. A statistical method for access times of forwarding information is characterized by comprising the following steps:
acquiring a forwarding information identifier of forwarding information, wherein the forwarding information identifier comprises a user identifier and an article identifier;
acquiring a Uniform Resource Locator (URL) according to the forwarding information identifier, wherein the forwarding information identifier and the URL have a one-to-one correspondence relationship, and the URL is obtained by processing the forwarding information identifier by adopting a reversible algorithm;
and forwarding the forwarding information according to the URL, so that when a client accesses the forwarding information through the URL, the target device acquires the forwarding information identifier according to the URL and records the access times of the client through the URL according to the forwarding information identifier.
6. The method of claim 5, wherein the forwarding information according to the URL comprises:
and sending the URL to the target equipment so that the target equipment forwards the forwarding information according to the URL.
7. The method of claim 6, wherein the forwarding information according to the URL, further comprising: and when the forwarding information is not stored in the target equipment, sending the forwarding information to the target equipment.
8. A forwarding click volume statistic device, comprising:
the forwarding information identification acquisition module is used for acquiring a forwarding information identification of forwarding information, and the forwarding information identification comprises a user identification and an article identification;
a URL obtaining module, configured to obtain a uniform resource locator URL according to the forwarding information identifier, where the URL uses a reversible algorithm to process the forwarding information identifier, and a one-to-one correspondence relationship exists between the forwarding information identifier and the URL;
the first forwarding module is used for forwarding the forwarding information according to the URL so that a client accesses the forwarding information through the URL;
and the visit frequency recording module is used for acquiring the forwarding information identifier according to the URL when the client visits the forwarding information through the URL, and recording the visit frequency of the client through the URL according to the forwarding information identifier.
9. The apparatus of claim 8, wherein the URL obtaining module comprises:
the unique identifier acquisition submodule is used for processing the forwarding information identifier according to a reversible algorithm so as to obtain a unique identifier;
the URL obtaining submodule is used for obtaining the URL according to the unique identifier;
the access times recording module comprises:
the analysis submodule is used for analyzing the URL to obtain the unique identifier;
the first forwarding information identifier acquisition submodule is used for acquiring the forwarding information identifier according to the unique identifier;
and the access frequency recording submodule is used for generating or updating record information according to the forwarding information identifier, wherein the record information comprises the forwarding information identifier and the access frequency corresponding to the forwarding information identifier.
10. The apparatus of claim 8, further comprising:
a corresponding relation recording module, configured to record a corresponding relation between the URL and the forwarding information identifier;
the access times recording module comprises:
a second forwarding information identifier obtaining sub-module, configured to search for a corresponding relationship between the URL and the forwarding information identifier according to the URL, so as to obtain the forwarding information identifier corresponding to the URL;
and the access frequency recording submodule is used for generating or updating record information according to the forwarding information identifier, wherein the record information comprises the forwarding information identifier and the access frequency corresponding to the forwarding information identifier.
11. The apparatus of claim 8, further comprising:
a forwarding information obtaining module, configured to obtain the forwarding information according to the article identifier in the forwarding information identifier, where the article identifier and the forwarding information have a one-to-one correspondence relationship;
and the forwarding information sending module is used for sending the forwarding information to the client.
12. An access count device for forwarding information, comprising:
the forwarding information identification acquisition module is used for acquiring a forwarding information identification of forwarding information, and the forwarding information identification comprises a user identification and an article identification;
a URL obtaining module, configured to obtain a uniform resource locator URL according to the forwarding information identifier, where the URL uses a reversible algorithm to process the forwarding information identifier, and a one-to-one correspondence relationship exists between the forwarding information identifier and the URL;
and the second forwarding module is used for forwarding the forwarding information according to the URL, so that when the client accesses the forwarding information through the URL, the target device acquires the forwarding information identifier according to the URL and records the access times of the client through the URL according to the forwarding information identifier.
13. The apparatus of claim 12, wherein the second forwarding module is specifically configured to: and sending the URL to the target equipment so that the target equipment forwards the forwarding information according to the URL.
14. The apparatus of claim 13, wherein the second forwarding module is further configured to: and when the forwarding information is not stored in the target equipment, sending the forwarding information to the target equipment.
CN201810908087.0A 2018-08-10 2018-08-10 Forwarding information access frequency counting method and device Active CN109086428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810908087.0A CN109086428B (en) 2018-08-10 2018-08-10 Forwarding information access frequency counting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810908087.0A CN109086428B (en) 2018-08-10 2018-08-10 Forwarding information access frequency counting method and device

Publications (2)

Publication Number Publication Date
CN109086428A CN109086428A (en) 2018-12-25
CN109086428B true CN109086428B (en) 2021-05-14

Family

ID=64834501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810908087.0A Active CN109086428B (en) 2018-08-10 2018-08-10 Forwarding information access frequency counting method and device

Country Status (1)

Country Link
CN (1) CN109086428B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101647041A (en) * 2007-03-30 2010-02-10 雅虎公司 Point of presence distribution mechanism for digital content objects
CN104462242A (en) * 2014-11-18 2015-03-25 北京国双科技有限公司 Webpage reflow quantity counting method and device
CN107766470A (en) * 2017-09-30 2018-03-06 广东南都全媒体网络科技有限公司 Intelligent statistical method, Intelligent statistical display methods and the device of a kind of data sharing

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8996610B1 (en) * 2010-03-15 2015-03-31 Salesforce.Com, Inc. Proxy system, method and computer program product for utilizing an identifier of a request to route the request to a networked device
US10601892B2 (en) * 2015-10-26 2020-03-24 International Business Machines Corporation Collaborative bookmarks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101647041A (en) * 2007-03-30 2010-02-10 雅虎公司 Point of presence distribution mechanism for digital content objects
CN104462242A (en) * 2014-11-18 2015-03-25 北京国双科技有限公司 Webpage reflow quantity counting method and device
CN107766470A (en) * 2017-09-30 2018-03-06 广东南都全媒体网络科技有限公司 Intelligent statistical method, Intelligent statistical display methods and the device of a kind of data sharing

Also Published As

Publication number Publication date
CN109086428A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
US11100466B2 (en) Social media profiling for one or more authors using one or more social media platforms
KR102097881B1 (en) Method and apparatus for processing a short link, and a short link server
CN110083789B (en) Applet page acquisition method, server, client and electronic equipment
CN116432247A (en) Infringement evidence method and device based on blockchain
CN103714119B (en) A kind for the treatment of method and apparatus of browser data
US20140095308A1 (en) Advertisement distribution apparatus and advertisement distribution method
KR20200011443A (en) Matching and Attributes of User Device Events
US9342604B2 (en) Collaborative search
CN107357903B (en) User behavior data integration method and device and electronic equipment
CN111159563B (en) Method, device, equipment and storage medium for determining user interest point information
WO2015081848A1 (en) Socialized extended search method and corresponding device and system
US20170091303A1 (en) Client-Side Web Usage Data Collection
US8579187B2 (en) System and method to identify machine-readable codes
CN106407361A (en) Method and device for pushing information based on artificial intelligence
CN106534268B (en) Data sharing method and device
KR102790150B1 (en) System and method for providing customer matching service
CN108366012B (en) Social relationship establishing method and device and electronic equipment
CN110297995B (en) Method and device for collecting information
US20130179421A1 (en) System and Method for Collecting URL Information Using Retrieval Service of Social Network Service
CN112954043A (en) Method for identifying user based on website access log and computer equipment
CN110209780B (en) Question template generation method and device, server and storage medium
CN106383857A (en) Information processing method and electronic equipment
CN111797334A (en) Website access method and device, electronic equipment and storage medium
CN110557351B (en) Method and apparatus for generating information
CN104376066B (en) A kind of network certain content method for digging and device and a kind of electronic equipment

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