Recording duration determination method and device and computer equipment
By monitoring website domain name change messages and combining data table interval query, the problem of low efficiency in determining the collection time in the existing technology is solved, more accurate and efficient collection time monitoring is achieved, and independent site optimization and search engine collection are supported.
Patent Information
- Application Number
- CN202410703074.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-08-23
AI Technical Summary
In the existing technology, recording the website collection time through manual query is inefficient and inaccurate, making it difficult to monitor the website collection status in a timely manner, affecting the optimization of independent sites and the efficiency of search engine collection.
By monitoring the domain name change message of the website, the first time is determined and the target domain name is stored in the first data table. The collection query is performed according to the first time interval. If it is not completed, it is stored in the second data table and a longer second time is used. Query again at intervals, and determine the inclusion time of the website based on the first and second time intervals.
It improves the accuracy and efficiency of the collection time, monitors the website collection status in a timely manner, facilitates subsequent optimization, and ensures that online stores in independent sites can be quickly included by search engines.
Smart Images

Figure CN118535809A
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer technology and relates to data processing technology, and in particular to a method, device and computer equipment for determining recording duration. Background Art
[0002] An independent website can be an e-commerce website operated by a company or an individual, with an independent server, website program, and website domain name. In order for the products on the independent website to be properly queried and displayed by search engines, they must be included in the search engine before the products on the independent website are officially put into operation. The length of time that different independent websites are included in search engines varies. Currently, most independent websites are recorded through manual query, which is inefficient. Summary of the invention
[0003] The embodiments of the present application provide a method, apparatus and computer device for determining the collection duration to solve the problem of low efficiency in determining the collection duration of a website.
[0004] A first aspect of an embodiment of the present application provides a method for determining the duration of inclusion, the method comprising: upon monitoring a domain name change message of a website, determining a first time, and storing the changed target domain name in a first data table; performing an inclusion query on the target domain name in the first data table according to a first time interval to obtain a first inclusion query result; upon determining, according to the first inclusion query result, that the website has not been included, storing the target domain name in a second data table; performing an inclusion query on the target domain name in the second data table according to a second time interval to obtain a second inclusion query result, the second time interval being greater than the first time interval; upon determining, according to the second inclusion query result, that the website has been included, determining a second time, and determining the duration of inclusion of the website based on the first time and the second time.
[0005] Furthermore, in the above-mentioned method for determining the inclusion duration provided in an embodiment of the present application, after monitoring the domain name change message of the website, the method also includes: parsing the domain name change message to obtain the changed target domain name; determining the domain name category corresponding to the target domain name; when the domain name category is a preset domain name category, determining that the time when the domain name change message of the website is monitored is the first time.
[0006] Furthermore, in the above-mentioned method for determining the inclusion duration provided in the embodiment of the present application, the method also includes: determining an evaluation value corresponding to the website; and determining a second time interval of the website according to the evaluation value.
[0007] Furthermore, in the above-mentioned method for determining the inclusion time provided in an embodiment of the present application, determining the evaluation value corresponding to the website includes: obtaining a target content item corresponding to the website, the target content item including at least one of a link item, a picture item, and a text item; determining a content evaluation value and a layout evaluation value corresponding to the target content item; and determining the evaluation value corresponding to the website based on the content evaluation value and the layout evaluation value.
[0008] Furthermore, in the above-mentioned inclusion duration determination method provided in an embodiment of the present application, determining the second time interval of the website according to the evaluation value includes: determining the second time interval of the website according to a correspondence between a preset evaluation value and the second time interval.
[0009] Furthermore, in the above-mentioned method for determining the inclusion duration provided in the embodiment of the present application, the method also includes: setting the state of the target domain name in the first data table, including: after storing the target domain name in the first data table, determining that the target domain name is in the first state; when performing an inclusion query on the target domain name in the first data table according to the first time interval, changing the target domain name to the second state; when determining that the query fails according to the first inclusion query result, changing the target domain name to the first state; when determining that the query is successful according to the first inclusion query result, changing the target domain name to the third state.
[0010] Furthermore, in the above-mentioned method for determining the inclusion duration provided in an embodiment of the present application, the method also includes: if the first inclusion query result indicates that the query is successful, parsing the first inclusion query result to obtain the number of inclusions; if the number of inclusions is greater than or equal to a preset number threshold, determining that the website has completed the inclusion; if the number of inclusions is less than the preset number threshold, determining that the website has not completed the inclusion.
[0011] Furthermore, in the above-mentioned method for determining the inclusion duration provided in the embodiment of the present application, the method further includes: if the first inclusion query result indicates that the query fails, determining that the website has not completed inclusion.
[0012] According to a second aspect of an embodiment of the present application, there is provided a device for determining the duration of inclusion, the device comprising: a domain name change monitoring module, for determining a first time when a domain name change message of a website is monitored, and storing the changed target domain name in a first data table; a first inclusion query module, for performing an inclusion query on the target domain name in the first data table according to a first time interval to obtain a first inclusion query result; a target domain name storage module, for storing the target domain name in a second data table when it is determined that the website has not been included according to the first inclusion query result; a second inclusion query module, for performing an inclusion query on the target domain name in the second data table according to a second time interval to obtain a second inclusion query result, the second time interval being greater than the first time interval; and a inclusion duration determination module, for determining a second time when it is determined that the website has been included according to the second inclusion query result to be included, and determining the inclusion duration of the website according to the first time and the second time.
[0013] A third aspect of an embodiment of the present application further provides a computer device, comprising a controller and a memory, wherein the controller is configured to implement any one of the above-described methods for determining the recording duration when executing a computer program stored in the memory.
[0014] The fourth aspect of the embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a controller, the above-mentioned method for determining the recording duration is implemented.
[0015] The embodiment of the present application provides a method for determining the duration of inclusion, when a domain name change message of a website is monitored, a first time is determined, and the changed target domain name is stored in a first data table; the target domain name in the first data table is queried for inclusion according to a first time interval to obtain a first inclusion query result; when it is determined that the website has not been included according to the first inclusion query result, the target domain name is stored in a second data table; the target domain name in the second data table is queried for inclusion according to a second time interval to obtain a second inclusion query result, and the second time interval is greater than the first time interval; when it is determined that the website is included according to the second inclusion query result, a second time is determined, and the inclusion duration of the website is determined according to the first time and the second time. The above method monitors the domain name change message of the website at the first time, combines the first data table with the first time interval, and the second data table with the second time interval, determines the second time of inclusion completion, and determines the inclusion duration of the website according to the first time and the second time, so as to timely monitor the inclusion of the website, and facilitate subsequent optimization according to the inclusion. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1It is a schematic diagram of a computer device provided in an embodiment of the present application.
[0017] Figure 2 This is a flowchart of a method for determining recording duration provided in an embodiment of the present application.
[0018] Figure 3 It is a flowchart of a method for determining a domain name category provided in an embodiment of the present application.
[0019] Figure 4 It is a flowchart of the method for determining the time interval provided in an embodiment of the present application.
[0020] Figure 5 It is a flowchart of a method for determining a website evaluation value provided in an embodiment of the present application.
[0021] Figure 6 It is a structural diagram of the recording duration determination device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] It should be noted that the terms "first" and "second" in the specification, claims and drawings of the present application are used to distinguish similar objects rather than to describe a specific order or sequence.
[0023] It should also be noted that the method disclosed in the embodiments of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the claims, the execution order of multiple steps can be interchangeable with each other, and some of the steps can also be deleted.
[0024] Some embodiments will be described below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments may be combined with each other.
[0025] An independent website usually refers to an independently operated website that can be established on a Software as a Service (SaaS) technology platform, has an independent domain name, content, data, rights, etc., has independent business sovereignty and business entity responsibilities, is supported by social cloud computing capabilities, and can independently and freely connect to third-party software tools, publicity and promotion media and channels. A new type of official website (website). In order for the products in the independent website to be queried and displayed normally by search engines, the products of the independent website must be included in the search engine before they are officially put into operation. For example, it is usually the seller of goods who builds and operates an online store on the independent website, so that the online store can display its products on the independent website, and provide e-commerce services such as searching for products on the online store, adding shopping carts, settlement, logistics delivery, placing orders, after-sales service, and product recall to the buyers of goods (that is, users). In order to enhance the market competitiveness of online stores, online stores can be included in search engines, so that when buyers of goods use search engines, the products in the online store can be displayed in the search results, increasing the visit opportunities of buyers of goods. However, the time that the same online store in different independent sites is included in the search engine is not the same. For example, the time that the online store S in independent site A is included in the search engine is t1, and the time that the online store S in independent site B is included in the search engine is t2, where t1 is greater than t2. In order to improve the efficiency of the inclusion of online store S in independent site A, independent site A can be optimized. In this way, determining the inclusion time is crucial to the optimization of independent sites.
[0026] In the related art, the collection time of independent sites is mostly recorded by manual query. For example, a user inputs a collection query command to a search engine. When the search engine reports that the number of collections is greater than a preset threshold, the collection is determined to be successful. The time when the current collection query command is input and the time when the website (for example, an online store) submits the collection application to the search engine are recorded. The collection time of the website is determined based on the above two times. However, the above method is inefficient, and the determination of the collection time is limited by the time when the user inputs the collection query command, and the accuracy of the collection time is low.
[0027] In view of the above problems, an embodiment of the present application provides a method for determining the inclusion duration, by monitoring the first time when the domain name change message of the website is received, combining the first data table and the first time interval, and the second data table and the second time interval, to determine the second time when the inclusion is completed, and determining the inclusion duration of the website according to the first time and the second time. This method can timely monitor the inclusion status of the website, improve the accuracy and efficiency of determining the inclusion duration, and facilitate subsequent optimization of the independent site according to the inclusion status, so that the online store in the independent site can be included in the search engine as soon as possible, so that when the buyer of the product uses the search engine, the products in the online store can be displayed in the search results, so that the online store can be better searched.
[0028] In order to better understand a method for determining recording duration provided in an embodiment of the present application, the application environment applicable to the embodiment of the present application is first described below.
[0029] See also Figure 1 , Figure 1 is a schematic diagram of a computer device provided in an embodiment of the present application. As an implementation manner, the method for determining the recording duration provided in an embodiment of the present application can be applied to a computer device, for example, Figure 1 The computer device 30 shown. The computer device 30 can be a server cluster or a single server. Through the computer device 30, multiple independent sites can be built. The number of independent sites can be set according to actual needs. Multiple online stores can be established in each independent site. The search engine can collect and process the online stores in the independent site.
[0030] In some embodiments, the computer device 30 includes a memory 31, at least one controller 32, and at least one communication bus 33, wherein the controller 32 is used to implement the method for determining the collection duration when executing the computer program stored in the memory 31, and the at least one communication bus 33 is configured to implement connection and communication between the memory 31 and at least one controller 32. Exemplarily, the controller 32 is used to monitor the domain name change message of the online store in the independent station, and after monitoring the domain name change message of the online store, implement interaction with the search engine according to the computer program stored in the memory 31 (for example, the controller 32 sends a collection query to the search engine and receives the collection query result fed back by the search engine), and determine the collection duration of the online store according to the interaction result.
[0031] Figure 1 The structure of the computer device shown does not constitute a limitation on the embodiments of the present application. The computer device 30 may also include more or less other hardware or software than shown in the figure, or a different arrangement of components.
[0032] In some embodiments of the present application, the computer device 30 can also be connected to a client device, which includes but is not limited to any electronic product that can interact with a user through a keyboard, mouse, remote control, touchpad or voice control device, such as a personal computer, a tablet computer, a smart phone, a digital camera, etc.
[0033] It should be noted that the computer device 30 is only an example, and other existing or future electronic products that are suitable for the present application should also be included in the protection scope of the present application and included here by reference.
[0034] In some embodiments, the computer device 30 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0035] The present application will describe the technical solution of the present application in detail through specific embodiments below. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0036] Figure 2 1 is a flowchart of a method for determining the recording duration provided by an embodiment of the present application, and the method for determining the recording duration is applied to a computer device. Figure 2 As shown, the method for determining the recording duration may include the following steps S11-S15. According to different requirements, the order of the steps in the flowchart may be changed, and some may be omitted.
[0037] S11, when a domain name change message of a website is monitored, a first time is determined, and a changed target domain name is stored in a first data table.
[0038] In at least one embodiment of the present application, a domain name change message refers to a message that a website (e.g., an online store) has changed from an old domain name to a new domain name. The domain name record of the website can be regularly queried by writing a script or using an automated tool, and a domain name change message is output after a change in the domain name record is detected. When the domain name of a website changes, the website is equivalent to a new website for the search engine, and the website with the domain name changed needs to be indexed. In this way, when a domain name change message of a website is monitored, the computer device can submit the website with the domain name changed to the search engine, and the search engine will index the website.
[0039] In some embodiments, if a computer device monitors a domain name change message, the time when the domain name change message of the website is monitored is used as the first time, and the changed target domain name is stored in the first data table. The first data table is used to store domain names after changes of different websites, and each domain name has a corresponding state, which is used to represent the query information of the domain name. For example, the state includes at least a first state, a second state, and a third state. The first state is used to indicate that the domain name has not been included and is not currently included in the query, the second state is used to indicate that the domain name is currently being included in the query, and the third state is used to indicate that the domain name has been included. In some embodiments, when the changed target domain name is stored in the first data table, the state of the target domain name is set to the first state.
[0040] S12, performing a query on the target domain name in the first data table according to a first time interval to obtain a first query result.
[0041] In some embodiments, the inclusion query refers to a query instruction input to a search engine for querying the inclusion of a website. For example, the inclusion query can be a site query, which is used to query the inclusion of a website (for example, the number of inclusions) by inputting a site query instruction to the search engine, and receiving the query result fed back by the search engine as the first inclusion query result. In some embodiments, when inputting a query instruction to the search engine, the method further includes: adding a preset proxy to the query instruction, wherein the preset proxy includes an http proxy. The http proxy is a special proxy service specifically used to forward http requests and responses. When using an http proxy, the query instruction will be sent to a proxy server, which will access the search engine on its behalf and return the query result of the search engine as the first inclusion query result. By adding a preset proxy to the query instruction, the embodiment of the present application can avoid the problem of restricted access in the query instruction, improve the accuracy of the inclusion query, and then improve the accuracy of the inclusion time.
[0042] In at least one embodiment of the present application, the first time interval refers to the time interval for performing an indexing query on the target domain name in the first data table. The first time interval is relatively short and is used to quickly determine whether the website is indexed by the search engine. In one embodiment, the first time interval can be set according to actual needs. For example, the first time interval can be 10 minutes, 5 minutes, 4 minutes, etc. In the process of search engine indexing a website, if the content quality, website structure, etc. of the website meet the requirements of the search engine, and the search engine is currently in an update cycle, the duration of the website being indexed by the search engine is relatively short. By setting a shorter first time interval, the embodiment of the present application can quickly determine whether the website is indexed by the search engine, promptly determine the duration of the website being indexed, and improve the accuracy of determining the duration of the indexing.
[0043] In some embodiments, the first collection query result may include query success and query failure. When the first collection query result is query success, the first collection query result also includes information such as the number of collections of the website, and determines whether the website has been completed according to the number of collections; when the first collection query result is query failure, it is determined that the website has not been completed. In some embodiments, when it is determined that the website has been completed according to the first collection query result, the time of the collection query is recorded, and the collection duration of the website is determined according to the time of the collection query and the first time. For example, the time difference between the time of the collection query and the first time is calculated as the collection duration of the website.
[0044] S13, when it is determined according to the first collection query result that the website has not been completely collected, storing the target domain name in a second data table.
[0045] In at least one embodiment of the present application, when it is determined that the website has not been included according to the first inclusion query result, further, when the first inclusion query result is a successful query, and it is determined that the website has not been included according to the number of included websites in the first inclusion query result, it indicates that the website cannot be included in a short time, and the target domain name of the website is stored in the second data table. The second data table is used to store the target domain names of different websites that have not been included in a short time (for example, the first time interval).
[0046] S14, performing a query on the target domain name in the second data table according to a second time interval to obtain a second query result, wherein the second time interval is greater than the first time interval.
[0047] In at least one embodiment of the present application, the second time interval refers to the time interval for querying the target domain name in the second data table, and the second time interval is relatively long, and the second time interval is greater than the first time interval. For example, the second time interval can be 3 hours, 4 hours, etc. By setting a longer second time interval, the embodiment of the present application can avoid frequent querying the target domain name when the website does not meet the conditions for rapid collection, thereby avoiding waste of computing resources. In some embodiments, the second time interval is related to the evaluation value of the website corresponding to the target domain name, wherein the evaluation value of the website can be used to evaluate the value of the website. The higher the evaluation value of the website, the shorter the time required for the website to be included by the search engine, and the shorter the second time interval; the lower the evaluation value of the website, the longer the time required for the website to be included by the search engine, and the longer the second time interval.
[0048] In some embodiments, the collection query refers to a query instruction input to a search engine for querying the collection status of a website. For example, the collection query may be a site query, which is used to query the collection status of a website (for example, the number of collections) by inputting a site query instruction to a search engine, and receiving the query result fed back by the search engine as the second collection query result. In some embodiments, the second collection query result may include query success and query failure. When the second collection query result is a query success, the second collection query result also includes information such as the number of collections of the website, and determines whether the website has been completed according to the number of collections; when the second collection query result is a query failure, it is determined that the website has not been completed.
[0049] In some embodiments, when it is determined that the website has not been included according to the second inclusion query result, the target domain name in the second data table is queried again within a second time interval until it is determined that the website has been included according to the second inclusion query result.
[0050] S15, when it is determined according to the second inclusion query result that the website has completed inclusion, a second time is determined, and the inclusion duration of the website is determined according to the first time and the second time.
[0051] In at least one embodiment of the present application, when determining that the website has been included according to the second inclusion query result, the time of the inclusion query is recorded as the second time, and the inclusion duration of the website is determined according to the second time and the first time, for example, the time difference between the second time and the first time is calculated as the inclusion duration of the website. Exemplarily, the time difference T between the second time and the first time is used as the inclusion duration of the website, T=T2-T1.
[0052] In the above-mentioned method for determining the inclusion duration provided in the embodiment of the present application, the second time when the inclusion is completed is determined by monitoring the first time when the domain name change message of the website is received, combining the first data table and the first time interval, and the second data table and the second time interval. The inclusion duration of the website is determined based on the first time and the second time, so that the inclusion status of the website can be monitored in time, which is convenient for subsequent related optimization based on the inclusion status.
[0053] In at least one embodiment of the present application, after monitoring the domain name change message of the website, it is necessary to detect the domain name category of the target domain name after the change. When the domain name category meets the requirements, the search engine will include the website after the domain name change; when the domain name category does not meet the requirements, the search engine does not need to include it. Figure 3 1 is a flow chart of a method for determining a domain name category provided in an embodiment of the present application, and the method for determining a domain name category is applied to a computer device. Figure 3 As shown, the following steps are included:
[0054] S21, parsing the domain name change message to obtain the changed target domain name.
[0055] In at least one embodiment of the present application, the domain name change message includes the old domain name before the change and the new domain name after the change (i.e., the target domain name). By parsing the domain name change message, the target domain name after the change can be obtained. Exemplarily, the domain name change message contains preset keywords and index information of the target domain name. By querying the index information, the target domain name after the change can be obtained. The preset keywords are keywords pre-set to indicate the domain name change, which are not limited here.
[0056] S22: Determine the domain name category corresponding to the target domain name.
[0057] In at least one embodiment of the present application, the domain name category may be pre-set, for example, the domain name category may be a primary domain name, a secondary domain name, a custom domain name, etc. Among them, the primary domain name is the core part of the website address, consisting of a unique name and a top-level domain, the secondary domain name is a subdomain created under the primary domain name, used to organize different parts or services of the website, and the custom domain name is also called domain name resolution, which is the process of mapping an easy-to-remember domain name to a specific IP address.
[0058] S23, when the domain name category is a preset domain name category, determining the time when the domain name change message of the website is monitored as the first time.
[0059] In at least one embodiment of the present application, the preset domain name category can be set according to actual needs. For example, the preset domain name category can include a primary domain name and a custom domain name. When the target domain name is the primary domain name and a custom domain name, it indicates that the website needs to be included in the search engine.
[0060] The embodiment of the present application parses the domain name change message to obtain the changed target domain name. When it is determined that the domain name category of the changed target domain name is a preset domain name category, it indicates that the website needs to be included in the search engine, and the inclusion time of the website is determined, thereby avoiding determining the inclusion time for domain name changes that do not need to be included in the search engine, and can improve the efficiency of determining the inclusion time.
[0061] In at least one embodiment of the present application, the second time interval of the website is related to the evaluation value of the website, and the evaluation value is used to evaluate the value of the website. The higher the value of the website, the larger the corresponding evaluation value, and the shorter the second time interval is; the lower the value of the website, the smaller the corresponding evaluation value, and the longer the second time interval is. Figure 4 1 is a flow chart of a method for determining a time interval provided in an embodiment of the present application, and the method for determining a time interval is applied to a computer device. Figure 4 As shown, the following steps are included:
[0062] S31, determining an evaluation value corresponding to the website.
[0063] In at least one embodiment of the present application, the evaluation value is used to evaluate the value of the website. The evaluation value can be expressed in the form of high or low levels, or in numerical form such as probability values, to indicate the probability that the website is a high-value website. In the embodiments of the present application, the specific form of the evaluation value is not specifically limited and can be set according to requirements.
[0064] S32: Determine a second time interval for the website according to the evaluation value.
[0065] In at least one embodiment of the present application, the evaluation value of the website can be processed using a time interval determination model, the input data of the time interval model is the evaluation value of the website, and the output data is the second time interval. The time interval determination model can be a neural network model, which is not limited here.
[0066] The embodiment of the present application determines the second time interval of the website according to the evaluation value corresponding to the website, so that different websites have corresponding second time intervals, avoiding the problem of low accuracy of the included time length due to the use of a unified second time interval, and improving the accuracy of determining the included time length.
[0067] In at least one embodiment of the present application, the evaluation value of a website is related to the links, pictures and texts contained in the website. When the links, pictures and texts of the website are preset high-value categories and the layout of the links, pictures and texts is reasonable, the evaluation value of the website is higher. Figure 5 1 is a flow chart of a method for determining a website evaluation value provided by an embodiment of the present application, and the website evaluation value determination method is applied to a computer device. Figure 5 As shown, the following steps are included:
[0068] S41, obtaining a target content item corresponding to the website, wherein the target content item includes at least one of a link item, a picture item, and a text item.
[0069] In at least one embodiment of the present application, the link item refers to a plurality of links included in the website, the image item refers to a plurality of images included in the website, and the text item refers to text content in the website.
[0070] S42: Determine a content evaluation value and a layout evaluation value corresponding to the target content item.
[0071] In at least one embodiment of the present application, determining the content evaluation value corresponding to the target content item includes determining the link evaluation value corresponding to the link item, determining the image evaluation value corresponding to the image item, and determining the text evaluation value corresponding to the text item. Wherein, determining the link evaluation value may include determining the link content corresponding to the link and the category corresponding to the link content (for example, determining the category keyword corresponding to the preset category, and determining the category corresponding to the link content according to the frequency of the category keyword appearing in the link content), and according to the preset correspondence between the category and the evaluation value, using the evaluation value corresponding to the link content as the link evaluation value. Determining the image evaluation value corresponding to the image item may include determining that the image contains valid image text, determining the category corresponding to the image text, and determining the evaluation value corresponding to the image text as the image evaluation value according to the preset correspondence between the category and the evaluation value, wherein optical character recognition (OCR) recognition can be performed on the image on the website by means of image optical character recognition to capture the valid text information on the image. Determining the text evaluation value corresponding to the text item may include determining the category corresponding to the text, and determining the text corresponding evaluation value as the text evaluation value according to the preset correspondence between the category and the evaluation value. Among them, categories can include travel, food, technology, education, entertainment, health, sports, real estate, government agencies, photography, news, sports, etc.
[0072] In some embodiments, if the categories corresponding to the link item, the picture item, and the text item are the same, the link evaluation value, the picture evaluation value, and the text evaluation value may be the same. When the link evaluation value, the picture evaluation value, and the text evaluation value are the same, any one of them may be selected as the content evaluation value. If the categories corresponding to the link item, the picture item, and the text item are different, the link evaluation value, the picture evaluation value, and the text evaluation value may be different. When the link evaluation value, the picture evaluation value, and the text evaluation value are different, any one of them may be selected as the content evaluation value, or the maximum value thereof may be selected as the content evaluation value, or the minimum value thereof may be selected as the content evaluation value, or the above three values may be weighted and the weighted value may be used as the content evaluation value, without limitation herein.
[0073] In some embodiments, the layout evaluation value is used to evaluate whether the layout of link items, image items and text items is reasonable. The higher the layout evaluation value, the more reasonable the layout of link items, image items and text items; the higher the layout evaluation value, the more unreasonable the layout of link items, image items and text items. In some embodiments, determining the layout evaluation value corresponding to the target content item may include: determining the web page position corresponding to the link item, image item and text item; determining the image feature values such as resolution, color and image size corresponding to the image; determining the text feature values such as font and size of the text item; determining the layout evaluation value of the target content item based on the above web page position, image feature value and text feature value. In one embodiment, a layout evaluation value determination model is pre-trained, and the input data of the layout evaluation value determination model are web page position, image feature value and text feature value, and the output data is the layout evaluation value. The layout evaluation value determination model can be a neural network model, which is not limited here.
[0074] S43: Determine the evaluation value corresponding to the website according to the content evaluation value and the layout evaluation value.
[0075] In at least one embodiment of the present application, preset weights are set for the content evaluation value and the layout evaluation value, respectively, and the evaluation value corresponding to the website is determined according to the preset weights, the content evaluation value, and the layout evaluation value. Exemplarily, the content evaluation value corresponds to a first weight, the layout evaluation value corresponds to a second weight, a first product value of the content evaluation value and the first weight, and a second product value of the layout evaluation value and the second weight are calculated, and the sum of the first product value and the second product value is calculated to obtain the evaluation value corresponding to the website.
[0076] The embodiment of the present application combines the content evaluation value and layout evaluation value of the website to determine the evaluation value corresponding to the website, which can improve the accuracy of determining the website evaluation value, and then improve the accuracy of determining the first time interval and the second time interval, and improve the accuracy of determining the inclusion duration of the website.
[0077] In at least one embodiment of the present application, the determining the second time interval of the website according to the evaluation value comprises: determining the second time interval of the website according to the correspondence between the preset evaluation value and the second time interval. In some embodiments, the correspondence between the evaluation value and the second time interval is preset, and the second time interval of the website can be obtained by querying the corresponding relationship. For example, when the evaluation value is 0.8 to 1, the corresponding second time interval can be 2 hours; when the evaluation value is 0.5 to 0.7, the corresponding second time interval can be 3 hours; when the evaluation value is 0.1 to 0.4, the corresponding second time interval can be 4 hours. By presetting the correspondence between the evaluation value and the second time interval, the embodiment of the present application can accurately obtain the second time interval of the website, thereby improving the accuracy of determining the website inclusion time.
[0078] In at least one embodiment of the present application, the first data table is used to store domain names after changes of different websites, and each domain name has a corresponding state, which is used to indicate the query information of the domain name, and the state includes a first state, a second state and a third state, wherein the first state is used to indicate that the domain name has not been included and is not currently included in the query, the second state is used to indicate that the domain name is currently being included in the query, and the third state is used to indicate that the domain name has been included. In some embodiments, the method further includes: setting the state of the target domain name in the first data table, including: after storing the target domain name in the first data table, determining that the target domain name is in the first state; when the target domain name in the first data table is included in the query according to the first time interval, changing the target domain name to the second state; when determining that the query fails according to the first included query result, changing the target domain name to the first state; when determining that the query is successful according to the first included query result, changing the target domain name to the third state. By setting the state of the data in the first data table, the embodiment of the present application can perform the included query according to the state of the data, improve the efficiency of the included query, and then improve the efficiency of determining the included time.
[0079] In at least one embodiment of the present application, the first included query result may include query success and query failure. When the first included query result is a query success, the first included query result also includes information such as the number of included websites, and determines whether the website has been completed according to the number of included; when the first included query result is a query failure, it is determined that the website has not been completed. In some embodiments, the method further includes: if the first included query result indicates that the query is successful, parsing the first included query result to obtain the number of included; if the number of included is greater than or equal to a preset number threshold, determining that the website has been completed; if the number of included is less than the preset number threshold, determining that the website has not been completed. Among them, the preset number threshold can be set according to actual needs, for example, the preset number threshold can be 0. The present application determines whether the website has been completed in combination with the number of included in the first included query result, which can improve the accuracy of determining the completion of the inclusion, and then improve the accuracy of determining the duration of the inclusion.
[0080] In some embodiments, when the target domain name in the first data table is queried for inclusion according to the first time interval, the method further includes: if the number of target domain names in the first data table is 1, indicating that the target domain name for which the inclusion time length needs to be determined is 1, then starting from the first time, the target domain name is queried for inclusion after the first time interval, and the target domain name is changed to the second state, for example, when the first time is T1 and the first time interval is 5 minutes, the target domain name is queried for inclusion after T1+5 minutes, and the target domain name is changed to the second state; if the number of target domain names in the first data table is multiple, indicating that the target domain names for which the inclusion time length needs to be determined are multiple, then multiple target domain names in the first state are obtained from the first data table, and the target domain names stored in the second data table are deleted from the multiple target domain names in the first state, and the time interval between each target domain name and the last inclusion query is determined, and when the time interval is equal to the first time interval, the target domain name is queried for inclusion, for example, the first data table stores target domain name 1, target domain name 2, and target domain name 3. Among them, target domain name 1 and target domain name 2 are not stored in the second data table, and target domain name 3 is stored in the second data table (indicating that target domain name 3 does not meet the conditions for rapid collection and cannot be collected in a short time). In this way, the status of target domain name 1 and target domain name 2 is obtained. Target domain name 1 and target domain name 2 are in the first state. The time interval between target domain name 1 and the last collection query is 1 minute, and the first time interval of target domain name 1 is 3 minutes. The time interval of target domain name 1 is less than the first time interval; the time interval between target domain name 2 and the last collection query is 3 minutes, and the first time interval of target domain name 2 is 3 minutes. The time interval of target domain name 2 is equal to the first time interval. In this way, the collection query is performed on target domain name 2, and target domain name 2 is changed to the second state. In some embodiments, when a target domain name is queried for inclusion according to a first time interval, if the first inclusion query result is a query failure, the target domain name is changed to a first state; if the first inclusion query result is a query success, the target domain name is changed to a third state, and then if it is determined that the website has not been included according to the number of inclusions in the first inclusion query result, the target domain name is stored in a second data table; if it is determined that the website has been included according to the number of inclusions in the first inclusion query result, the time of the inclusion query is recorded, and the inclusion duration of the website is determined based on the time of the inclusion query and the first time, for example, the time difference between the time of the inclusion query and the first time is calculated as the inclusion duration of the website.
[0081] See also Figure 6 , Figure 620 is a schematic diagram of the structure of the recording duration determination device provided in the embodiment of the present application. In some embodiments, the recording duration determination device 20 may include multiple functional modules composed of computer program segments. The computer program of each program segment in the recording duration determination device 20 may be stored in the memory of the computer device 30 and executed by at least one controller to execute (see Figure 2 Description) The function of determining the inclusion duration.
[0082] In this embodiment, the recording duration determination device 20 can be divided into multiple functional modules according to the functions it performs. The functional modules may include: a domain name change monitoring module 201, a first recording query module 202, a target domain name storage module 203, a second recording query module 204, and a recording duration determination module 205. The module referred to in this application refers to a series of computer program segments that can be executed by at least one controller and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0083] The domain name change monitoring module 201 can be used to determine a first time when a domain name change message of a website is monitored, and store the changed target domain name in a first data table.
[0084] The first inclusion query module 202 may be configured to perform an inclusion query on the target domain name in the first data table according to a first time interval to obtain a first inclusion query result.
[0085] The target domain name storage module 203 may be configured to store the target domain name in a second data table when it is determined according to the first collection query result that the website has not been completely collected.
[0086] The second inclusion query module 204 may be configured to perform an inclusion query on the target domain name in the second data table according to a second time interval to obtain a second inclusion query result, where the second time interval is greater than the first time interval.
[0087] The inclusion duration determination module 205 can be used to determine a second time when it is determined that the inclusion of the website is completed according to the second inclusion query result, and determine the inclusion duration of the website according to the first time and the second time.
[0088] In some embodiments, the domain name change monitoring module 201 also includes: a change message parsing submodule, used to parse the domain name change message to obtain the changed target domain name; a domain name category determination submodule, used to determine the domain name category corresponding to the target domain name; a first time determination submodule, used to determine that when the domain name category is a preset domain name category, the time when the domain name change message of the website is monitored is the first time.
[0089] In some embodiments, the first included query module 202 further includes: a website evaluation value determination submodule, used to determine the evaluation value corresponding to the website; and a time interval determination submodule, used to determine the second time interval of the website according to the evaluation value.
[0090] In some embodiments, the first included query module 202 also includes: a content item determination submodule, used to obtain multiple target content items corresponding to the website, and the target content items include at least one of a link item, a picture item, and a text item; a content value determination submodule, used to determine the content value and a preset value weight corresponding to each target content item; an evaluation value determination submodule, used to determine the evaluation value corresponding to the website based on multiple content values and multiple value weights.
[0091] In some embodiments, the first included query module 202 further includes: a second time interval determination submodule, configured to determine the second time interval of the website according to a correspondence between a preset evaluation value and the first time interval.
[0092] In some embodiments, the first inclusion query module 202 also includes: a first state determination submodule, which is used to determine that the target domain name is in the first state after storing the target domain name in the first data table; a second state determination submodule, which is used to change the target domain name to the second state when performing an inclusion query on the target domain name in the first data table according to the first time interval; the first state determination submodule is also used to change the target domain name to the first state when it is determined that the query fails according to the first inclusion query result; and a third state determination submodule is used to change the target domain name to the third state when it is determined that the query is successful according to the first inclusion query result.
[0093] In some embodiments, the second included query module 204 also includes: an included quantity determination submodule, which is used to parse the first included query result to obtain the included quantity if the first included query result indicates that the query is successful; a website included completion submodule, which is used to determine that the website has been completed included if the included quantity is greater than or equal to a preset quantity threshold; and a website not included submodule, which is used to determine that the website has not been completed included if the included quantity is less than the preset quantity threshold.
[0094] In some embodiments, the second collection query module 204 further includes: a query failure determination submodule, configured to determine that the website has not been completely collected if the first collection query result indicates a query failure.
[0095] It can be understood that the recording time determination device 20 and the recording time determination method in the above-mentioned embodiment belong to the same inventive concept, and the specific implementation method of each module of the recording time determination device 20 corresponds to the steps of the recording time determination method in the above-mentioned embodiment, which will not be repeated in this application.
[0096] The module division described above is a logical function division, and there may be other division methods in actual implementation. In addition, the functional modules in each embodiment of the present application may be integrated in the same processing unit, or each module may exist physically separately, or two or more modules may be integrated in the same unit. The above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0097] then Figure 1 The description of the computer device is that a computer program is stored in the memory 31, and when the computer program is executed by at least one controller 32, all or part of the steps in the method for determining the recording duration are implemented. The memory 31 includes a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0098] Furthermore, the computer-readable storage medium may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function, etc.; the data storage area may store data created according to the use of the computer device 30, etc.
[0099] In some embodiments, at least one controller 32 is the control core (ControlUnit) of the computer device 30, and uses various interfaces and lines to connect the various components of the entire computer device 30, and executes various functions and processes data of the computer device 30 by running or executing programs or modules stored in the memory 31, and calling data stored in the memory 31. For example, when at least one controller 32 executes the computer program stored in the memory, it implements all or part of the steps of the method for determining the recording time in the embodiment of the present application; or implements all or part of the functions of the device for determining the recording time. At least one controller 32 can be composed of an integrated circuit, for example, it can be composed of a single packaged integrated circuit, or it can be composed of multiple integrated circuits with the same or different functions, including one or more central processing units (CPUs), microcontrollers, digital processing chips, graphics processors, and combinations of various control chips.
[0100] The above-mentioned integrated unit implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a computer device, or a network device, etc.) or a controller (processor) to execute parts of the methods of various embodiments of the present application.
[0101] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation.
[0102] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0103] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0104] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "including" does not exclude other units or, and the singular does not exclude the plural. Multiple units or devices stated in the specification can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.
Claims
1. A method for determining the recording duration, characterized in that: The method comprises: When a domain name change message of a website is monitored, determining a first time, and storing the changed target domain name in a first data table; Performing a query on the target domain name in the first data table according to a first time interval to obtain a first query result; When it is determined according to the first collection query result that the website has not been completely collected, storing the target domain name in a second data table; Performing a query on the target domain name in the second data table according to a second time interval to obtain a second query result, wherein the second time interval is greater than the first time interval; When it is determined that the website has been included according to the second inclusion query result, a second time is determined, and the inclusion duration of the website is determined according to the first time and the second time.
2. The method for determining the recording duration according to claim 1, wherein: After monitoring the domain name change message of the website, the method further includes: Parsing the domain name change message to obtain the changed target domain name; Determine the domain name category corresponding to the target domain name; When the domain name category is a preset domain name category, the time when the domain name change message of the website is monitored is determined to be the first time.
3. The method for determining the recording duration according to claim 1, wherein: The method further comprises: Determining an evaluation value corresponding to the website; A second time interval for the website is determined according to the evaluation value.
4. The method for determining the recording duration as claimed in claim 3, characterized in that: Determining the evaluation value corresponding to the website includes: Acquire a plurality of target content items corresponding to the website, wherein the target content item includes at least one of a link item, a picture item, and a text item; Determining a content evaluation value and a layout evaluation value corresponding to the target content item; The evaluation value corresponding to the website is determined according to the content evaluation value and the layout evaluation value.
5. The method for determining the recording duration as claimed in claim 3, characterized in that: Determining the second time interval of the website according to the evaluation value includes: The second time interval of the website is determined according to a corresponding relationship between the preset evaluation value and the second time interval.
6. The method for determining the recording duration according to claim 1, wherein: The method further includes: setting the state of the target domain name in the first data table, including: After storing the target domain name in the first data table, determining that the target domain name is in a first state; When the target domain name in the first data table is queried for inclusion according to the first time interval, changing the target domain name to a second state; When it is determined according to the first included query result that the query fails, changing the target domain name to the first state; When it is determined that the query is successful according to the first included query result, the target domain name is changed to a third state.
7. The method for determining the recording duration according to claim 1, wherein: The method further comprises: If the first included query result indicates that the query is successful, parsing the first included query result to obtain the number of included items; If the number of included websites is greater than a preset number threshold, it is determined that the website has been included; If the number of included websites is less than or equal to the preset number threshold, it is determined that the website has not been completely included.
8. The method for determining the recording duration according to claim 1, wherein: The method further comprises: If the first inclusion query result indicates that the query fails, it is determined that the website has not been completely included.
9. A device for determining recording duration, characterized in that: The recording duration determining device comprises: A domain name change monitoring module, used to determine a first time when a domain name change message of a website is monitored, and store the changed target domain name in a first data table; A first inclusion query module, configured to perform an inclusion query on the target domain name in the first data table according to a first time interval to obtain a first inclusion query result; A target domain name storage module, configured to store the target domain name in a second data table when it is determined according to the first collection query result that the website has not been collected; A second inclusion query module, configured to perform an inclusion query on the target domain name in the second data table according to a second time interval to obtain a second inclusion query result, wherein the second time interval is greater than the first time interval; The inclusion duration determination module is used to determine a second time when it is determined that the inclusion of the website is completed according to the second inclusion query result, and to determine the inclusion duration of the website according to the first time and the second time.
10. A computer device, characterized in that: The computer device includes a controller and a memory, and the controller is used to implement the method for determining the recording duration as described in any one of claims 1 to 8 when executing the computer program stored in the memory.
Citation Information
Patent Citations
Website commenting method and device
CN103678626A
Method and device for grabbing question and answer webpages
CN104462493A
Website monitoring method and device
CN111898013A
