CN107038649B - Friend recommendation method and device for terminal user - Google Patents
Friend recommendation method and device for terminal user Download PDFInfo
- Publication number
- CN107038649B CN107038649B CN201710324508.0A CN201710324508A CN107038649B CN 107038649 B CN107038649 B CN 107038649B CN 201710324508 A CN201710324508 A CN 201710324508A CN 107038649 B CN107038649 B CN 107038649B
- Authority
- CN
- China
- Prior art keywords
- wifi
- terminal
- user account
- identification
- user
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000001514 detection method Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 235000013550 pizza Nutrition 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 235000013305 food Nutrition 0.000 description 2
- 238000012216 screening Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/01—Social networking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Primary Health Care (AREA)
- Physics & Mathematics (AREA)
- Economics (AREA)
- General Health & Medical Sciences (AREA)
- Human Resources & Organizations (AREA)
- Marketing (AREA)
- Computing Systems (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Health & Medical Sciences (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention belongs to the technical field of software communication, and provides a friend recommendation method and device for a terminal user. The friend recommendation method of the terminal user comprises the following steps: acquiring a first wifi identification searched or connected by a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi; detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of a remote server or not, wherein the wifi information base records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals; and if the user account exists, recommending the user account corresponding to the wifi identification which is the same as the first wifi identification in the wifi information base to the user account using the first terminal. Because two users who have searched or have connected the same wifi necessarily both go to the place where the wifi signal is located, the friend recommendation method provided by the invention can meet the requirement that people add people who go to a certain place together as friends.
Description
Technical Field
The invention belongs to the technical field of software communication, and particularly relates to a friend recommendation method and device for a terminal user.
Background
With the development of the internet and intelligent terminals, network friend making between people gradually changes from a traditional adding mode based on user account searching to a mode of adding friends by WeChat scanning or adding friends by searching nearby people, and the like, so that the network friend making becomes more diversified and intelligent.
At present, the way of adding nearby artificial friends is popular with people, but the way must be adopted to ensure that both parties of adding friends are located in a specified close range. In fact, many people want to add people who have gone to a certain place together as friends, and at this time, the way of adding people nearby as friends cannot meet the requirement. For example, a user may have a trip to pizza for a period of time, and may add friends by adding people nearby while on pizza, but not when away from pizza.
Disclosure of Invention
In view of this, embodiments of the present invention provide a friend recommendation method and apparatus for a terminal user, which can meet a requirement that people add people who have gone together to a certain location as friends.
A first aspect of an embodiment of the present invention provides a method for recommending a friend of a terminal user, including:
acquiring a first wifi identification searched or connected by a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi;
detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of a remote server or not, wherein the wifi information base records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals;
and if the user account exists, recommending the user account corresponding to the wifi identification which is the same as the first wifi identification in the wifi information base to the user account using the first terminal.
A second aspect of the present invention provides a friend recommendation apparatus for a terminal user, including:
the identification acquisition module is used for acquiring a first wifi identification searched or connected by a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi;
the detection module is used for detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of the remote server or not, and the wifi information base records the wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals;
and the first recommending module is used for recommending the user account corresponding to the wifi identification which is the same as the first wifi identification in the wifi information base to the user account using the first terminal if the wifi identification which is the same as the first wifi identification exists in the wifi information base of the remote server.
In the embodiment of the invention: acquiring a first wifi identification searched or connected by a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi; detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of a remote server or not, wherein the wifi information base records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals; and if the user account exists, recommending the user account corresponding to the wifi identification which is the same as the first wifi identification in the wifi information base to the user account using the first terminal. Because two users who have searched or have connected the same wifi necessarily both go to the place where the wifi signal is located, the friend recommendation method provided by the invention can meet the requirement that people add people who go to a certain place together as friends.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described 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 to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a friend recommendation method for a terminal user according to a first embodiment of the present invention;
fig. 2 is a flowchart of a friend recommendation method for a terminal user according to a second embodiment of the present invention;
fig. 3 is a flowchart of a friend recommendation method for a terminal user according to a third embodiment of the present invention;
fig. 4 is a structural diagram of an embodiment of a friend recommendation device of a terminal user according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The embodiment of the invention provides a friend recommendation method and device for a terminal user, which can meet the requirement that people who go to a certain place together are added as friends.
Referring to fig. 1, a first embodiment of a friend recommendation method for a terminal user in an embodiment of the present invention includes:
101. acquiring a first wifi identification searched or connected by a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi;
the first terminal is a terminal used by a user with a friend adding intention, and can be various intelligent terminals including a smart phone, a notebook computer or a tablet computer. The first wifi identification is a wifi identification searched or connected by the first terminal, the wifi identification is a unique identification corresponding to each wifi, and can be a router address such as an SSID (Service Set Identifier) and a BSSID (Basic Service Set Identifier) corresponding to the wifi, and the router address is used for distinguishing different wifi signals, and each terminal can automatically store a wifi identification record searched or connected by itself. In step 101, the first terminal uploads a history wifi identifier searched by itself or connected to itself to a cloud or a remote server, which is used as a basic basis for subsequent friend matching. Obviously, the first wifi identifier may be one or more than one. If a plurality of first wifi identifications exist, the first wifi identifications can be uploaded to a server, any part of the first wifi identifications can be appointed by a user account of the first terminal, and only the part of the wifi identifications are uploaded to the server.
102. Detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of a remote server or not, wherein the wifi information base records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals;
and the remote server detects whether a wifi identifier which is the same as the first wifi identifier exists in a pre-established wifi information base or not after receiving the first wifi identifier. The wifi information base can be a database in a remote server, and records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals. The user account is a registered user account which is logged in by using the terminal, such as a micro signal, a QQ number and the like. In the wifi information base, each terminal can correspond to a plurality of different user accounts and also can correspond to a plurality of different wifi identifiers; each user account may correspond to a plurality of different terminals, and may also correspond to a plurality of different wifi identifiers, as shown in table 1.
TABLE 1
103. And if the user account exists, recommending the user account corresponding to the wifi identification which is the same as the first wifi identification in the wifi information base to the user account using the first terminal.
And if the wifi identification which is the same as the first wifi identification exists in the wifi information base, determining user accounts corresponding to the wifi identifications, and recommending the user accounts to the user account using the first terminal. After recommending the user accounts to the user account using the first terminal, the user account using the first terminal may select whether to add the user accounts as friends. The user account corresponding to the wifi identification identical to the first wifi identification is certainly the user account which is searched or used by the first terminal for the same wifi signal, therefore, the user account and the user account using the first terminal are certainly all used at the place where the wifi signal is located, the user account and the user account are recommended to the place where the wifi signal is located, the user account and the user account are used as friends to be added, and the purpose that people who commonly use the place are added to serve as friends is achieved. Assuming that the user account using the first terminal is A, the first wifi identifications are wifi-1 and wifi-2, the information recorded by the wifi information base is shown in table 2, the user accounts corresponding to the wifi identifications identical to the first wifi identifications are user B, user C and user E, and the users are recommended to user A as friends to be added.
TABLE 2
Obviously, there may be a plurality of recommended user accounts determined through the above steps, and if these user accounts are all recommended to a target user who desires to add a friend, inconvenience is brought to the target user, so some rules below may be formulated to screen these user accounts to select one or more user accounts that best meet the requirements of the target user.
Further, the wifi record base further records the internet browsing history of the more than one terminal, if the user account corresponding to the wifi identifier in the wifi information base, which is the same as the first wifi identifier, includes more than two user accounts, then step 103 may specifically include:
(1) acquiring a first Internet browsing history record of the first terminal;
(2) comparing and analyzing the first internet browsing history record and the internet browsing history record of each user account of the more than two user accounts, and calculating to obtain the similarity between the first internet browsing history record and the internet browsing history record;
(3) recommending the user account with the highest similarity between the Internet browsing history record and the first Internet browsing history record in the more than two user accounts to the user account using the first terminal.
The internet browsing history can accurately reflect the interest points of the user, for example, for the user who likes food, the user may browse more webpage information about local food; for a person who loves sports, he may more browse the broadcasted information of various sports events, etc. And comparing and analyzing the Internet browsing history records of each user account in the more than two user accounts with the Internet browsing history record of the first terminal, recommending the user account with the highest similarity of the Internet browsing history records to the user account using the first terminal so as to use the user account of the first terminal to find the user who has common hobbies with the user account from a pile of users, and further improving the practicability.
In addition, the step 103 may specifically include:
(1) respectively counting the number of wifi identifications which are corresponding to each user account in the more than two user accounts and are the same as the first wifi identification;
(2) recommending the user account with the largest number of wifi identifications which are the same as the first wifi identification and correspond to the more than two user accounts to the user account using the first terminal.
In view of the fact that the number of the wifi identifications, which correspond to each user account of the more than two user accounts and are the same as the first wifi identification, may be different, the number of the same wifi identification may be used as a screening basis for the friend to be added. For example, for the example shown in table 2, the user B, the user C, and the user E all belong to the to-be-added friend of the user a, the number of wifi identifiers corresponding to the user B and identical to the first wifi identifier is counted as 2, and the number of wifi identifiers corresponding to the user C and the user E and identical to the first wifi identifier is counted as 1, so that the user B is finally recommended to the user a. User B has more of the same place to which user a has gone than user C and user E, and thus user B and user a may have more topics in common.
On the other hand, in step 103, if the wifi identifier that is the same as the first wifi identifier does not exist in the wifi information base, the processing may be performed in a preset friend recommendation manner. The preset friend recommendation mode may include: not recommending, randomly recommending, recommending according to identity information recorded when a user registers, and the like.
In the embodiment of the invention: acquiring a first wifi identification searched or connected by a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi; detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of a remote server or not, wherein the wifi information base records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals; and if the user account exists, recommending the user account corresponding to the wifi identification which is the same as the first wifi identification in the wifi information base to the user account using the first terminal. Because two users who have searched or have connected the same wifi necessarily both go to the place where the wifi signal is located, the friend recommendation method provided by the invention can meet the requirement that people add people who go to a certain place together as friends.
Referring to fig. 2, a flowchart of a friend recommendation method for a terminal user according to a second embodiment of the present invention is shown.
Due to the fact that the wifi signals of the same place are numerous, most users who go to the place are likely to have different wifi signals, and therefore user accounts corresponding to the wifi identifications identical to the first wifi identification are probably not found, and at the moment, how to determine the corresponding user accounts to recommend needs to be considered. In this embodiment, the wifi information base further records second location information corresponding to each wifi identifier therein, where the location information corresponds to the wifi identifier and is used to determine the actual geographic location of the wifi signal. Specifically, the location information may be coordinate information representing an actual geographic location of wifi (the coordinate information may be obtained through a positioning function of a terminal connected to the wifi and uploaded to a server); or a public network IP address of the access network, and the actual geographic location corresponding to the IP address can be determined by querying an IP database.
The friend recommendation method provided by the embodiment comprises the following steps:
201. acquiring a first wifi identification searched or connected by a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi;
step 201 is the same as step 101, and specific reference may be made to the related description of step 101.
202. Detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of a remote server or not, wherein the wifi information base records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals;
in step 202, if a wifi identifier identical to the first wifi identifier exists in the wifi information base, step 207 is executed, otherwise, step 203 is executed.
203. Acquiring first position information corresponding to the first wifi identification;
and if the wifi identification which is the same as the first wifi identification does not exist in the wifi information base, executing step 203, wherein the first location information is used for determining the actual geographic location of the wifi signal.
204. Determining a first geographical position where wifi searched or connected by the first terminal is located according to the first position information;
205. determining a second geographic position where wifi searched or connected by the more than one terminal is located according to the second position information;
206. Recommending a user account corresponding to the second geographic position meeting a preset condition to a user account using the first terminal, wherein the preset condition is that the difference between the user account and the first geographic position is minimum or is smaller than a preset threshold value.
After the first geographical position and the second geographical position are determined, which geographical positions in the second geographical position have the smallest difference with the first geographical position or are smaller than a preset threshold (for example, 500 meters) can be judged, the corresponding user account is determined according to wifi identifications corresponding to the geographical positions meeting the conditions, and then the user account using the first terminal is recommended.
Further, in step 206, if the user account corresponding to the second geographic location meeting the preset condition includes more than two user accounts, the recommending the user account corresponding to the second geographic location meeting the preset condition to the user account using the first terminal may specifically include:
(1) respectively counting the number of target wifi identifications corresponding to each user account in the more than two user accounts, wherein the geographic positions corresponding to the target wifi identifications meet the preset conditions;
(2) recommending the user account with the maximum number of the target wifi identifications in the more than two user accounts to the user account using the first terminal.
In view of the fact that the number of the target wifi identifiers corresponding to each of the more than two user accounts may be different, the number of the target wifi identifiers may be used as a screening basis for friends to be added, so as to select one or more user accounts that best meet the requirements of the target user.
207. Recommending the user account corresponding to the wifi identification which is the same as the first wifi identification in the wifi information base to the user account using the first terminal.
Step 207 is the same as step 103, and the related description of step 103 can be specifically referred to.
In the embodiment of the invention: acquiring a first wifi identification searched or connected by a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi; detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of a remote server or not, wherein the wifi information base records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals; if the user account exists, recommending the user account corresponding to the wifi identifier which is the same as the first wifi identifier in the wifi information base to the user account using the first terminal; if the wifi identifier does not exist, acquiring first position information corresponding to the first wifi identifier, determining a first geographical position where wifi searched or connected by the first terminal is located according to the first position information, determining a second geographical position where wifi searched or connected by more than one terminal is located according to the second position information, recommending a user account corresponding to the second geographical position meeting a preset condition to the user account using the first terminal, wherein the preset condition is that the difference between the preset condition and the first geographical position is minimum or is smaller than a preset threshold value. Because two users who have searched or have connected the same wifi necessarily both go to the place where the wifi signal is located, the friend recommendation method provided by the invention can meet the requirement that people add people who go to a certain place together as friends. In addition, under the condition that the user accounts connected with the same wifi cannot be found, the user accounts connected with any wifi nearby the appointed place are considered, and the success rate of finding friends to be added is greatly improved.
Referring to fig. 3, a third embodiment of a friend recommendation method for a terminal user in the embodiment of the present invention includes:
301. acquiring a first friend making request of a first terminal and a first wifi identifier searched or connected by the first terminal, wherein the wifi identifier is a unique identifier corresponding to each wifi;
302. acquiring a second friend making request of a second terminal and a second wifi identifier searched or connected by the second terminal, wherein the difference between the time of acquiring the first friend making request and the time of acquiring the second friend making request is smaller than a preset threshold value;
in steps 301 and 302, the friend making request is a request sent by the terminal to the server, and is used for requesting the server to recommend a corresponding friend. The first terminal and the second terminal represent any two users with friend-making intentions, and the time difference of the friend-making requests is within a set threshold value, such as within 1 hour.
303. Judging whether a wifi identifier which is the same as the first wifi identifier exists in the second wifi identifier or not;
and comparing and judging whether the second wifi identification has a wifi identification which is the same as the first wifi identification, if so, executing a step 306, otherwise, executing a step 304.
304. Detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of a remote server or not, wherein the wifi information base records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals;
step 304 is the same as step 102, and reference may be made to the related description of step 102.
305. And if the user account exists, recommending the user account corresponding to the wifi identification which is the same as the first wifi identification in the wifi information base to the user account using the first terminal.
Step 305 is the same as step 103, and specific reference may be made to the description related to step 103. In addition, if there are a plurality of user accounts corresponding to the wifi identifiers that are the same as the first wifi identifier obtained in step 305, the user accounts may also be filtered by using the filtering rule set forth in the embodiment shown in fig. 1.
306. And recommending the user account using the second terminal to the user account using the first terminal.
The wifi identification identical to the first wifi identification exists in the second wifi identification, the second wifi identification represents the user account of the second terminal and the user account of the first terminal go to the same place, the user accounts are users with friend-making wishes in the current time period, and the user accounts are recommended mutually to improve the success rate of friend adding.
In the embodiment of the invention: acquiring a first friend making request of a first terminal and a first wifi identifier searched or connected by the first terminal, wherein the wifi identifier is a unique identifier corresponding to each wifi; acquiring a second friend making request of a second terminal and a second wifi identifier searched or connected by the second terminal, wherein the difference between the time of acquiring the first friend making request and the time of acquiring the second friend making request is smaller than a preset threshold value; judging whether a wifi identifier which is the same as the first wifi identifier exists in the second wifi identifier or not; if so, recommending the user account using the second terminal to the user account using the first terminal; otherwise, detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of the remote server or not, wherein the wifi information base records the wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminal; and if the user account exists, recommending the user account corresponding to the wifi identification which is the same as the first wifi identification in the wifi information base to the user account using the first terminal. Because two users who have searched or have connected the same wifi necessarily both go to the place where the wifi signal is located, the friend recommendation method provided by the invention can meet the requirement that people add people who go to a certain place together as friends. In addition, the embodiment of the invention preferentially recommends the users with friend-making willingness in the current time period, thereby further increasing the success rate of friend addition.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The foregoing mainly describes a friend recommendation method for an end user, and a friend recommendation apparatus for an end user is described in detail below.
Referring to fig. 4, an embodiment of a friend recommendation apparatus for a terminal user in an embodiment of the present invention includes:
the identifier obtaining module 401 is configured to obtain a first wifi identifier that is searched or connected by a first terminal, where the wifi identifier is a unique identifier corresponding to each wifi;
the detection module 402 is used for detecting whether a wifi identifier which is the same as the first wifi identifier exists in a wifi information base of a remote server, wherein the wifi information base records wifi identifiers searched or connected by more than one terminal and user accounts corresponding to the terminals;
and the first recommending module 403 is configured to recommend the user account corresponding to the wifi identifier with the same first wifi identifier in the wifi information base to the user account using the first terminal if the wifi identifier with the same first wifi identifier exists in the wifi information base of the remote server.
Further, the wifi information base further records second location information corresponding to each wifi identifier therein, and the friend recommendation device of the terminal user may further include:
the position acquisition module is used for acquiring first position information corresponding to the first wifi identification;
the first position determining module is used for determining a first geographical position where wifi searched or connected by the first terminal is located according to the first position information;
the second position determining module is used for determining a second geographic position where wifi searched or connected by the more than one terminal is located according to the second position information;
and the second recommending module is used for recommending the user account corresponding to the second geographic position meeting the preset condition to the user account using the first terminal, wherein the preset condition is that the difference between the user account and the first geographic position is minimum or is smaller than a preset threshold value.
Further, the second recommending module may specifically include:
the first identification number counting unit is used for respectively counting the number of target wifi identifications corresponding to each user account in the more than two user accounts, and the geographic positions corresponding to the target wifi identifications meet the preset conditions;
and the first recommending unit is used for recommending the user account with the largest number of the target wifi identifiers in the more than two user accounts to the user account using the first terminal.
Further, the wifi record base further records internet browsing history records of the more than one terminal, and the first recommending module specifically may include:
a record acquisition unit, configured to acquire a first internet browsing history record of the first terminal;
the record comparison unit is used for comparing and analyzing the first Internet browsing history record and the Internet browsing history records of each user account in the more than two user accounts and calculating the similarity between the first Internet browsing history record and the Internet browsing history records;
a second recommending unit, configured to recommend a user account with a highest similarity between the internet browsing history and the first internet browsing history among the two or more user accounts to a user account using the first terminal;
the second identification number counting unit is used for respectively counting the number of wifi identifications which are corresponding to each user account in the more than two user accounts and are the same as the first wifi identification;
and the third recommending unit is used for recommending the user account with the largest number of the wifi identifications which are the same as the first wifi identifications and correspond to the more than two user accounts to the user account using the first terminal.
Further, the friend recommendation device of the end user may further include:
the first request acquisition module is used for acquiring a first friend making request of the first terminal;
the second request acquisition module is used for acquiring a second friend making request of a second terminal and a second wifi identifier which is searched or connected by the second terminal, wherein the difference between the time of acquiring the first friend making request and the time of acquiring the second friend making request is smaller than a preset threshold value;
the judging module is used for judging whether a wifi identifier which is the same as the first wifi identifier exists in the second wifi identifier;
and the third recommending module is used for recommending the user account using the second terminal to the user account using the first terminal if the wifi identification which is the same as the first wifi identification exists in the second wifi identification, otherwise, executing the step of detecting whether the wifi identification which is the same as the first wifi identification exists in a wifi information base of the remote server.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention may be implemented in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (6)
1. A friend recommendation method for a terminal user is characterized by comprising the following steps:
acquiring a first wifi identification searched or connected by a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi, and if the first wifi identifications are multiple, acquiring a part of first wifi identifications appointed by a user account of the first terminal from the multiple first wifi identifications;
acquiring a first friend making request of the first terminal;
acquiring a second friend making request of a second terminal and a second wifi identifier searched or connected by the second terminal, wherein the difference between the time of acquiring the first friend making request and the time of acquiring the second friend making request is smaller than a preset threshold value;
judging whether a wifi identifier which is the same as the first wifi identifier exists in the second wifi identifier or not;
if the wifi identification which is the same as the first wifi identification exists in the second wifi identification, recommending the user account using the second terminal to the user account using the first terminal, otherwise, detecting whether the wifi identification which is the same as the first wifi identification exists in a wifi information base of a remote server, wherein the wifi information base records the wifi identifications searched or connected by more than one terminal and the user accounts corresponding to the terminals, and also records second position information corresponding to each wifi identification in the wifi information base;
if the wifi identification which is the same as the first wifi identification exists in the wifi information base, recommending a user account which corresponds to the wifi identification which is the same as the first wifi identification in the wifi information base to a user account using the first terminal;
if the wifi identification which is the same as the first wifi identification does not exist in the wifi information base, acquiring first position information corresponding to the first wifi identification; determining a first geographical position where wifi searched or connected by the first terminal is located according to the first position information; determining a second geographic position where wifi searched or connected by the more than one terminal is located according to the second position information; recommending a user account corresponding to the second geographic position meeting a preset condition to a user account using the first terminal, wherein the preset condition is that the difference between the user account and the first geographic position is minimum or is smaller than a preset threshold value.
2. The friend recommending method of an end user according to claim 1, wherein if the user account corresponding to the second geographic location meeting the preset condition includes more than two user accounts, the recommending the user account corresponding to the second geographic location meeting the preset condition to the user account using the first terminal specifically includes:
respectively counting the number of target wifi identifications corresponding to each user account in the more than two user accounts, wherein the geographic positions corresponding to the target wifi identifications meet the preset conditions;
recommending the user account with the maximum number of the target wifi identifications in the more than two user accounts to the user account using the first terminal.
3. The method of claim 1, wherein the wifi record base further records internet browsing history records of the one or more terminals, and if the user accounts corresponding to the wifi identifiers in the wifi information base that are the same as the first wifi identifiers include more than two user accounts, the recommending the user accounts corresponding to the wifi identifiers in the wifi information base that are the same as the first wifi identifiers to the user account using the first terminal specifically includes:
acquiring a first Internet browsing history record of the first terminal;
comparing and analyzing the first internet browsing history record and the internet browsing history record of each user account of the more than two user accounts, and calculating to obtain the similarity between the first internet browsing history record and the internet browsing history record;
recommending the user account with the highest similarity between the Internet browsing history record and the first Internet browsing history record in the more than two user accounts to the user account using the first terminal;
or
Respectively counting the number of wifi identifications which are corresponding to each user account in the more than two user accounts and are the same as the first wifi identification;
recommending the user account with the largest number of wifi identifications which are the same as the first wifi identification and correspond to the more than two user accounts to the user account using the first terminal.
4. A friend recommendation apparatus for an end user, comprising:
the identification acquisition module is used for acquiring a first wifi identification searched by or connected with a first terminal, wherein the wifi identification is a unique identification corresponding to each wifi, and if the number of the first wifi identifications is multiple, the part of the first wifi identifications appointed by a user account of the first terminal from the multiple first wifi identifications is acquired;
the detection module is used for detecting whether wifi identifications identical to the first wifi identification exist in a wifi information base of the remote server or not, the wifi information base records wifi identifications searched or connected by more than one terminal and user accounts corresponding to the terminals, and also records second position information corresponding to each wifi identification in the wifi information base;
the first recommending module is used for recommending the user account corresponding to the wifi identifier which is the same as the first wifi identifier in the wifi information base of the remote server to the user account using the first terminal if the wifi identifier which is the same as the first wifi identifier exists in the wifi information base of the remote server;
the position acquisition module is used for acquiring first position information corresponding to the first wifi identification;
the first position determining module is used for determining a first geographical position where wifi searched or connected by the first terminal is located according to the first position information;
the second position determining module is used for determining a second geographic position where wifi searched or connected by the more than one terminal is located according to the second position information;
the second recommending module is used for recommending a user account corresponding to a second geographic position meeting a preset condition to a user account using the first terminal, wherein the preset condition is that the difference between the user account and the first geographic position is minimum or is smaller than a preset threshold value;
the friend recommending device further comprises:
the first request acquisition module is used for acquiring a first friend making request of the first terminal;
the second request acquisition module is used for acquiring a second friend making request of a second terminal and a second wifi identifier which is searched or connected by the second terminal, wherein the difference between the time of acquiring the first friend making request and the time of acquiring the second friend making request is smaller than a preset threshold value;
the judging module is used for judging whether a wifi identifier which is the same as the first wifi identifier exists in the second wifi identifier;
and the third recommending module is used for recommending the user account using the second terminal to the user account using the first terminal if the wifi identification which is the same as the first wifi identification exists in the second wifi identification, otherwise, executing the step of detecting whether the wifi identification which is the same as the first wifi identification exists in a wifi information base of the remote server.
5. The friend recommendation device of claim 4, wherein if the user account corresponding to the second geographic location meeting the preset condition includes more than two user accounts, the second recommendation module specifically includes:
the first identification number counting unit is used for respectively counting the number of target wifi identifications corresponding to each user account in the more than two user accounts, and the geographic positions corresponding to the target wifi identifications meet the preset conditions;
and the first recommending unit is used for recommending the user account with the largest number of the target wifi identifiers in the more than two user accounts to the user account using the first terminal.
6. The friend recommendation device of an end user according to claim 4, wherein the wifi record base further records internet browsing history records of the at least one terminal, and if the user accounts corresponding to the wifi identifiers in the wifi information base that are the same as the first wifi identifiers include more than two user accounts, the first recommendation module specifically includes:
a record acquisition unit, configured to acquire a first internet browsing history record of the first terminal;
the record comparison unit is used for comparing and analyzing the first Internet browsing history record and the Internet browsing history records of each user account in the more than two user accounts and calculating the similarity between the first Internet browsing history record and the Internet browsing history records;
a second recommending unit, configured to recommend a user account with a highest similarity between the internet browsing history and the first internet browsing history among the two or more user accounts to a user account using the first terminal;
the second identification number counting unit is used for respectively counting the number of wifi identifications which are corresponding to each user account in the more than two user accounts and are the same as the first wifi identification;
and the third recommending unit is used for recommending the user account with the largest number of the wifi identifications which are the same as the first wifi identifications and correspond to the more than two user accounts to the user account using the first terminal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710324508.0A CN107038649B (en) | 2017-05-10 | 2017-05-10 | Friend recommendation method and device for terminal user |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710324508.0A CN107038649B (en) | 2017-05-10 | 2017-05-10 | Friend recommendation method and device for terminal user |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107038649A CN107038649A (en) | 2017-08-11 |
CN107038649B true CN107038649B (en) | 2021-03-26 |
Family
ID=59537722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710324508.0A Active CN107038649B (en) | 2017-05-10 | 2017-05-10 | Friend recommendation method and device for terminal user |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107038649B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109429210A (en) * | 2017-08-31 | 2019-03-05 | 富泰华工业(深圳)有限公司 | Electronic device identifying system, method and electronic device |
CN107995099A (en) * | 2017-11-24 | 2018-05-04 | 广东欧珀移动通信有限公司 | Friend recommendation method and device |
CN107833111A (en) * | 2017-11-28 | 2018-03-23 | 中国银行股份有限公司 | A kind of Products Show method, apparatus and system |
CN108134733A (en) * | 2017-12-21 | 2018-06-08 | 广东小天才科技有限公司 | Friend making method and system based on wearable device and wearable device |
CN111814067B (en) * | 2020-06-30 | 2024-03-15 | 北京百度网讯科技有限公司 | Friend recommendation method, device, equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105471715A (en) * | 2015-12-14 | 2016-04-06 | 西安交通大学 | Mobile social network friend recommending method and system based on geographical position change |
CN106021290A (en) * | 2016-04-29 | 2016-10-12 | 中国科学院信息工程研究所 | Method for social network association excavation based on multi-scale geographic information |
CN106506574A (en) * | 2015-09-07 | 2017-03-15 | 腾讯科技(深圳)有限公司 | Realize the method and system that candidate user is pushed |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8112720B2 (en) * | 2007-04-05 | 2012-02-07 | Napo Enterprises, Llc | System and method for automatically and graphically associating programmatically-generated media item recommendations related to a user's socially recommended media items |
CN101916286A (en) * | 2010-08-23 | 2010-12-15 | 宇龙计算机通信科技(深圳)有限公司 | Information recommendation method and system |
CN102546702A (en) * | 2010-12-27 | 2012-07-04 | 汉斯·杰里·乌尔本·彼得森 | Method for participating in social activity through mobile equipment |
CN102739812B (en) * | 2011-04-12 | 2015-08-26 | 腾讯科技(深圳)有限公司 | A kind of method of commending friends and device |
CN103166834A (en) * | 2011-12-15 | 2013-06-19 | 北京千橡网景科技发展有限公司 | Method and equipment recommending friends to social network user based on location |
US9367215B2 (en) * | 2014-04-30 | 2016-06-14 | AthenTek Incorporated | Mobile devices and related methods for configuring a remote device |
CN105871687B (en) * | 2016-03-21 | 2019-03-22 | 广东小天才科技有限公司 | Method and system for recommending friends |
-
2017
- 2017-05-10 CN CN201710324508.0A patent/CN107038649B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506574A (en) * | 2015-09-07 | 2017-03-15 | 腾讯科技(深圳)有限公司 | Realize the method and system that candidate user is pushed |
CN105471715A (en) * | 2015-12-14 | 2016-04-06 | 西安交通大学 | Mobile social network friend recommending method and system based on geographical position change |
CN106021290A (en) * | 2016-04-29 | 2016-10-12 | 中国科学院信息工程研究所 | Method for social network association excavation based on multi-scale geographic information |
Non-Patent Citations (2)
Title |
---|
Friend recommendation system based on lifestyles of users;Tofik R. Kacchi等;《2016 2nd International Conference on Advances in Electrical, Electronics, Information, Communication and Bio-Informatics (AEEICB)》;20160811;第1-4页 * |
基于位置社交网络潜在好友推荐算法研究;李翔;《万方学位论文数据库》;20160831;第1-71页 * |
Also Published As
Publication number | Publication date |
---|---|
CN107038649A (en) | 2017-08-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107038649B (en) | Friend recommendation method and device for terminal user | |
WO2016015468A1 (en) | Data information transaction method and system | |
CN109614556B (en) | Access path prediction and information push method and device | |
CN108540755B (en) | Identity recognition method and device | |
WO2014130396A1 (en) | Continuous proximity and relational analysis of user devices in a network | |
US9122910B2 (en) | Method, apparatus, and system for friend recommendations | |
WO2014166133A1 (en) | Method, apparatus, and system for friend recommendations | |
CN107092645B (en) | Book resource management method and device | |
US11641596B2 (en) | Crowd sourced privacy preserving access point mapping | |
JP2021082309A (en) | Method and device for setting password protection question | |
CN106971345A (en) | A kind of location recommendation method based on position social networks | |
CN104376022B (en) | Data processing method and device | |
CN109189960A (en) | Information acquisition method, information acquisition device and computer storage medium | |
CN105893562A (en) | Conversation message processing method and device and terminal | |
KR20160088770A (en) | Method for providing location-based information | |
CN112861963A (en) | Method, device and storage medium for training entity feature extraction model | |
US20160321712A1 (en) | Crowd Sourced Networked Target Feedback | |
KR101636945B1 (en) | Clique network search system and method of the same | |
CN106682146B (en) | Method and system for retrieving scenic spot evaluation according to keywords | |
US20150066789A1 (en) | Interpersonal affinity identification | |
CN105956061B (en) | Method and device for determining similarity between users | |
KR20120001562A (en) | Server for providing social network service and method for recommending personal connections thereof | |
CN107391543B (en) | Wireless hotspot type identification method and device | |
CN110110206B (en) | Method, device, computing equipment and storage medium for mining and recommending relationships among articles | |
CN108234471B (en) | Group entry verification method, group entry verification device, computer device and computer-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 |