Disclosure of Invention
The present application mainly aims to provide a method and an apparatus for displaying website column content, so as to solve the problem that the display mode of the website column content in the related art cannot meet the user requirements.
In order to achieve the above object, according to one aspect of the present application, a method for displaying content of a website column is provided. The method comprises the following steps: acquiring user access behavior data, wherein the user access behavior data are data generated by a plurality of users accessing a target website, the user access behavior data comprise a plurality of retrieval keywords, and the retrieval keywords are keywords for the plurality of users to retrieve on the target website; acquiring N website columns meeting a first preset condition, wherein N is a preset numerical value; acquiring a target search keyword which has an association relation with each website column from a plurality of search keywords; counting the retrieval frequency of the target retrieval keywords which are in the association relation with each website column, wherein the retrieval frequency refers to the number of times that the target retrieval keywords which are in the association relation with each website column on the target website are retrieved; and displaying the webpage content corresponding to the target retrieval keyword with the retrieval frequency meeting the second preset condition on the website column to which the webpage content belongs according to a preset rule.
Further, the step of obtaining a target search keyword having an association relationship with each website column from the plurality of search keywords comprises: acquiring all webpage contents under each website column to obtain a webpage content set; acquiring keywords having an association relation with each webpage content in a webpage content set from a plurality of search keywords; and using the keywords which have the association relation with the webpage content as target retrieval keywords which have the association relation with the website columns affiliated to the webpage content.
Further, the obtaining the user access behavior data comprises: acquiring original user access behavior data acquired by an acquisition code, wherein the acquisition code is a code which is deployed on a target website in advance and used for acquiring the original user access behavior data; and filtering the original user access behavior data to obtain the user access behavior data, wherein the filtering is to delete the data which does not meet the third preset condition in the original user access behavior data.
Further, displaying the web page content corresponding to the target retrieval keyword with the retrieval frequency meeting the second preset condition on the website column to which the web page content is subordinate according to a preset rule includes: judging the quantity of the webpage contents corresponding to the target retrieval keywords of which the retrieval frequency meets a second preset condition; and if the quantity is larger than the preset value, displaying the webpage content on the website column to which the webpage content belongs according to the publishing time of the webpage content.
Further, the acquiring of the N website columns meeting the first preset condition includes: counting the click rate of each website column on the target website; acquiring website columns of which the click quantity meets a first preset condition; and taking the obtained website columns as N website columns.
In order to achieve the above object, according to another aspect of the present application, a device for presenting contents of a website column is provided. The device includes: the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring user access behavior data, the user access behavior data are generated when a plurality of users access a target website, the user access behavior data comprise a plurality of retrieval keywords, and the retrieval keywords are keywords for a plurality of users to retrieve on the target website; the second acquisition unit is used for acquiring N website columns meeting a first preset condition, wherein N is a preset numerical value; a third acquisition unit configured to acquire a target search keyword having an association relationship with each website column from the plurality of search keywords; the statistical unit is used for counting the retrieval frequency of the target retrieval keywords which have an association relation with each website column, wherein the retrieval frequency refers to the number of times that the target retrieval keywords which have an association relation with each website column on the target website are retrieved; and the display unit is used for displaying the webpage content corresponding to the target retrieval keyword with the retrieval frequency meeting the second preset condition on the website column to which the webpage content belongs according to the preset rule.
Further, the third acquisition unit includes: the first acquisition module is used for acquiring all webpage contents under each website column to obtain a webpage content set; the second acquisition module is used for acquiring keywords which have an association relation with each webpage content in the webpage content set from the plurality of search keywords; and the first determining module is used for taking the keywords which have the association relation with the webpage content as the target retrieval keywords which have the association relation with the website columns affiliated to the webpage content.
Further, the first acquisition unit includes: the third acquisition module is used for acquiring the original user access behavior data acquired by the acquisition code, wherein the acquisition code is a code which is deployed on the target website in advance and used for acquiring the original user access behavior data; and the processing module is used for filtering the original user access behavior data to obtain the user access behavior data, wherein the filtering is to delete the data which does not meet the third preset condition in the original user access behavior data.
Further, the presentation unit includes: the judging module is used for judging the number of the webpage contents corresponding to the target retrieval keywords of which the retrieval frequency meets a second preset condition; and the display module is used for displaying the webpage content on the website column to which the webpage content belongs according to the release time of the webpage content under the condition that the quantity is larger than the preset value.
Further, the second acquisition unit includes: the statistical module is used for counting the click rate of each website column on the target website; the fourth acquisition module is used for acquiring the website columns of which the click quantity meets the first preset condition; and the second determining module is used for taking the obtained website columns as N website columns.
Through the application, the following steps are adopted: acquiring user access behavior data, wherein the user access behavior data are data generated by a plurality of users accessing a target website, the user access behavior data comprise a plurality of retrieval keywords, and the retrieval keywords are keywords for the plurality of users to retrieve on the target website; acquiring N website columns meeting a first preset condition, wherein N is a preset numerical value; acquiring a target search keyword which has an association relation with each website column from a plurality of search keywords; counting the retrieval frequency of the target retrieval keywords which are in the association relation with each website column, wherein the retrieval frequency refers to the number of times that the target retrieval keywords which are in the association relation with each website column on the target website are retrieved; and displaying the webpage content corresponding to the target retrieval keyword with the retrieval frequency meeting the second preset condition on the website column to which the webpage content belongs according to the preset rule, so that the problem that the website column content cannot meet the user requirement in the display mode of the website column content in the related technology is solved. The website content in the website column is displayed according to the preset rule according to the keywords retrieved by the user on the target website, so that the display mode of the webpage content in the website column is adjusted, and the effect of meeting the user requirements to a certain extent is achieved.
Detailed Description
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all 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 application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application 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 should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be used. 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.
For convenience of description, some terms or expressions referred to in the embodiments of the present application are explained below:
and (3) searching keywords: the method comprises two parts, namely an in-site search keyword and an out-site search keyword. The in-station search keyword is a search text input by the user when using the in-station search function. The off-site search keyword is the word input by the user in the search box of the search engine, and can be any language word, number, or mixture of word and number.
Correlation analysis: also known as association mining, is to find frequent patterns, associations, correlations, or causal structures that exist between sets of items or objects in transactional data, relational data, or other information carriers. Alternatively, the association analysis is to discover the association between different items in the transaction database.
Thermodynamic diagrams: an illustration of a page area that is keen by visitors is displayed in the form of a special highlight. Based on the user home page click behavior data, home page user click hotspots are displayed in a highlight layer mode, and user requirements are analyzed.
According to the embodiment of the application, a method for displaying column contents of a website is provided.
Fig. 1 is a flowchart of a method for presenting website column content according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
step S101, user access behavior data is obtained, wherein the user access behavior data is data generated when a plurality of users access a target website, the user access behavior data comprises a plurality of retrieval keywords, and the retrieval keywords are keywords for a plurality of users to retrieve on the target website.
The method comprises the steps of obtaining data generated by a plurality of users accessing a target website, wherein the data comprises keywords for the plurality of users to search on the target website.
Optionally, in order to improve efficiency of obtaining user access behavior data on a target website, in the method for displaying website column content provided in the embodiment of the present application, obtaining the user access behavior data includes: acquiring original user access behavior data acquired by an acquisition code, wherein the acquisition code is a code which is deployed on a target website in advance and used for acquiring the original user access behavior data; and filtering the original user access behavior data to obtain the user access behavior data, wherein the filtering is to delete the data which does not meet the third preset condition in the original user access behavior data.
The method comprises the steps of deploying codes for collecting original user access behavior data on a target website in advance, collecting the original user access behavior data collected by the codes, and filtering the original user access behavior data to obtain user access behavior data, wherein the filtering is to delete data which do not meet a third preset condition in the original user access behavior data. For example, only the data of the complete path in the original user access behavior data is reserved, specifically, a plurality of users enter the website by retrieving the keyword, and the user behavior data of the page click behavior really exists, that is, the format data forming the matching of the search keyword and the column name is formed.
Step S102, N website columns meeting a first preset condition are obtained, wherein N is a preset numerical value.
The first preset condition may be a preset click amount, a preset web browsing amount, or the like. Namely, N website columns meeting a first preset condition are obtained from a plurality of website columns on the target website.
Optionally, in the method for displaying website column content provided in the embodiment of the present application, the obtaining N website columns that satisfy the first preset condition includes: counting the click rate of each website column on the target website; acquiring website columns of which the click quantity meets a first preset condition; and taking the obtained website columns as N website columns.
For example, the click rate of each website column on the target website is counted, and the click rate of website column a is 13245, the click rate of website column B is 16215, the click rate of website column C is 26121, and the like. The first preset condition is 10000, and the website column a, the website column B, the website column C and the like are obtained.
Step S103, obtaining target search keywords which have association relation with each website column from a plurality of search keywords.
Optionally, in the method for displaying website column content provided in the embodiment of the present application, acquiring, from a plurality of search keywords, a target search keyword having an association relationship with each website column includes: acquiring all webpage contents under each website column to obtain a webpage content set; acquiring keywords having an association relation with each webpage content in a webpage content set from a plurality of search keywords; and using the keywords which have the association relation with the webpage content as target retrieval keywords which have the association relation with the website columns affiliated to the webpage content.
For example, the website column a has web content a1, web content a2, web content A3, web content a4, and the like, and the keywords having an association relationship with each web content are obtained from a plurality of search keywords, for example, the keywords having an association relationship with web content a1 are: tax reform, pension, house price soaring; the keywords associated with the web content a2 are: setting vacation, tourism, scenic spot of the scenic spot; tax reform, pension and house price soaring are used as target retrieval keywords which have an association relation with a website column A; and taking the vacation arrangement, the tourism and the scenic spot of interest as target retrieval keywords which have an association relation with the website column A.
And step S104, counting the retrieval frequency of the target retrieval keywords which are in the association relation with each website column, wherein the retrieval frequency refers to the number of times that the target retrieval keywords which are in the association relation with each website column on the target website are retrieved.
Counting the times of the retrieval of the target retrieval keywords having the association relationship with each website column, for example, the target retrieval keywords having the association relationship with the website column a: tax reform, pension, house price explosion and the like, and the times of retrieval of tax reform, pension and house price explosion on a target website are counted.
And step S105, displaying the webpage content corresponding to the target retrieval keyword with the retrieval frequency meeting the second preset condition on the website column to which the webpage content belongs according to a preset rule.
Optionally, in the method for displaying website column content provided in the embodiment of the present application, displaying, according to a preset rule, the webpage content corresponding to the target search keyword whose search frequency meets a second preset condition on the website column to which the webpage content belongs includes: judging the quantity of the webpage contents corresponding to the target retrieval keywords of which the retrieval frequency meets a second preset condition; and if the quantity is larger than the preset value, displaying the webpage content on the website column to which the webpage content belongs according to the publishing time of the webpage content.
For example, it is determined that the retrieval frequency of the target retrieval keyword "tax reform" is 35 times, and the second preset condition is a preset numerical value of 10 times, that is, the target retrieval keyword "tax reform" satisfies the second preset condition. The "tax reform" may correspond to a plurality of web contents, for example, the number of the web contents corresponding to the target search keyword "tax reform" is determined to be 5, that is, 5 web contents all include the target keyword "tax reform". Therefore, if there are a plurality of web contents belonging to the same website column among the 5 web contents, under the website column, the web contents are shown on the website column to which the web contents belong according to the release time of the web contents including "tax reform". For example, under the same website column, the release time of the webpage content C containing the tax reform is 2016-01-2512: 37; the release time of the webpage content D containing the tax reform is 2016-10-0810: 32; the release time of the webpage content E containing the tax reform is 2016-09-0309: 02 and the like, and the webpage content E, the webpage content E and the webpage content C are displayed in sequence under the website column.
It should be noted that, for the number of pieces of web page content displayed in the website column, the user may set the number by himself or herself according to the user's needs, or default to M pieces. For example, the number of pieces of web page content displayed under one website column is 5.
According to the method for displaying the column content of the website, the user access behavior data are obtained, wherein the user access behavior data are generated when a plurality of users access a target website, the user access behavior data comprise a plurality of retrieval keywords, and the retrieval keywords are keywords for retrieval on the target website by the plurality of users; acquiring N website columns meeting a first preset condition, wherein N is a preset numerical value; acquiring a target search keyword which has an association relation with each website column from a plurality of search keywords; counting the retrieval frequency of the target retrieval keywords which are in the association relation with each website column, wherein the retrieval frequency refers to the number of times that the target retrieval keywords which are in the association relation with each website column on the target website are retrieved; and displaying the webpage content corresponding to the target retrieval keyword with the retrieval frequency meeting the second preset condition on the website column to which the webpage content belongs according to the preset rule, so that the problem that the website column content cannot meet the user requirement in the display mode of the website column content in the related technology is solved. The website content in the website column is displayed according to the preset rule according to the keywords retrieved by the user on the target website, so that the display mode of the webpage content in the website column is adjusted, and the effect of meeting the user requirements to a certain extent is achieved.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than presented herein.
The embodiment of the present application further provides a device for displaying website column content, and it should be noted that the device for displaying website column content according to the embodiment of the present application may be used to execute the method for displaying website column content according to the embodiment of the present application. The following describes a presentation device for website column content according to an embodiment of the present application.
Fig. 2 is a schematic diagram of a website column content presentation device according to an embodiment of the present application. As shown in fig. 2, the apparatus includes: a first acquisition unit 10, a second acquisition unit 20, a third acquisition unit 30, a statistics unit 40 and a presentation unit 50.
Specifically, the first obtaining unit 10 is configured to obtain user access behavior data, where the user access behavior data is data generated by a plurality of users accessing a target website, the user access behavior data includes a plurality of search keywords, and the search keywords are keywords for a plurality of users to search on the target website.
The second obtaining unit 20 is configured to obtain N website columns meeting a first preset condition, where N is a preset value.
A third obtaining unit 30, configured to obtain a target search keyword having an association relationship with each website column from the plurality of search keywords.
The counting unit 40 is configured to count the retrieval frequency of the target retrieval keyword having an association relationship with each website column, where the retrieval frequency is the number of times that the target retrieval keyword having an association relationship with each website column on the target website is retrieved.
And the display unit 50 is configured to display the web page content corresponding to the target search keyword with the search frequency meeting the second preset condition on the website column to which the web page content belongs according to a preset rule.
The website column content display device provided by the embodiment of the application acquires user access behavior data through the first acquisition unit 10, wherein the user access behavior data is data generated by a plurality of users accessing a target website, the user access behavior data comprises a plurality of retrieval keywords, and the retrieval keywords are keywords for a plurality of users to retrieve on the target website; the second obtaining unit 20 obtains N website columns meeting a first preset condition, where N is a preset numerical value; the third acquiring unit 30 acquires a target search keyword having an association relationship with each website column from the plurality of search keywords; the counting unit 40 counts the retrieval frequency of the target retrieval keywords having an association relationship with each website column, wherein the retrieval frequency refers to the number of times that the target retrieval keywords having an association relationship with each website column on the target website are retrieved; and the display unit 50 displays the web page content corresponding to the target search keyword with the search frequency meeting the second preset condition on the website column to which the web page content is subordinate according to the preset rule. The method and the device solve the problem that the display mode of the website column content in the related technology cannot meet the user requirements. The website content in the website column is displayed according to the preset rule according to the keywords retrieved by the user on the target website, so that the display mode of the webpage content in the website column is adjusted, and the effect of meeting the user requirements to a certain extent is achieved.
Optionally, in the apparatus for displaying website column content provided in the embodiment of the present application, the third obtaining unit 30 includes: the first acquisition module is used for acquiring all webpage contents under each website column to obtain a webpage content set; the second acquisition module is used for acquiring keywords which have an association relation with each webpage content in the webpage content set from the plurality of search keywords; and the first determining module is used for taking the keywords which have the association relation with the webpage content as the target retrieval keywords which have the association relation with the website columns affiliated to the webpage content.
Optionally, in the apparatus for displaying website column content provided in this embodiment of the present application, the first obtaining unit 10 includes: the third acquisition module is used for acquiring the original user access behavior data acquired by the acquisition code, wherein the acquisition code is a code which is deployed on the target website in advance and used for acquiring the original user access behavior data; and the processing module is used for filtering the original user access behavior data to obtain the user access behavior data, wherein the filtering is to delete the data which does not meet the third preset condition in the original user access behavior data.
Optionally, in the apparatus for displaying website column content provided in this embodiment of the present application, the displaying unit 50 includes: the judging module is used for judging the number of the webpage contents corresponding to the target retrieval keywords of which the retrieval frequency meets a second preset condition; and the display module is used for displaying the webpage content on the website column to which the webpage content belongs according to the release time of the webpage content under the condition that the quantity is larger than the preset value.
Optionally, in the apparatus for displaying website column content provided in this embodiment of the present application, the second obtaining unit 20 includes: the statistical module is used for counting the click rate of each website column on the target website; the fourth acquisition module is used for acquiring the website columns of which the click quantity meets the first preset condition; and the second determining module is used for taking the obtained website columns as N website columns.
The website column content presentation device comprises a processor and a memory, wherein the first acquisition unit 10, the second acquisition unit 20, the third acquisition unit 30, the statistical unit 40, the presentation unit 50 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions. The first preset condition, the second preset condition, the third preset condition, the preset rule and the preset value can be stored in the memory.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can be set to be one or more than one, and the web page content is displayed on the website column by adjusting the kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
The present application further provides an embodiment of a computer program product, which, when being executed on a data processing device, is adapted to carry out program code for initializing the following method steps: acquiring user access behavior data, wherein the user access behavior data are data generated by a plurality of users accessing a target website, the user access behavior data comprise a plurality of retrieval keywords, and the retrieval keywords are keywords for the plurality of users to retrieve on the target website; acquiring N website columns meeting a first preset condition, wherein N is a preset numerical value; acquiring a target search keyword which has an association relation with each website column from a plurality of search keywords; counting the retrieval frequency of the target retrieval keywords which are in the association relation with each website column, wherein the retrieval frequency refers to the number of times that the target retrieval keywords which are in the association relation with each website column on the target website are retrieved; and displaying the webpage content corresponding to the target retrieval keyword with the retrieval frequency meeting the second preset condition on the website column to which the webpage content belongs according to a preset rule.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, 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 apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, 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 implemented.
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 application 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.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and they may alternatively be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, or fabricated separately as individual integrated circuit modules, or fabricated as a single integrated circuit module from multiple modules or steps. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.