CN113434553A - Method, device, storage medium and computer equipment for acquiring information - Google Patents

Method, device, storage medium and computer equipment for acquiring information Download PDF

Info

Publication number
CN113434553A
CN113434553A CN202110739578.9A CN202110739578A CN113434553A CN 113434553 A CN113434553 A CN 113434553A CN 202110739578 A CN202110739578 A CN 202110739578A CN 113434553 A CN113434553 A CN 113434553A
Authority
CN
China
Prior art keywords
network address
information
address information
client
administrative region
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.)
Pending
Application number
CN202110739578.9A
Other languages
Chinese (zh)
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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110739578.9A priority Critical patent/CN113434553A/en
Publication of CN113434553A publication Critical patent/CN113434553A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems

Abstract

The invention discloses a method, a device, a storage medium and computer equipment for acquiring information. Wherein, the method comprises the following steps: acquiring a behavior log sent by a client running in the household appliance, wherein the behavior log at least comprises an operation behavior of a target object for operating the household appliance and network address information of the client; acquiring network address information corresponding to the client from the behavior log; and then searching administrative region information corresponding to the network address information from a storage database, wherein at least the network address information, the administrative region information and the association relationship between the network address information and the administrative region information are stored in the storage database, and the administrative region information represents the geographical position information of the client. The invention solves the technical problem of resource waste caused by acquiring the administrative region information in a mode of frequently calling the interface in the prior art.

Description

Method, device, storage medium and computer equipment for acquiring information
Technical Field
The present invention relates to the field of computers, and in particular, to a method, an apparatus, a storage medium, and a computer device for acquiring information.
Background
With the development of internet technology, various clients developed based on household appliances are produced, and meanwhile, a large number of users use the clients on the household appliances every day, so that a large amount of user information including client network address information is generated, and operators hope to determine corresponding administrative region information through the client network address information, so that the geographical position information of the users is further determined, the distribution situation of the users is mastered, operation strategies are made in a targeted manner, and the competitiveness of products is improved.
However, in the prior art, when the corresponding administrative area information is acquired through the network address information of the client, because the local storage database does not have the network address information, the administrative area information and the association relationship between the network address information and the administrative area information, the administrative area information corresponding to the network address information can be acquired only by frequently calling an interface of a third-party system, thereby causing additional performance consumption and resource waste.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method, a device, a storage medium and computer equipment for acquiring information, which are used for at least solving the technical problem of resource waste caused by acquiring administrative region information in a mode of frequently calling an interface in the prior art.
According to an aspect of an embodiment of the present invention, there is provided a method for acquiring information, including: acquiring a behavior log sent by a client running in the household appliance, wherein the behavior log at least comprises an operation behavior of a target object for operating the household appliance and network address information of the client; acquiring network address information corresponding to the client from the behavior log; and searching administrative region information corresponding to the network address information from a storage database, wherein at least the network address information, the administrative region information and the incidence relation between the network address information and the administrative region information are stored in the storage database, and the administrative region information represents the geographical position information of the client.
Further, the method for acquiring information further comprises: acquiring a preset data set in a preset database before searching administrative region information corresponding to the network address information from a storage database; analyzing the preset data set to obtain network address information corresponding to the client and description information corresponding to the network address information; acquiring preset administrative region information corresponding to different network address information and description information corresponding to the preset administrative region information from a third-party system; and constructing an association relation between the network address information and the preset administrative area information according to the description information corresponding to the network address information and the description information corresponding to the preset administrative area information to obtain a storage database.
Further, the method for acquiring information further comprises: before searching administrative region information corresponding to the network address information from a storage database, detecting whether the administrative region information corresponding to the network address information is stored in the storage database; when detecting that the administrative region information corresponding to the network address information does not exist in the storage database, acquiring the administrative region information corresponding to the network address information from a third-party system; updating the administrative region information to a preset database to obtain an updated preset database; and synchronously updating the storage database based on the updated preset database.
Further, the method for acquiring information further comprises: acquiring description information corresponding to the network address information from the behavior log; and inquiring the administrative region information corresponding to the description information from the storage database.
Further, the method for acquiring information further comprises: after acquiring administrative region information corresponding to the network address information from the storage database, storing the administrative region information corresponding to the network address information into a behavior log to obtain an updated behavior log; and determining the user set to which the client belongs according to the updated behavior log.
Further, the method for acquiring information further comprises: after administrative region information corresponding to the network address information is acquired from a storage database, determining a set identifier of a user set to which a client belongs; and pushing a message corresponding to the set identification to the client.
Further, the method for acquiring information further comprises: when the current time is detected to be the preset time, pushing a message corresponding to the set identifier to the client; or when a preset instruction is detected, pushing a message corresponding to the set identifier to the client.
According to another aspect of the embodiments of the present invention, there is also provided an apparatus for acquiring information, including: the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a behavior log sent by a client running in the household appliance, and the behavior log at least comprises an operation behavior of a target object for operating the household appliance and network address information of the client; the second acquisition module is used for acquiring the network address information corresponding to the client from the behavior log; and the query module is used for searching administrative region information corresponding to the network address information from a storage database, wherein at least the network address information, the administrative region information and the incidence relation between the network address information and the administrative region information are stored in the storage database, and the administrative region information represents the geographical position information of the client.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-mentioned method for acquiring information when running.
According to another aspect of the embodiments of the present invention, there is also provided a computer device, characterized in that the computer device includes one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to carry out a method for running the programs, wherein the programs are arranged to perform the above-mentioned method of obtaining information when run.
In the embodiment of the invention, a behavior log sent by a client running in household electrical appliance equipment is acquired by integrating network address information and administrative region information, wherein the behavior log at least comprises an operation behavior of a target object for operating the household electrical appliance equipment and the network address information of the client; acquiring network address information corresponding to the client from the behavior log; and searching administrative region information corresponding to the network address information from a storage database, wherein at least the network address information, the administrative region information and the incidence relation between the network address information and the administrative region information are stored in the storage database, and the administrative region information represents the geographical position information of the client.
In the process, the storage database at least stores the network address information and the administrative region information as well as the incidence relation between the network address information and the administrative region information, so that after the network address information corresponding to the client is obtained, the administrative region information corresponding to the network address information can be obtained only by inquiring the storage database, the corresponding administrative region information can be obtained through the network address information of the client without frequently calling an interface, and then the user can be divided into a set according to the administrative region information in a targeted manner, and the problem of extra resource waste caused by frequently calling the interface to inquire the administrative region information corresponding to the network address information of the client in the prior art is solved.
Therefore, according to the scheme provided by the application, the purpose of acquiring the administrative region information corresponding to the network address information of the client side without frequently calling the interface is achieved, the technical effects of saving resources and reducing cost are achieved, and the problem of resource waste caused by the fact that the administrative region information is acquired in a mode of frequently calling the interface in the prior art is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a flow chart of a method of obtaining information according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method of obtaining information according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a method of obtaining information according to an embodiment of the invention;
fig. 4 is a schematic diagram of an operation message pushing according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an apparatus for obtaining information according to an embodiment of the present invention;
fig. 6 is a flow chart of a method of obtaining information according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided an embodiment of a method of obtaining information, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
It should be noted that, in this embodiment, the server may be an execution subject of the method for acquiring information in this embodiment. The server may be an entity server or a virtual server. Fig. 1 is a flowchart of a method for acquiring information according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
step S102, acquiring a behavior log sent by a client running in the household appliance.
In step S102, the behavior log at least includes an operation behavior of the target object operating the home appliance and network address information of the client. The home appliances include, but are not limited to, smart phones, notebook computers, desktop computers, smart tablets, and smart televisions. In addition, the network address information of the client may be ip (internet protocol) address information of the client; the target object may be a user using the home appliance; the operation behavior may be a behavior of clicking a web page link, searching a keyword on a web page, and the like.
It should be noted that the behavior log can record the operation behavior of the user on the client and the network address information of the client, and the record of the behavior log is a dynamic record, so that when the user generates a new operation behavior or changes the network address information on the client, the client can generate and send a new behavior log, thereby ensuring that the new operation behavior information and the changed network address information can be obtained in time, and ensuring the accuracy and timeliness of the information.
Step S104, network address information corresponding to the client is obtained from the behavior log.
In step S104, the server obtains the network address information corresponding to the client from the behavior log, where the network address information may be marked when the behavior log is generated, and the network address information may be extracted according to the marking.
In an optional embodiment, the server analyzes the behavior log by presetting a keyword, and extracts network address information by using the keyword, for example, presetting a keyword IP, and 32-bit characters behind the IP are regarded as the network address information;
in another optional embodiment, the client marks the network address information when generating the behavior log, and the server extracts the network address information from the behavior log according to the mark.
Through the step S104, the network address information and the operation behavior information in the behavior log can be separated, the network address information corresponding to the client is extracted, the network address information and the administrative area information in the subsequent steps are guaranteed to be accurately associated, and the association failure of the network address information and the administrative area information caused by the inclusion of other information in the network address information is avoided.
And step S106, searching administrative region information corresponding to the network address information from the storage database.
In step S106, at least network address information, administrative area information, and an association relationship between the network address information and the administrative area information are stored in the storage database, and the administrative area information represents geographic location information where the client is located.
Alternatively, in step S106, the storage database may be run in the server. The storage database may be a remote Dictionary service database, Redis (remote Dictionary Server). The administrative region information may include: administrative region codes and description information of province, city and district (county), and the administrative region information represents the actual geographic position of the client. In addition, there is an association relationship between the network address information and the administrative area information, for example, the IP address of the client is 10.8.6.200, the administrative area of the IP address is the sunny district in beijing, and the administrative area planning code is 100020 in the storage database.
It should be noted that, in step S106, since the storage database already has the network address information, the administrative area information and the association relationship therebetween, the acquired network address information of the client may be directly utilized to acquire the corresponding administrative area information from the storage database, and frequent interface calling is not required, thereby avoiding the problem of resource waste.
Based on the solutions defined in steps S102 to S106, it can be known that, in the embodiment of the present invention, a behavior log sent by a client operating in a home appliance is obtained by integrating network address information and administrative area information, where the behavior log at least includes an operation behavior of a target object operating the home appliance and network address information of the client; acquiring network address information corresponding to the client from the behavior log; and searching administrative region information corresponding to the network address information from a storage database, wherein at least the network address information, the administrative region information and the incidence relation between the network address information and the administrative region information are stored in the storage database, and the administrative region information represents the geographical position information of the client.
It is easy to note that, in the above process, the storage database at least stores the network address information and the administrative area information as well as the association relationship between the network address information and the administrative area information, and then after the network address information corresponding to the client is obtained, the administrative area information corresponding to the network address information can be found only by storing the database, that is, the corresponding administrative area information can be obtained through the network address information of the client without frequently calling an interface, and the geographic position where the client is located is determined, so that the problem of additional resource waste caused by frequently calling the interface when inquiring the administrative area information corresponding to the network address information of the client is avoided.
Therefore, the scheme provided by the application achieves the aim of acquiring the corresponding administrative region information through the network address information of the client without frequently calling the interface, so that the technical effects of saving resources and reducing cost are achieved, and the problem of resource waste caused by frequently calling the interface to acquire the administrative region information in the prior art is solved.
In an alternative embodiment, as shown in fig. 2, before searching the administrative region information corresponding to the network address information from the storage database, the method further includes the following steps:
step S202, acquiring a preset data set in a preset database.
Optionally, in step S202, the preset database may be a truthful IP database, which is a database of fixed IP addresses collected by a truthful network and related to the whole country, and is continuously updated with changes, and through this database, the home location of a certain IP address may be known through network software, where the truthful network may be an enterprise or a network group. Optionally, the truthful IP database is downloaded, decompressed into a file form, and imported into a database in the computer device.
Step S204, analyzing the preset data set to obtain the network address information corresponding to the client and the description information corresponding to the network address information.
Optionally, in step S204, a preset data set is obtained from the trueness IP database, and the preset data set is analyzed to obtain network address information in the trueness IP database and description information of an administrative region corresponding to the network address information, where if the description information is in a form of text description, the description information is converted into a form of an administrative division code.
Step S206, obtaining preset administrative region information corresponding to different network address information and description information corresponding to the preset administrative region information from the third-party system.
Optionally, in step S206, the third party system may be a national provincial and urban area (county) administrative planning system, and the data is downloaded from the national provincial and urban area (county) administrative planning system and imported into the database of the computer device, so as to obtain the preset administrative region information and the description information corresponding to the preset administrative region information in the national provincial and urban area (county) administrative planning system, where the description information is in the form of an administrative division code.
Step S208, establishing an association relationship between the network address information and the preset administrative area information according to the description information corresponding to the network address information and the description information corresponding to the preset administrative area information to obtain a storage database.
Optionally, in step S208, according to the description information corresponding to the network address information obtained from the preset database, and the description information corresponding to the preset administrative region information obtained from the third-party system, where the description information is in the form of administrative division codes, an association relationship between the network address information and the preset administrative region information can be further constructed, so as to integrate the network address information and the administrative region information, and synchronize the integrated result into the remote dictionary service database Redis, that is, obtain the storage database.
Based on the above steps S202 to S208, the integration of the network address information and the administrative area information is realized, and the network address information, the administrative area information, and the association relationship between the two are all stored in the storage database, so that the corresponding administrative area information can be found in the storage database by acquiring the network address information of the client, and an interface does not need to be frequently called.
In an optional embodiment, before searching the administrative region information corresponding to the network address information from the storage database, the server detects whether the administrative region information corresponding to the network address information is stored in the storage database, when it is detected that the administrative region information corresponding to the network address information does not exist in the storage database, the administrative region information corresponding to the network address information is obtained from a third-party system, the administrative region information is updated to the preset database to obtain the updated preset database, and meanwhile, the server synchronously updates the storage database based on the updated preset database.
Optionally, fig. 3 shows an optional method for obtaining information, and as shown in fig. 3, in the foregoing process, the process of updating the administrative area information by storing the database includes the following steps:
step 1, the server queries administrative division codes of provinces, cities and districts (counties) corresponding to the network address information in a preset database by using the information of a third-party system, and the administrative division codes comprise: firstly, screening out an administrative region information set of provinces, wherein the administrative region information set comprises administrative division codes and literal descriptions; judging whether the administrative region information corresponding to the network address information contains the province or not, and inquiring the next network address information if the administrative region information does not contain the province; if a province is included, the information of the city-level administrative region under the province is inquired. Judging whether administrative region information corresponding to the network information contains the city level or not, and inquiring county (district) administrative region information by analogy;
step 2, the server returns administrative division codes of provinces, cities and districts (counties) in the third-party system to a preset database;
step 3, the server updates administrative division codes of provinces, cities and districts (counties) in a preset database;
and 4, synchronously updating the data of the administrative district codes of provinces, cities and districts (counties) to a storage database by the server.
It should be noted that, through the above steps, the effect of updating the administrative area information corresponding to the network address information in time is achieved, and the accuracy of the administrative area information corresponding to the network address information is ensured.
In an alternative embodiment, the server acquires the description information corresponding to the network address information from the behavior log, and queries the administrative region information corresponding to the description information from the storage database.
Optionally, a software development kit sdk (software development kit) may be used to perform a buried point operation, and obtain a behavior log of a client through a buried point reporting service, where a buried point refers to a related technology for capturing, processing, and sending a specific user behavior or event, and may be used to collect user behavior data, and the buried point reporting service refers to a reporting service scheme of a buried point. The behavior log includes network address information of the client, that is, the network address information of the client is obtained by reporting the buried point service, so as to obtain description information corresponding to the network address information, and further, administrative region information to which the client belongs can be queried from the storage database.
In an optional embodiment, after acquiring the administrative area information corresponding to the network address information from the storage database, the server stores the administrative area information corresponding to the network address information into the behavior log to obtain an updated behavior log, and determines a user set to which the client belongs according to the updated behavior log.
Optionally, after querying administrative region information such as administrative division codes and names corresponding to the client network address information from the storage database, the server may store the administrative region information in the behavior log along with the buried points, and then the message pushing background may screen the user set for the administrative region information. In addition, the buried points with administrative region information and the screened user set may be both stored in the search server elastic search.
Through the process, the user set can be screened according to the administrative region information, namely, the user set is divided according to the geographical position, so that the message pushing is more targeted, and the operation cost is reduced.
In an alternative embodiment, after acquiring the administrative area information corresponding to the network address information from the storage database, the server determines a set identifier of a user set to which the client belongs, and pushes a message corresponding to the set identifier to the client.
Optionally, the search server may return the set identifier of the user set to the message pushing background, and when a pushing activity is created in the message pushing background, the set identifier of the user set is selected, so that a message corresponding to the set identifier may be directionally pushed to the client according to the administrative area information. The message pushing background is an application service capable of pushing messages to the client.
It should be noted that when a targeted pushing activity is created, the message pushing background can directionally push according to the administrative area information, so that the attention of the user is improved, and the multi-screen daily activity rate is improved.
When the message pushing background pushes the message to the client, the message can be pushed in any one or more of the following two ways:
the first method is as follows: when the current time is detected to be the preset time, pushing a message corresponding to the set identifier to the client;
the second method comprises the following steps: and when a preset instruction is detected, pushing a message corresponding to the set identifier to the client.
The selection of the mode may be combined with the actual scene selection, for example, during a certain festival activity, the mode one may be selected, a message is pushed to a certain user set at 0 point in the morning, or when the pushed message content is found to be wrong, the message content is modified in time, the mode two may be selected, and the pushing is performed again manually.
It should be noted that, in the foregoing, by supporting multiple push modes, more push strategies are provided for operators, and more usage scenarios can be adapted.
Optionally, fig. 6 shows a flowchart of a method for obtaining information, as shown in fig. 6, the server queries an administrative division code corresponding to network address information in a preset database through a third-party system, returns the administrative division code in the third-party system to the preset database, updates the preset database according to the returned administrative division code, and synchronously updates data of the completed administrative division code to the storage database after the update is completed.
In addition, as shown in fig. 6, the software development kit can perform a buried point operation, and report the buried point to a buried point reporting service, so that the buried point reporting service can obtain network address information of the client, and then the buried point reporting service can access the storage database, query administrative area information corresponding to the network address information of the client, and attach the administrative area information to the buried point.
Through the process, when the targeted pushing activity is established in the message pushing background, the administrative region information corresponding to the network address information can be searched through the storage database without frequently calling an interface, so that the user set is screened according to the administrative region information, the messages are pushed to the screened user set in an oriented mode, the attention of the user is effectively improved, and the operation cost is reduced.
As can be seen from the above, in this embodiment, the storage database at least stores the network address information and the administrative area information, and the administrative area information corresponding to the network address information can be found by using the storage database by obtaining the network address information corresponding to the client, that is, the administrative area information corresponding to the network address information can be obtained through the network address information of the client without frequently calling an interface, and the geographic location of the client is determined, so that the problem of additional resource waste caused by frequently calling the interface when querying the administrative area information corresponding to the network address information of the client is avoided.
The following further explains the technical solution defined in this embodiment 1 by taking the operation message push diagram shown in fig. 4 as an example, including:
step 1: the software development toolkit carries out embedded point operation and reports the embedded points to an embedded point reporting service;
step 2: a buried point reporting service acquires network address information of a client;
and step 3: the buried point reporting service inquires administrative region information such as administrative division codes and names corresponding to the client network address information from a storage database, and attaches the administrative region information to the buried point;
and 4, step 4: the buried point reporting service stores the buried point to a search server such as an elastic search;
and 5: the message pushing background screens out a user set according to the administrative region information and stores the user set to a search server;
step 6: the search server returns the set identification of the user set to the message pushing background;
and 7: setting push contents in a message push background, and selecting the user set screened in the step 5;
and 8: the message pushing background can manually push or push messages to the client regularly.
Through the steps, when the targeted pushing activity is established in the message pushing background, the user set is screened according to the administrative region information, and the messages are pushed directionally to the screened user set, so that the attention of the user is effectively improved, the operation cost is reduced, and the daily life rate of multiple screens is improved.
Example 2
According to an embodiment of the present invention, an embodiment of an apparatus for acquiring a message is further provided, where fig. 5 is a schematic diagram of an apparatus for acquiring information according to an embodiment of the present invention, and as shown in fig. 5, the apparatus includes: a first acquisition 301, a second acquisition module 303, and a query module 305.
The system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a behavior log sent by a client running in the household appliance, and the behavior log at least comprises an operation behavior of a target object for operating the household appliance and network address information of the client; the second acquisition module is used for acquiring the network address information corresponding to the client from the behavior log; and the query module is used for searching administrative region information corresponding to the network address information from a storage database, wherein at least the network address information, the administrative region information and the incidence relation between the network address information and the administrative region information are stored in the storage database, and the administrative region information represents the geographical position information of the client.
It should be noted that the first obtaining module 301, the second obtaining module 303 and the query module 305 correspond to steps S102 to S106 in the above embodiment, and the three modules are the same as the corresponding steps in the implementation example and application scenarios, but are not limited to the disclosure in embodiment 1.
Optionally, the apparatus for acquiring a message further includes: the device comprises a third acquisition module, an analysis module, a fourth acquisition module and a construction module. The third acquisition module is used for acquiring a preset data set in a preset database before searching administrative region information corresponding to the network address information from the storage database; the analysis module is used for analyzing the preset data set to obtain network address information corresponding to the client and description information corresponding to the network address information; the fourth acquisition module is used for acquiring preset administrative region information corresponding to different network address information and description information corresponding to the preset administrative region information from the third-party system; and the construction module is used for constructing the association relationship between the network address information and the preset administrative area information according to the description information corresponding to the network address information and the description information corresponding to the preset administrative area information to obtain a storage database.
Optionally, the apparatus for acquiring a message further includes: the device comprises a detection module, a fifth acquisition module, a first updating module and a second updating module. The detection module is used for detecting whether administrative region information corresponding to the network address information is stored in the storage database before the administrative region information corresponding to the network address information is searched from the storage database; the fifth acquisition module is used for acquiring administrative region information corresponding to the network address information from the third-party system when detecting that the administrative region information corresponding to the network address information does not exist in the storage database; the first updating module is used for updating the administrative region information to a preset database to obtain an updated preset database; and the second updating module is used for synchronously updating the storage database based on the updated preset database.
Optionally, the apparatus for acquiring a message further includes: the device comprises a sixth acquisition module and a first query module, wherein the sixth acquisition module is used for acquiring description information corresponding to the network address information from the behavior log; and the first query module is used for querying the administrative region information corresponding to the description information from the storage database.
Optionally, the apparatus for acquiring a message further includes: the system comprises a storage module and a determination module, wherein the storage module is used for storing administrative region information corresponding to the network address information into a behavior log after acquiring the administrative region information corresponding to the network address information from a storage database to obtain an updated behavior log; and the determining module is used for determining the user set to which the client belongs according to the updated behavior log.
Optionally, the apparatus for acquiring a message further includes: the system comprises a first determining module and a pushing module, wherein the first determining module is used for determining a set identifier of a user set to which a client belongs after acquiring administrative region information corresponding to network address information from a storage database; and the pushing module is used for pushing the message corresponding to the set identifier to the client.
Optionally, the apparatus for acquiring a message further includes: the first pushing module pushes a message corresponding to the set identifier to the client when detecting that the current time is preset time; or when a preset instruction is detected, pushing a message corresponding to the set identifier to the client.
Example 3
According to another aspect of the embodiments of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-mentioned method for acquiring information when running.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided a computer device, characterized in that the computer device includes one or more processors; a storage device for storing one or more programs which, when executed by one or more processors, cause the one or more processors to carry out a method for running the programs, wherein the programs are arranged to perform the above-mentioned method of obtaining information when run.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or 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, units or modules, and may be in an electrical 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 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 solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method of obtaining information, comprising:
acquiring a behavior log sent by a client running in household electrical appliance equipment, wherein the behavior log at least comprises an operation behavior of a target object for operating the household electrical appliance equipment and network address information of the client;
acquiring network address information corresponding to the client from the behavior log;
and searching administrative region information corresponding to the network address information from a storage database, wherein the storage database at least stores the network address information, the administrative region information and an incidence relation between the network address information and the administrative region information, and the administrative region information represents geographical position information of the client.
2. The method of claim 1, wherein prior to looking up administrative area information corresponding to the network address information from a stored database, the method further comprises:
acquiring a preset data set in a preset database;
analyzing the preset data set to obtain network address information corresponding to the client and description information corresponding to the network address information;
acquiring preset administrative region information corresponding to different network address information and description information corresponding to the preset administrative region information from a third-party system;
and constructing an association relation between the network address information and the preset administrative area information according to the description information corresponding to the network address information and the description information corresponding to the preset administrative area information to obtain the storage database.
3. The method of claim 2, wherein prior to looking up administrative area information corresponding to the network address information from a stored database, the method further comprises:
detecting whether administrative region information corresponding to the network address information is stored in the storage database;
when detecting that the administrative region information corresponding to the network address information does not exist in the storage database, acquiring the administrative region information corresponding to the network address information from the third-party system;
updating the administrative region information to the preset database to obtain an updated preset database;
and synchronously updating the storage database based on the updated preset database.
4. The method of claim 1, wherein searching for administrative region information corresponding to the network address information from a stored database comprises:
obtaining description information corresponding to the network address information from the behavior log;
and inquiring the administrative region information corresponding to the description information from the storage database.
5. The method of claim 1, wherein after retrieving administrative area information corresponding to the network address information from a stored database, the method further comprises:
storing administrative region information corresponding to the network address information into the behavior log to obtain an updated behavior log;
and determining the user set to which the client belongs according to the updated behavior log.
6. The method of claim 1, wherein after retrieving administrative area information corresponding to the network address information from a stored database, the method further comprises:
determining a set identifier of a user set to which the client belongs;
and pushing a message corresponding to the set identifier to the client.
7. The method of claim 6, wherein pushing a message corresponding to the set identifier to the client comprises:
when the current time is detected to be the preset time, pushing a message corresponding to the set identifier to the client; alternatively, the first and second electrodes may be,
and when a preset instruction is detected, pushing a message corresponding to the set identifier to the client.
8. An apparatus for retrieving a message, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring a behavior log sent by a client running in household electrical equipment, and the behavior log at least comprises an operation behavior of a target object for operating the household electrical equipment and network address information of the client;
the second obtaining module is used for obtaining the network address information corresponding to the client from the behavior log;
and the query module is used for searching administrative region information corresponding to the network address information from a storage database, wherein the storage database at least stores the network address information, the administrative region information and an incidence relation between the network address information and the administrative region information, and the administrative region information represents geographical position information of the client.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to execute the method of acquiring information as claimed in any one of claims 1 to 7 when running.
10. A computer device, characterized in that the computer device comprises one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method for running a program, wherein the program is arranged to perform the method of obtaining information as claimed in any one of claims 1 to 7 when run.
CN202110739578.9A 2021-06-30 2021-06-30 Method, device, storage medium and computer equipment for acquiring information Pending CN113434553A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110739578.9A CN113434553A (en) 2021-06-30 2021-06-30 Method, device, storage medium and computer equipment for acquiring information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110739578.9A CN113434553A (en) 2021-06-30 2021-06-30 Method, device, storage medium and computer equipment for acquiring information

Publications (1)

Publication Number Publication Date
CN113434553A true CN113434553A (en) 2021-09-24

Family

ID=77758264

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110739578.9A Pending CN113434553A (en) 2021-06-30 2021-06-30 Method, device, storage medium and computer equipment for acquiring information

Country Status (1)

Country Link
CN (1) CN113434553A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796042A (en) * 2014-01-23 2014-05-14 深圳市酷开网络科技有限公司 Resource information pushing method and device
CN107018210A (en) * 2017-04-12 2017-08-04 北京微影时代科技有限公司 A kind of IP address base establishing method and device
CN110110196A (en) * 2017-12-25 2019-08-09 北京京东尚科信息技术有限公司 A kind of information push method and device
CN111104598A (en) * 2019-12-19 2020-05-05 上海风秩科技有限公司 Method and device for directionally pushing information, electronic equipment and readable storage medium
CN112040024A (en) * 2020-08-28 2020-12-04 北京明略昭辉科技有限公司 Data processing method, device, equipment and storage medium
WO2021051880A1 (en) * 2019-09-18 2021-03-25 平安科技(深圳)有限公司 Resource data acquisition method and apparatus, computer device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103796042A (en) * 2014-01-23 2014-05-14 深圳市酷开网络科技有限公司 Resource information pushing method and device
CN107018210A (en) * 2017-04-12 2017-08-04 北京微影时代科技有限公司 A kind of IP address base establishing method and device
CN110110196A (en) * 2017-12-25 2019-08-09 北京京东尚科信息技术有限公司 A kind of information push method and device
WO2021051880A1 (en) * 2019-09-18 2021-03-25 平安科技(深圳)有限公司 Resource data acquisition method and apparatus, computer device and storage medium
CN111104598A (en) * 2019-12-19 2020-05-05 上海风秩科技有限公司 Method and device for directionally pushing information, electronic equipment and readable storage medium
CN112040024A (en) * 2020-08-28 2020-12-04 北京明略昭辉科技有限公司 Data processing method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US20230177546A1 (en) Methods and apparatus for associating media devices with a demographic composition of a geographic area
CN112016015B (en) Data processing method and device based on distributed identification analysis
CN113222665B (en) System and method for synchronizing data associated with a voice call
CN102164186B (en) Method and system for realizing cloud search service
CN111767407B (en) Encoding knowledge graph entries with searchable geo-temporal values to evaluate transitive geo-temporal proximity of entity references
CN101464894B (en) Data query method and system
CN104915398A (en) Method and device for webpage point burying
CN102571404A (en) Website access statistical method and website access statistical system
CN102647462A (en) Application acquisition and sending method and device
CN105760380A (en) Database query method, device and system
CN101702020A (en) Method and device for obtaining remotely sensed data based on grids
CN103218437A (en) Method and system for inquiring information of mobile terminal
CN110765552A (en) Attribute information display method and device of three-dimensional geological model
CN107704494B (en) User information collection method and system based on application software
CN106027692B (en) Information acquisition method, device and server
CN113434553A (en) Method, device, storage medium and computer equipment for acquiring information
CN107153690A (en) Content delivery method and device
CN104850553B (en) Replace the method, apparatus and system of background picture
CN112486796B (en) Method and device for collecting information of vehicle-mounted intelligent terminal
CN105578297A (en) Audio and radio file fragment type repeat play method and system at WEB end
CN105100251A (en) Information sharing method and device
CN113516503B (en) Advertisement delivery region calibration method and related equipment
CN113407541B (en) Data acquisition method, data acquisition equipment, storage medium and device
CN111159199B (en) Index data acquisition method and device
CN107665226A (en) The method for pushing and pusher of a kind of information

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