Page detection method, device, electronic device and storage medium
By collecting page content and generating load record files, and identifying abnormalities with content style templates, the problems of singularity and real-timeness of page detection in the prior art are solved, and high accuracy and 24/7 page detection are achieved.
Patent Information
- Application Number
- CN202411594929.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-04-08
AI Technical Summary
The existing page detection technology is single, making it difficult to effectively identify page abnormalities, and it is impossible to achieve real-time detection throughout the day, affecting the user experience.
By collecting page content when the page is loaded, generating page loading record files, and identifying abnormal situations in the content area of the page with the content style template, real-time detection of the page is achieved.
It improves the accuracy and comprehensiveness of page detection, can identify abnormalities that cannot be recognized by other detection methods, realizes all-weather page detection, and ensures user experience.
Smart Images

Figure CN119782076A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a page detection method, a page detection method for an e-commerce platform, a device, an electronic device, a storage medium, and a computer program product. Background Art
[0002] Electronic trading platforms provide product page displays based on browsers or apps, and provide users with rich and attractive product displays and recommendations through diversified page structures and display effects, which is convenient for increasing more attention traffic and promoting product transactions. In particular, the pages of cross-border e-commerce platforms involve complex products in multiple countries, multiple languages, and multiple versions, and involve various complex business activities, which are prone to various page abnormal loading problems, affecting the user's online transaction experience.
[0003] The current page detection technology usually detects anomalies by detecting the number or duration of page requests. For example, multiple requests to the same page in a short period of time may mean that the page cannot be loaded normally, causing the user to refresh the page multiple times. This detection mechanism is relatively simple and there is room for further improvement in detection efficiency. If anomalies are detected through manual sampling, user feedback, etc., there will be problems with missed or delayed detection, and real-time detection throughout the day cannot be achieved. Summary of the invention
[0004] The embodiments of the present application provide a page detection method, a page detection method for an e-commerce platform, an apparatus, an electronic device, a storage medium, and a computer program product to solve one or more of the above-mentioned technical problems.
[0005] In the first aspect, an embodiment of the present application provides a page detection method, including: when a page loaded by a page client is detected, collecting the page content of the page; generating a page loading record file for the page based on the collected page content, the page loading record file recording content data of a content area in the page content and loading style information of multiple content areas; determining a page type corresponding to the page based on a page content structure represented by the page loading record file, different page types corresponding to different content style templates; searching for a content style template corresponding to the page type, and identifying whether there is an abnormality in the content area of the page content based on the content style template and the page loading record file.
[0006] In a second aspect, an embodiment of the present application provides a page detection method for an e-commerce platform, which includes:
[0007] When an e-commerce page loaded by a page client is detected, the page content of the e-commerce page is collected; a page loading record file for the e-commerce page is generated based on the collected page content, the page loading record file records content data of a content area in the page content and loading style information of multiple content areas; the page type corresponding to the page is determined based on the page content structure represented by the page loading record file, and different page types correspond to different content style templates; the content style template corresponding to the page type is searched, and the existence of abnormal conditions in the content area of the page content is identified based on the content style template and the page loading record file, and the abnormal conditions include content duplication, content missing, content redundancy, reversed content order, language mismatch, font mismatch and / or special effect mismatch; the abnormal conditions of the page are provided to a page maintenance terminal of the e-commerce platform.
[0008] According to an embodiment of the present application, when a page loaded by a page client is detected, the page content of the page is collected, and a page loading record file for the page is further generated based on the collected page content, so as to record the content data of the content area in the page content and the loading style information of multiple content areas. The page type corresponding to the page can be further determined based on the page content structure represented by the page loading record file, so that after searching for the content style template corresponding to the page type, it can be identified whether there is any abnormality in the content area of the page content based on the content style template and the page loading record file. It can be seen that the embodiment of the present application simulates the user's visual experience by collecting the loaded page content in real time during the page loading process, converting the content seen by the user into a string that can be subsequently recognized using rules or models, and then generating a page loading record file based on the collected page content and content style templates of different types of pages to detect page anomalies. Compared with detecting page anomalies or abnormal monitoring of individual functions based on page requests, the present application is equivalent to simulating the judgment of the user's perspective, combining the actual display results of the page perceived by the user to realize anomaly detection, and the detection result is closer to the user's actual physical feeling, and the detection accuracy is higher. It can identify the anomalies of the display effect that cannot be identified by other detection methods, and the detection results based on the overall display of the page are more comprehensive; and through the scheme of the present application, the loading status of all pages of the trading platform can be detected at all times, and the anomalies can be perceived and fed back in real time to facilitate timely problem solving, providing all-weather and intelligent protection for user experience, with comprehensive and timely detection timeliness, which is conducive to the stability and growth of traffic on the online trading platform, ensuring smooth user transactions, and avoiding invalid page loading or even repeated refresh loading. Resource consumption caused by loading.
[0009] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present application and should not be regarded as limiting the scope of the present application.
[0011] Figure 1 A schematic diagram showing a display of a page detection result provided in an embodiment of the present application is shown;
[0012] Figure 2 A flow chart of a page detection method provided in an embodiment of the present application is shown;
[0013] Figure 3 A flow chart of a page detection method for an e-commerce platform provided in an embodiment of the present application is shown;
[0014] Figure 4 A structural block diagram of a page detection device provided in an embodiment of the present application is shown;
[0015] Figure 5 A structural block diagram of a page detection device for an e-commerce platform provided in an embodiment of the present application is shown; and
[0016] Figure 6 A block diagram of an electronic device used to implement an embodiment of the present application is shown. DETAILED DESCRIPTION
[0017] In the following, only some exemplary embodiments are briefly described. As those skilled in the art will appreciate, the described embodiments may be modified in various ways without departing from the concept or scope of the present application. Therefore, the drawings and descriptions are considered to be exemplary in nature and not restrictive.
[0018] To facilitate understanding of the technical solutions of the embodiments of the present application, the following describes the related technologies of the embodiments of the present application. The following related technologies can be combined with the technical solutions of the embodiments of the present application as optional solutions, and they all belong to the protection scope of the embodiments of the present application.
[0019] Compared with traditional electronic trading platforms deployed in a single region, cross-border electronic trading platforms not only involve complex product issues in multiple countries, multiple languages, and multiple versions, but also because of the diversity and cross-effectiveness of marketing activities, shopping guides, basic trading links, and business activities that promote traffic distribution and user growth, pages in some countries or fields are inevitably prone to abnormal page generation problems, such as page configuration duplication, module missing, module redundancy, module order inversion, language mismatch with the country, etc. The increase in page anomalies affects the user experience of cross-border trading platforms and is not conducive to platform traffic and user stability. However, page detection only from the perspective of abnormal page generation or the number and duration of page requests cannot effectively reflect the actual situation of the page as perceived by users.
[0020] The embodiment of the present application detects the page loaded by the page client and generates a page loading record file by collecting the page content, so as to further determine the page type through the page content structure represented by the page loading record file, thereby realizing page anomaly detection based on the comparison result of the content style template corresponding to the page type and the page loading record file, and realizing anomaly detection based on the page display result actually perceived by the user. The embodiment of the present application is not limited to anomaly detection of a single page, partial modules or interfaces in a page, etc., and can be applied to pages of the entire site.
[0021] The page client involved in the embodiments of the present application can be a user client. Taking a cross-border e-commerce platform as an example, the page client is a user client distributed in various countries, or it can be a client configured in a device deployed in various countries for page testing. The client type can be a browser or other page loading software commonly used for multiple websites, or it can be an APP or other page loading software dedicated to a system. The embodiments of the present application can be applied to both e-commerce platforms serving a single region and cross-border e-commerce platforms, and the present application does not limit this.
[0022] By pre-setting the tracking points in the page, it is possible to detect page loading and collect page content. It is possible to detect multiple pages of the cross-border trading platform or specific core pages. Through one or more page clients, the page that is loaded in real time and displayed to the user can be captured, which is consistent with the data actually perceived by the user. The page content collected from the page client can be used for further real-time analysis, and can also be added to the collection of analysis data for further subsequent analysis.
[0023] After detecting the loaded page, the page content can be collected. The page can be divided into multiple content areas (or modules), and each content area corresponds to content data. For example, the above embedding point records the page content in the log. The detailed information field of the log records the structural information of the current page in detail in json format, including the content data, order, color, language, important copy, etc. of the content area of the page. In the Json log, information can be recorded and uploaded in the form of key-value, such as {"position":"banner:1,floor:2,tab:3,waterfall:4","color":"banner:red,floor:red,tab:gray,waterfall:white"}, which can be uploaded with the page access PV log after the user visits and leaves the page. Multiple content areas constitute the entire page, and different content areas correspond to a page structure element that constitutes the page, for example, waterfall flow (multiple products are displayed in a list with product pictures or titles, and more products can be browsed by sliding down), floors (displaying products sold in specific scenarios, such as camping products, etc.), activity atmosphere focus pictures (highlighted areas on the page, generally displaying large marketing event information), etc., or tab blocks (navigation or category labels, by selecting different tab blocks, you can switch the products displayed in the waterfall flow, that is, the products corresponding to the waterfall flow have a corresponding printing relationship with the tab blocks), content blocks, etc. A page can include one or more page structure elements, such as a pure waterfall flow page, a page that combines floors and waterfall flow, and a page that combines activity focus atmosphere pictures and waterfall flow. The content area includes one or more content structure elements, and one or more content structure elements are combined to form the content area. For example, the floor includes multiple selection components and display components.
[0024] The data collected for the loaded page is the page content. While collecting the content data, the content loading position and loading style information corresponding to the content data in the page can be collected. The content loading position can be the coordinates of the content data in the page. The loading style information is used to describe the actual display effect of the content data in the page. Taking the browser loading page as an example, the actual display effect obtained by rendering can be collected in real time during the rendering of the HTML file based on CSS or after rendering. The content data, the content loading position of the content data and the loading style information in the page content can be combined to form a page loading record file for the page. The page loading record file reflects the visual effect of the content actually loaded on the page, that is, the user's visual experience. The solution of the embodiment of the present application is equivalent to simulating the user's visual experience, converting the content seen by the user into a string that can be subsequently recognized using rules or models, for subsequent further detection of the page.
[0025] According to the type and number of page structure elements (or content areas) included in the page, the page can be divided into different page types, and for different page types, the page structure is disassembled separately to construct the corresponding content style template. Specifically, a variety of general and / or special pages can be collected in advance, or a large number of pages can be analyzed for similar structures to identify the page structure elements included therein, and then the content data, content loading position and loading style information corresponding to the page including the combination of different page structure elements are combined into the corresponding content style template. For example, content style template 1 is: page structure: 1-focus image, 2-floor, 3-tab, 4-waterfall flow; page color: focus image-red, floor-red, tag-gray, waterfall flow-white; country: United Kingdom; page language: English; atmosphere theme: 328 promotion. In the subsequent comparison, the collected page loading record files can be compared with the content style templates one by one.
[0026] After the page loading record file corresponding to the page is generated as described above, the page type corresponding to the page can be determined based on the page loading record file, and the corresponding page structure element can be determined by identifying the content data of the content area. The identification of the content data can be the identification of the text data corresponding to the content data, or it can be the identification of one or more of the content loading position, loading style information, etc. corresponding to the content data. For example, the text data of a certain content area in the page and the display position are identified and then determined as a page structure element such as a waterfall flow. According to the page structure element corresponding to the content data and the content loading position of the page structure element (or content data) in the page, it can be combined into the representation data of the page content structure. The data represents the page content structure and is used to determine the page type corresponding to the page, so as to further compare the page loading record file with the page content structure corresponding to the determined page type. Specifically, the representation data of the page content structure can be compared with the page content structure corresponding to pages of different page types, and the page type whose page content structure matches the representation data of the page content structure is determined as the page type corresponding to the page.
[0027] The page content structure corresponding to the page type is recorded as the content style template corresponding to the page type, which is collected and obtained through the steps described above, and further by comparing the content style template and the page loading record file, it is identified whether there is an abnormality in the content area of the page content. When comparing the content style template and the page loading record file, the content structure elements of the content data recorded by the content style template can be compared with the content data corresponding to each content area in the page loading record file. If the content data corresponding to each content area in the page loading record file conforms to the content structure elements corresponding to the content data recorded by the content style template, the comparison result is considered to be consistent; the content loading position recorded by the content style template is compared with the content loading position of the content data in the page loading record file. If the content loading positions are the same, the comparison result is considered to be consistent; the loading style information recorded by the content template style is compared with the loading style information of the content data in the page loading record file. If the loading style information is the same, the comparison result is considered to be consistent. For example, in the data recorded by the template, the content area and sequence information of the page are: "position": "banner:1, floor:2, waterfall:3", and the third position in the corresponding matching template should be the tab block, which is missing, then it can be determined that the online access has a fault. In addition, if it is a page that is not in the template library, you can find abnormal points by counting different data of the same page. For example, if the information collected from 95% of the pages is consistent, the other 5% of inconsistent pages can indicate abnormalities.
[0028] Otherwise, it is determined that the loaded page is abnormal. For each content area, the content structure element, content loading position and loading style information of the content data recorded by the page structure element corresponding to the content area can be first searched in the content style template; and then the above-mentioned process of comparing the content data, content loading position and loading style information corresponding to each content area in the page loading record file with the content structure element, content loading position and loading style information recorded in the content style template is performed.
[0029] The page abnormality is specifically divided into different types. From the perspective of content integrity, it can be divided into abnormal situations such as content duplication, content missing, content redundancy and / or content order reversal. This type of abnormality can be determined by comparing the content data corresponding to the content area in the page loading record file with the content structure elements in the content style template. From the perspective of loading style information, page abnormalities can be divided into language mismatch, font mismatch and / or special effect mismatch, etc., which can be determined by comparing whether the loading style information corresponding to the content area in the page loading record file is consistent with the loading style information in the content style template. Compared with detecting page abnormalities according to the situation of page request, the embodiment of the present application can identify abnormal situations of display effects that cannot be identified by other detection methods, such as color configuration errors in a certain block. Among them, the inconsistency between the page loading record file and the content style template can also be obtained by internal detection of the page loading record file, such as comparing the content data, loading position, and loading style information in the page loading record file. If there is a mismatch, it is considered that an abnormality has occurred. For example, the country corresponding to the page display is identified in the content data as the United Kingdom, but the display language is identified in the loading style information as Japanese, then it can be considered that a page abnormality has occurred.
[0030] In a specific implementation, the above-mentioned page anomaly recognition process can be implemented through a pre-trained large model, and the page loading record file is input into a large model pre-trained according to a content style template to obtain a recognition result output by the large model to identify whether there is an anomaly in the content area of the page content.
[0031] The above-mentioned solutions of anomaly identification based on collected content style templates and anomaly identification based on large models can be used in combination, for example, used simultaneously or selected according to specific needs. For example, in the case of long-term use, the large model can be optimized and trained regularly to obtain better prediction accuracy. In the case of short-term use, the content style template can be preferred for identification.
[0032] The page content collected by detecting page loading can be used to further restore the page loading effect to further display the problem. The restored page can be displayed on the page maintenance terminal of the management page, such as the administrator terminal or the server. After obtaining the detection result of the abnormal page as mentioned above, special display effects can be added to the abnormal type, the content area that caused the page abnormality, the content data, etc., so as to facilitate the intuitive display of the problem. Specifically, the target display elements can be added to the restored page to mark the identified abnormal situation and the corresponding abnormal information. The exception information can be obtained by combining the software and hardware environment of the page client or the statistics of the above-mentioned identified exception results. For example, the current geographical area of the page client can be identified, and then the geographical area or country displayed on the page can be displayed. The version number of the page, the page loading system used by the page client (referring to the operating system based on which the page loading is based, such as Android system, IOS system, Linux system, etc.), network conditions, etc., can also be analyzed; combined with the above-mentioned basis for determining the page exception, an exception cause analysis can also be generated, such as exceptions caused by repeated page configurations, exceptions caused by reversed module order, etc.; different exception types also correspond to different exception impact ranges, such as reversed module order may cause the page to fail to load, and missing modules may cause some functions of the page to be unable to be used normally; the number of exceptions can also be obtained by counting the number of exception results, which is used to execute corresponding alarms or warnings based on the number, frequency of occurrence, time, etc.
[0033] The embodiment of the present application collects the loaded page content in real time during the page loading process, which is equivalent to simulating the user's visual experience, converting the content seen by the user into a string that can be subsequently recognized by rules or models, and then generating a page loading record file based on the collected page content and content style templates of different types of pages to detect page anomalies. Compared with detecting page anomalies or abnormal monitoring of individual functions based on page requests, the present application is equivalent to simulating the judgment of the user's perspective, combining the actual display results of the page perceived by the user to realize anomaly detection. The detection result is closer to the user's actual physical feeling, the detection accuracy is higher, and the display effect anomalies that cannot be recognized by other detection methods can be identified. In addition, the detection results based on the overall display of the page are more comprehensive; and through the solution of the present application, the loading status of all pages of the trading platform can be detected at all times, and the anomalies can be perceived and fed back in real time to facilitate timely problem solving, providing all-weather and intelligent protection for user experience, with comprehensive and timely detection timeliness, which is conducive to the stability and growth of traffic on the online trading platform, ensuring smooth user transactions, and avoiding invalid page loading or even repeated refresh loading. Resource consumption caused by loading.
[0034] In addition to collecting page content, the solution of the present application can also directly extract user experience suggestions related to front-end display from the user feedback channel, perform text recognition on the user experience suggestions, perform semantic understanding based on the results of text recognition, and determine whether the early warning or alarm conditions are met. If the conditions are met, the early warning or alarm is triggered.
[0035] The above scheme can be further used for page detection in cross-border e-commerce platforms. When abnormal situations including content duplication, content missing, content redundancy, reversed content order, language mismatch, font mismatch and / or special effect mismatch are detected, the abnormal situation of the page is provided to the page maintenance terminal of the cross-border e-commerce platform, so as to realize all-weather detection of the page.
[0036] Figure 1 A schematic diagram showing a page detection result provided in an embodiment of the present application is shown. The display difference between a normal page and an abnormal page is shown. It can be seen from the diagram that there are many inconsistencies between the page loading record file collected during the page display process on the left and the content style template on the right, that is, the normal page. In terms of structural order, the structural order of the left page lacks a tab block, and there is a situation where content is missing; in terms of color, the second yellow and red are inconsistent, and there is a mismatch in loading style information; in terms of quantity, "1,1,2,1,1" is compared with "1,1,3,1,3,1", the former lacks a value, and the specific number of quantities is also inconsistent, and there is a situation where content is missing.
[0037] The execution subject of the embodiment of the present application may be an application, service, instance, software-based functional module, virtual machine (VM), container or cloud server, etc., or a hardware device (such as a server or terminal device) or hardware chip (such as CPU, GPU, FPGA, NPU, AI acceleration card or DPU) with data processing function. The device for implementing service provision can be deployed on the computing device of the application party providing the corresponding service or on a cloud computing platform that provides computing power, storage and network resources. The mode in which the cloud computing platform provides services to the outside world may be IaaS (Infrastructure as a Service), PaaS (Platform as a Service), SaaS (Software as a Service) or DaaS (Data as a Service). Taking the platform providing SaaS software as a service (Software as a Service) as an example, the cloud computing platform can use its own computing resources to provide training of the service provision model or functional execution of the service provision module, and the specific application architecture can be built according to service requirements. For example, the platform can provide construction services based on the above-mentioned large model to application parties or individuals using platform resources, and further provide functions for requesting to call the above-mentioned model and realizing online or offline service provision based on the terminal device or server where the page client is located.
[0038] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0039] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The several specific embodiments listed can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described in detail below with reference to the accompanying drawings.
[0040] The present application embodiment provides a service providing method, such as Figure 2 The flowchart of a page detection method 200 according to an embodiment of the present application is shown. The method 200 may include:
[0041] In step 201, when a page loaded by a page client is detected, the page content of the page is collected.
[0042] In step 202, a page loading record file for the page is generated according to the collected page content, and the page loading record file records the content data of the content area in the page content and the loading style information of multiple content areas.
[0043] In step 203, the page type corresponding to the page is determined according to the page content structure represented by the page loading record file, and different page types correspond to different content style templates.
[0044] In step 204, a content style template corresponding to the page type is searched, and whether there is an abnormality in the content area of the page content is identified based on the content style template and the page loading record file.
[0045] In a possible implementation, generating a page loading record file for the page according to the collected page content includes:
[0046] After detecting that the page client has loaded the page, while collecting the content data loaded during the page loading process, collecting the content loading position and loading style information corresponding to the content data in the page;
[0047] A page loading record file for the page is generated according to the collected content data and the content loading position and loading style information corresponding to the content data in the page.
[0048] In a possible implementation, determining the page type corresponding to the page according to the page content structure represented by the page loading record file includes: identifying a page structure element corresponding to the content data, and combining the page structure element and the content loading position corresponding to the page structure element in the page into representation data of the page content structure;
[0049] The representation data of the page content structure is compared with the page content structures corresponding to pages of different page types, and the page type whose page content structure matches the representation data of the page content structure is determined as the page type corresponding to the page.
[0050] In one possible implementation, identifying whether there is an abnormality in the content area of the page content based on the content style template and the page loading record file includes: comparing the content structure elements, content loading position and loading style information of the content data recorded in the content style template with the content data, content loading position and loading style information corresponding to each content area in the page loading record file, and determining whether there is an abnormality in the content area of the page content based on whether the comparison result meets the set conditions.
[0051] In a possible implementation, the comparing the content structure elements, content loading position and loading style information of the content data recorded according to the content style template with the content data, content loading position and loading style information corresponding to each content area in the page loading record file includes: for each content area, searching the content structure elements, content loading position and loading style information of the content data recorded according to the page structure elements corresponding to the content area in the content style template; comparing the content data, content loading position and loading style information corresponding to each content area in the page loading record file with the content structure elements, content loading position and loading style information recorded in the content style template.
[0052] In a possible implementation, determining that an abnormality exists in the content area of the page content based on that the comparison result satisfies the set conditions includes: determining that an abnormality exists in the content area such as repeated content, missing content, redundant content and / or reversed content order based on that content data corresponding to the content area in the page loading record file is inconsistent with content structure elements in the content style template; determining that an abnormality exists in the content area such as language mismatch, font mismatch and / or special effect mismatch based on that loading style information corresponding to the content area in the page loading record file is inconsistent with the loading style information in the content style template.
[0053] In one possible implementation, identifying whether there is an abnormality in the content area of the page content based on the content style template and the page loading record file includes: inputting the page loading record file into a large model pre-trained according to the content style template to obtain an identification result output by the large model for identifying whether there is an abnormality in the content area of the page content.
[0054] A possible implementation method also includes: restoring the loading effect of the page in the page maintenance terminal according to the page loading record file, and adding a target display element in the restored page to mark the identified abnormal situation and corresponding abnormal information, and the abnormal information includes at least one of the geographical area corresponding to the display of the page, the page version number, the page loading system, the network status, the abnormal cause analysis, the number of abnormalities, and the scope of abnormal impact.
[0055] A possible implementation manner further includes: collecting pages of multiple page types, and parsing the collected pages to generate content style templates corresponding to different page types.
[0056] According to an embodiment of the present application, when a page loaded by a page client is detected, the page content of the page is collected, and a page loading record file for the page is further generated based on the collected page content, so as to record the content data of the content area in the page content and the loading style information of multiple content areas. The page type corresponding to the page can be further determined based on the page content structure represented by the page loading record file, so that after searching for the content style template corresponding to the page type, it can be identified whether there is any abnormality in the content area of the page content based on the content style template and the page loading record file. It can be seen that the embodiment of the present application simulates the user's visual experience by collecting the loaded page content in real time during the page loading process, converting the content seen by the user into a string that can be subsequently recognized using rules or models, and then generating a page loading record file based on the collected page content and content style templates of different types of pages to detect page anomalies. Compared with detecting page anomalies or abnormal monitoring of individual functions based on page requests, the present application is equivalent to simulating the judgment of the user's perspective, combining the actual display results of the page perceived by the user to realize anomaly detection, and the detection result is closer to the user's actual physical feeling, and the detection accuracy is higher. It can identify the anomalies of the display effect that cannot be identified by other detection methods, and the detection results based on the overall display of the page are more comprehensive; and through the scheme of the present application, the loading status of all pages of the trading platform can be detected at all times, and the anomalies can be perceived and fed back in real time to facilitate timely problem solving, providing all-weather and intelligent protection for user experience, with comprehensive and timely detection timeliness, which is conducive to the stability and growth of traffic on the online trading platform, ensuring smooth user transactions, and avoiding invalid page loading or even repeated refresh loading. Resource consumption caused by loading.
[0057] The present application also provides a method for providing a service. Figure 3 FIG. 1 is a flow chart of a page detection method 300 for an e-commerce platform according to an embodiment of the present application. The method 300 may include:
[0058] In step S301, when an e-commerce page loaded by a page client is detected, the page content of the e-commerce page is collected.
[0059] In step S302, a page loading record file for the e-commerce page is generated according to the collected page content, and the page loading record file records the content data of the content area in the page content and the loading style information of multiple content areas.
[0060] In step S303, the page type corresponding to the page is determined according to the page content structure represented by the page loading record file, and different page types correspond to different content style templates.
[0061] In step S304, the content style template corresponding to the page type is searched, and the abnormality in the content area of the page content is identified based on the content style template and the page loading record file. The abnormality includes repeated content, missing content, redundant content, reversed content order, language mismatch, font mismatch and / or special effect mismatch.
[0062] In step S305, the abnormal situation of the page is provided to the page maintenance terminal of the e-commerce platform.
[0063] Corresponding to the above examples and method embodiments provided in the embodiments of the present application, the embodiments of the present application also provide a page detection device. Figure 4 The structure of the page detection device 400 of one embodiment of the present application is shown in FIG. 4 . The device 400 may include: a content collection module 401, which is used to collect the page content of the page when detecting that the page is loaded by the page client; a record generation module 402, which is used to generate a page loading record file for the page according to the collected page content, and the page loading record file records the content data of the content area in the page content and the loading style information of multiple content areas; a page type determination module 403, which is used to determine the page type corresponding to the page according to the page content structure represented by the page loading record file, and different page types correspond to different content style templates; an abnormality identification module 404, which is used to find the content style template corresponding to the page type, and identify whether there is an abnormality in the content area of the page content according to the content style template and the page loading record file.
[0064] In one possible implementation, the record generation module is specifically used to collect content data loaded during the page loading process after detecting that the page client has loaded the page, and at the same time collect the content loading position and loading style information corresponding to the content data in the page; based on the collected content data and the content loading position and loading style information corresponding to the content data in the page, generate a page loading record file for the page.
[0065] In one possible implementation, the page type determination module is specifically used to identify the page structure elements corresponding to the content data, and combine the page structure elements and the content loading positions corresponding to the page structure elements in the page into representation data of the page content structure; compare the representation data of the page content structure with the page content structure corresponding to pages of different page types, and determine the page type whose page content structure matches the representation data of the page content structure as the page type corresponding to the page.
[0066] In one possible implementation, the exception identification module includes: a comparison sub-module, used to compare the content structure elements, content loading position and loading style information of the content data recorded in the content style template with the content data, content loading position and loading style information corresponding to each content area in the page loading record file; and a result determination sub-module, used to determine whether there is an abnormality in the content area of the page content based on whether the comparison result meets the set conditions.
[0067] In one possible implementation, the comparison submodule is specifically used to search, for each content area, in the content style template for content structure elements, content loading position, and loading style information of the content data recorded in the page structure elements corresponding to the content area; and compare the content data, content loading position, and loading style information corresponding to each content area in the page loading record file with the content structure elements, content loading position, and loading style information recorded in the content style template.
[0068] In a possible implementation, the result determination submodule is specifically used to determine that the content area has abnormal conditions such as repeated content, missing content, redundant content and / or reversed content order based on the inconsistency between the content data corresponding to the content area in the page loading record file and the content structure elements in the content style template; and to determine that the content area has abnormal conditions such as language mismatch, font mismatch and / or special effect mismatch based on the inconsistency between the loading style information corresponding to the content area in the page loading record file and the loading style information in the content style template.
[0069] In one possible implementation, the anomaly identification module is specifically used to input the page loading record file into a large model pre-trained according to the content style template to obtain an identification result output by the large model to identify whether there is an anomaly in the content area of the page content.
[0070] In one possible implementation, the device also includes a page restoration module, which is used to restore the loading effect of the page in the page maintenance terminal according to the page loading record file; an exception information loading module, which is used to add a target display element in the restored page to mark the identified abnormal situation and the corresponding exception information, and the exception information includes at least one of the geographical area corresponding to the display of the page, the page version number, the page loading system, the network status, the cause of the exception analysis, the number of exceptions, and the scope of the exception impact.
[0071] In a possible implementation, the device further includes a page collection module, which is used to collect pages of multiple page types and parse the collected pages to generate content style templates corresponding to different page types.
[0072] According to an embodiment of the present application, when a page loaded by a page client is detected, the page content of the page is collected, and a page loading record file for the page is further generated based on the collected page content, so as to record the content data of the content area in the page content and the loading style information of multiple content areas. The page type corresponding to the page can be further determined based on the page content structure represented by the page loading record file, so that after searching for the content style template corresponding to the page type, it can be identified whether there is any abnormality in the content area of the page content based on the content style template and the page loading record file. It can be seen that the embodiment of the present application simulates the user's visual experience by collecting the loaded page content in real time during the page loading process, converting the content seen by the user into a string that can be subsequently recognized using rules or models, and then generating a page loading record file based on the collected page content and content style templates of different types of pages to detect page anomalies. Compared with detecting page anomalies or abnormal monitoring of individual functions based on page requests, the present application is equivalent to simulating the judgment of the user's perspective, combining the actual display results of the page perceived by the user to realize anomaly detection, and the detection result is closer to the user's actual physical feeling, and the detection accuracy is higher. It can identify the anomalies of the display effect that cannot be identified by other detection methods, and the detection results based on the overall display of the page are more comprehensive; and through the scheme of the present application, the loading status of all pages of the trading platform can be detected at all times, and the anomalies can be perceived and fed back in real time to facilitate timely problem solving, providing all-weather and intelligent protection for user experience, with comprehensive and timely detection timeliness, which is conducive to the stability and growth of traffic on the online trading platform, ensuring smooth user transactions, and avoiding invalid page loading or even repeated refresh loading. Resource consumption caused by loading.
[0073] Corresponding to the above examples and method embodiments provided in the embodiments of the present application, the embodiments of the present application also provide a page detection device for an e-commerce platform. Figure 5The structure block diagram of a page detection device 500 for an e-commerce platform according to an embodiment of the present application is shown. The device 500 may include: a content collection module 501, which is used to collect the page content of the e-commerce page when detecting the e-commerce page loaded by the page client; a record generation module 502, which is used to generate a page loading record file for the e-commerce page according to the collected page content, wherein the page loading record file records the content data of the content area in the page content and the loading style information of multiple content areas; a page type determination module 503, which is used to determine the page type corresponding to the page according to the page content structure represented by the page loading record file, and different page types correspond to different content style templates; an abnormality identification module 504, which is used to find the content style template corresponding to the page type, and identify the existence of abnormal conditions in the content area of the page content according to the content style template and the page loading record file, wherein the abnormal conditions include content duplication, content missing, content redundancy, reversed content order, language mismatch, font mismatch and / or special effect mismatch; an abnormality providing module 505, which is used to provide the abnormal conditions of the page to the page maintenance terminal of the e-commerce platform.
[0074] In the scenario of application to a cross-border e-commerce platform, the above-mentioned e-commerce page is the e-commerce page of the cross-border e-commerce platform.
[0075] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.
[0076] Figure 6 FIG. 1 is a block diagram of an electronic device used to implement an embodiment of the present application. Figure 6 As shown, the electronic device includes: a memory 601 and a processor 602. The memory 601 stores a computer program that can be run on the processor 602. When the processor 602 executes the computer program, the method in the above embodiment is implemented. The number of the memory 601 and the processor 602 can be one or more.
[0077] The electronic device also includes:
[0078] The communication interface 603 is used to communicate with external devices and perform data exchange transmission.
[0079] If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the memory 601, the processor 602 and the communication interface 603 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0080] Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.
[0081] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.
[0082] An embodiment of the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.
[0083] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided by the embodiment of the present application.
[0084] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the present application.
[0085] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0086] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of exemplary but not limiting description, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0087] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0088] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and the features of different embodiments or examples, unless they are contradictory.
[0089] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0090] Any process or method described in the flow chart or otherwise described herein can be understood as a module, fragment or portion of a code representing one or more executable instructions for implementing the steps of a specific logical function or process. And the scope of the preferred embodiment of the present application includes other implementations, in which the functions may not be performed in the order shown or discussed, including in a substantially simultaneous manner or in a reverse order according to the functions involved.
[0091] The logic and / or steps described in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be specifically implemented in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or used in combination with these instruction execution systems, devices or apparatuses.
[0092] It should be understood that the various parts of the present application can be implemented with hardware, software, firmware or a combination thereof. In the above embodiments, multiple steps or methods can be implemented with software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium, and when the program is executed, it includes one of the steps of the method embodiment or a combination thereof.
[0093] In addition, each functional unit in each embodiment of the present application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the above-mentioned integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium can be a read-only memory, a disk or an optical disk, etc.
[0094] The above is only an exemplary embodiment of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various changes or substitutions within the technical scope recorded in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A page detection method, wherein: include: When detecting a page loaded by a page client, collecting the page content of the page; Generate a page loading record file for the page according to the collected page content, wherein the page loading record file records content data of a content area in the page content and loading style information of multiple content areas; Determine the page type corresponding to the page according to the page content structure represented by the page loading record file, where different page types correspond to different content style templates; The content style template corresponding to the page type is searched, and whether there is an abnormality in the content area of the page content is identified according to the content style template and the page loading record file.
2. The method according to claim 1, wherein: The step of generating a page loading record file for the page according to the collected page content includes: After detecting that the page client has loaded the page, while collecting the content data loaded during the page loading process, collecting the content loading position and loading style information corresponding to the content data in the page; A page loading record file for the page is generated according to the collected content data and the content loading position and loading style information corresponding to the content data in the page.
3. The method according to claim 1, wherein: Determining the page type corresponding to the page according to the page content structure represented by the page loading record file includes: Identify the page structure element corresponding to the content data, and combine the page structure element and the content loading position corresponding to the page structure element in the page into representation data of the page content structure; The representation data of the page content structure is compared with the page content structures corresponding to pages of different page types, and the page type whose page content structure matches the representation data of the page content structure is determined as the page type corresponding to the page.
4. The method according to claim 1, wherein: The identifying, according to the content style template and the page loading record file, whether there is an abnormality in the content area of the page content comprises: The content structure elements, content loading position and loading style information of the content data recorded in the content style template are compared with the content data, content loading position and loading style information corresponding to each content area in the page loading record file, and it is determined that there is an abnormality in the content area of the page content based on whether the comparison result meets the set conditions.
5. The method according to claim 4, wherein: The comparing the content structure elements, content loading position and loading style information of the content data recorded according to the content style template with the content data, content loading position and loading style information corresponding to each content area in the page loading record file includes: For each content area, searching the content style template for content structure elements, content loading positions and loading style information of content data recorded in the page structure elements corresponding to the content area; The content data, content loading position and loading style information corresponding to each content area in the page loading record file are compared with the content structure elements, content loading position and loading style information recorded in the content style template.
6. The method according to claim 4, wherein: The determining that an abnormality exists in the content area of the page content according to the comparison result meeting the set condition includes: According to the inconsistency between the content data corresponding to the content area in the page loading record file and the content structure elements in the content style template, determining that the content area has abnormal conditions such as content duplication, content missing, content redundancy and / or content order inversion; According to the inconsistency between the loading style information corresponding to the content area in the page loading record file and the loading style information in the content style template, it is determined that the content area has an abnormal situation of language mismatch, font mismatch and / or special effect mismatch.
7. The method according to claim 1, wherein: The identifying, according to the content style template and the page loading record file, whether there is an abnormality in the content area of the page content comprises: The page loading record file is input into a large model pre-trained according to the content style template to obtain a recognition result output by the large model for identifying whether there is an abnormality in the content area of the page content.
8. The method according to claim 1, wherein: Also includes: The loading effect of the page is restored in the page maintenance terminal according to the page loading record file, and a target display element is added to the restored page to mark the identified abnormal situation and corresponding abnormal information, wherein the abnormal information includes at least one of the geographical area corresponding to the display of the page, the page version number, the page loading system, the network status, the abnormal cause analysis, the number of abnormalities, and the scope of abnormal impact.
9. The method according to claim 1, wherein: Also includes: Collect pages of various page types, and parse the collected pages to generate content style templates corresponding to different page types.
10. A page detection method for an e-commerce platform, wherein: include: When detecting an e-commerce page loaded by a page client, collecting the page content of the e-commerce page; A page loading record file for the e-commerce page will be generated according to the collected page content, and the page loading record file records the content data of the content area in the page content and the loading style information of multiple content areas; Determine the page type corresponding to the page according to the page content structure represented by the page loading record file, where different page types correspond to different content style templates; Searching for a content style template corresponding to the page type, and identifying, based on the content style template and the page loading record file, whether an abnormality exists in the content area of the page content, wherein the abnormality includes repeated content, missing content, redundant content, reversed content order, language mismatch, font mismatch, and / or special effect mismatch; Provide the abnormal situation of the page to the page maintenance terminal of the e-commerce platform.
11. An electronic device comprising a memory, a processor and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 10 when executing the computer program.
12. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
13. A computer program product, wherein: The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
Citation Information
Cited By
Web payment page detection method, electronic equipment and computer readable medium
CN120611389A
Page comparison detection method and computer program product
CN121301975A