CN109857959A - Third party's webpage accessibility superior and inferior evaluating method, apparatus and electronic equipment - Google Patents
Third party's webpage accessibility superior and inferior evaluating method, apparatus and electronic equipment Download PDFInfo
- Publication number
- CN109857959A CN109857959A CN201910006174.1A CN201910006174A CN109857959A CN 109857959 A CN109857959 A CN 109857959A CN 201910006174 A CN201910006174 A CN 201910006174A CN 109857959 A CN109857959 A CN 109857959A
- Authority
- CN
- China
- Prior art keywords
- party
- party webpage
- webpage
- accessibility
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000003068 static effect Effects 0.000 claims description 29
- 230000006399 behavior Effects 0.000 claims description 28
- 238000011156 evaluation Methods 0.000 claims description 18
- 238000009877 rendering Methods 0.000 claims description 14
- 238000012360 testing method Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 2
- 238000003780 insertion Methods 0.000 abstract 1
- 230000037431 insertion Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 7
- 238000004364 calculation method Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 238000004590 computer program Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 5
- 230000006872 improvement Effects 0.000 description 5
- 238000013441 quality evaluation Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 2
- 230000036316 preload Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 235000014510 cooky Nutrition 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of third party's webpage accessibility superior and inferior evaluating method, apparatus and electronic equipment, device and electronic equipments.Method therein includes: imitation user access activity, and by content corresponding to the link of third party's webpage, automatic load is in third party's browser;The resource acquisition record for parsing third party's browser, obtains the resource path list of third party's webpage and stores;According to the resource path list, resource corresponding to third party's webpage is obtained;Based on the resource, third party's webpage accessibility superiority and inferiority is evaluated.The present invention can estimate the superiority and inferiority of third party's web page access performance of insertion current web page, advise to it, so that third party's webpage is adjusted and improves, improve user to the usage experience of current web page and third party's webpage.
Description
Technical Field
The invention relates to the technical field of network security, in particular to a method and a device for evaluating accessibility of a third-party webpage and electronic equipment.
Background
For third-party web pages embedded in a linked manner in the current application, it is difficult for current web application operators to control the web page quality. For example, the size of the content loaded on the third-party webpage affects the length of the webpage opening time, and a user may need a long time to open the third-party webpage sometimes; in addition, the user may sometimes need a large amount of network traffic to open the third-party webpage, which affects the user's internet experience.
Therefore, the third-party webpage has the problem that the user internet experience and the user experience are influenced because the current webpage application operator is difficult to control.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for evaluating accessibility of a third-party webpage, and an electronic device, which at least partially solve the problems in the prior art.
In a first aspect, an embodiment of the present invention provides a third-party webpage content auditing method, including:
simulating the access behavior of a user, and automatically loading the content corresponding to the link of the third-party webpage into a third-party browser;
analyzing the resource acquisition record of the third-party browser, acquiring and storing a resource path list of the third-party webpage;
acquiring resources corresponding to the third-party webpage according to the resource path list;
and evaluating the accessibility of the third-party webpage based on the resources.
According to a specific implementation manner of the embodiment of the invention, the accessibility quality is obtained by analyzing the static attribute of the resource corresponding to the third-party webpage.
According to a specific implementation manner of the embodiment of the present invention, the static attribute includes the number of reference indicators in the resource;
the reference index comprises an external reference resource and webpage content;
the external reference resources comprise Javascript files, Css files, pictures, font files, internal documents, audio and videos;
the web page content comprises a DOM file.
According to a specific implementation manner of the embodiment of the invention, the accessibility quality is obtained by analyzing the dynamic attribute of the resource corresponding to the third-party webpage.
According to a specific implementation manner of the embodiment of the present invention, the dynamic attribute is obtained as follows:
and simulating the access behavior of the user, and testing the loading and rendering time of the third-party webpage in a dynamic environment.
According to a specific implementation manner of the embodiment of the present invention, the evaluating the accessibility of the third-party webpage based on the content of the resource includes:
and scoring the static attribute and the dynamic attribute of the resource, and scoring the accessibility of the third-party webpage according to a preset rule.
According to a specific implementation manner of the embodiment of the present invention, the preset rule is:
S=A×a%+B×b%+C×c%+…+M×m%
wherein S represents the score of the accessibility of the third-party webpage
A. B, C, … and M are scores of static or dynamic attributes of the resources corresponding to the third-party webpage respectively, and a, b, c and …, M are preset weights corresponding to the attributes respectively;
and a% + b% + c% + … + m% is 1.
According to a specific implementation manner of the embodiment of the present invention, the weights of the static attribute and the dynamic attribute are different according to different user terminals.
In a second aspect, an embodiment of the present invention further provides a device for evaluating the accessibility of a third-party webpage, where the device includes:
the loading module is used for simulating the access behavior of a user and automatically loading the content corresponding to the link of the third-party webpage into the third-party browser;
the analysis module is used for analyzing the resource acquisition record of the third-party browser, acquiring and storing a resource path list of the third-party webpage;
the resource acquisition module is used for acquiring resources corresponding to the third-party webpage according to the resource path list;
and the evaluation module is used for evaluating the accessibility of the third-party webpage based on the resources.
According to a specific implementation manner of the embodiment of the invention, in the evaluation module, the accessibility quality is obtained by analyzing the static attribute of the resource corresponding to the third-party webpage.
According to a specific implementation manner of the embodiment of the present invention, the static attribute includes the number of reference indicators in the resource;
the reference index comprises an external reference resource and webpage content;
the external reference resources comprise Javascript files, Css files, pictures, font files, internal documents, audio and videos;
the web page content comprises a DOM file.
According to a specific implementation manner of the embodiment of the invention, the accessibility quality is obtained by analyzing the dynamic attribute of the resource corresponding to the third-party webpage.
According to a specific implementation manner of the embodiment of the present invention, the dynamic attribute is obtained as follows:
and simulating the clicking behavior of the user, and testing the loading and rendering time of the third-party webpage in a dynamic environment.
According to a specific implementation manner of the embodiment of the present invention, the evaluation module is further configured to:
and scoring the static attribute and the dynamic attribute of the resource, and scoring the accessibility of the third-party webpage according to a preset rule.
According to a specific implementation manner of the embodiment of the present invention, in the evaluation module, the preset rule is:
S=A×a%+B×b%+C×c%+…+M×m%
wherein S represents the score of the accessibility of the third-party webpage
A. B, C, … and M are scores of static or dynamic attributes of the resources corresponding to the third-party webpage respectively, and a, b, c and …, M are preset weights corresponding to the attributes respectively;
and a% + b% + c% + … + m% is 1.
According to a specific implementation manner of the embodiment of the present invention, the weights of the static attribute and the dynamic attribute are different according to different user terminals.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for evaluating the accessibility of the third-party webpage in any of the first aspect or any implementation manner of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, which stores computer instructions for causing a computer to execute the method for evaluating the accessibility of a third-party webpage in the first aspect or any implementation manner of the first aspect.
In a fifth aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions, when executed by a computer, cause the computer to execute the method for evaluating the accessibility of a third-party webpage in the foregoing first aspect or any implementation manner of the first aspect.
The third-party webpage accessibility quality evaluation method, the third-party webpage accessibility quality evaluation device, the electronic equipment, the non-transient computer readable storage medium and the computer program provided by the embodiment of the invention are as follows: automatically loading content corresponding to a link of a third-party webpage into a third-party browser by simulating user access behavior, analyzing a resource acquisition record of the third-party browser, and acquiring a resource path list of the third-party webpage; then, acquiring resources corresponding to the third-party webpage according to the resource path list; and evaluating the accessibility of the third-party webpage based on the corresponding resources. In conclusion, the method and the device can estimate the access performance of the third-party webpage embedded in the current webpage, provide suggestions for the third-party webpage for adjustment and improvement, and improve the user experience of the current webpage and the third-party webpage.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a method for evaluating accessibility of a third-party webpage according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating determining factors of the accessibility merits of the third-party web pages in the method for evaluating the accessibility of the third-party web pages according to the embodiment of the present invention;
FIG. 3 is a flowchart illustrating steps of a method for evaluating accessibility of a third-party webpage according to another embodiment of the present invention;
fig. 4 is a block diagram illustrating a structure of an apparatus for evaluating the accessibility of a third-party webpage according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating a third-party apparatus for evaluating accessibility of a web page according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any of the several aspects set forth herein. In addition, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a method for generating a webpage-associated video. The method for generating the webpage-associated video provided by the embodiment can be executed by a computing device, the computing device can be implemented as software, or implemented as a combination of software and hardware, and the computing device can be integrally arranged in a server, a terminal device and the like.
Fig. 1 is a flowchart illustrating steps of a method for evaluating accessibility of a third-party webpage according to an embodiment of the present invention.
The application scenario of this embodiment is as follows: in the current web page, a third-party web page link is embedded. For example, in the "XXXX" web page or App, a "habit sharing knowledge" link is embedded. The link may be in the form of text, in some other scenarios, in the form of pictures, or in the form of a dynamic video. Without affecting the implementation of the present embodiment. The link "let shared knowledge become a habit" corresponds to the homepage of the third-party webpage. Third party web pages deliver the web address of their web page, and the form of the link that needs to be displayed on a "XXXX" web page or App, to the developer of the "XXXX" web page or App, hoping to expand the popularity of the platform, and the user's browsing volume of the platform web page, by placing their web page links on a more popular "XXXX".
For the "XXXX" operating platform, the web page quality of the third-party web page embedded in the platform (mainly focusing on the web page quality on the user's access experience) cannot be well controlled, for example, the size of the loaded content of the third-party web page will affect the length of the web page opening time, and the "white screen time" experienced by the user in opening the third-party web page. In addition, the user may sometimes need a large amount of network traffic to open the third-party webpage, which affects the user's internet experience.
In order to control the quality of the third-party webpage, the embodiment of the invention intends to adopt a third-party browser to pre-load the content of the third-party webpage in the link in advance, analyze the resource request list of the third-party browser, obtain the corresponding resource through the lists, further evaluate the accessibility quality of the third-party webpage through a preset webpage quality evaluation system,
first, how a web page resource as a third-party web page is obtained is explained, referring to S101, S102, and S103 in fig. 1.
S101, simulating the access behavior of the user, and automatically loading the content corresponding to the link of the third-party webpage into the third-party browser.
Since the third party web page is likely to simply deliver its web address and web page link to the "XXXX" web page or App, there is no delivery for the resources involved in its web page. Such as html language files (the body of a web page), javascript's files (determining the behavior of a web page, e.g., various event responses such as click), style files (determining the attributes of elements, e.g., appearance, size), and pictures, frames, iframes, and the like. These resources need to be acquired by the third-party browser created in this embodiment.
The third-party browser in this embodiment is obtained by modifying, adjusting, and extending functions based on a kernel of an existing browser. For those skilled in the art, based on the existing browser, it is known to modify, adjust or expand the function according to the function that the third-party browser needs to complete in the embodiment, and the description of the present invention is omitted here.
After the third-party browser is built, the resources of the third-party webpage are loaded in the third-party browser by simulating a manner of triggering a third-party website link access behavior of the user, such as clicking a webpage link (but the invention is not limited thereto, and clicking is only one implementation form of this embodiment), where the resources include html files, javascript files, style files, and pictures, frames, iframes, and the like, as described above.
And S102, analyzing the resource acquisition record of the third-party browser, and acquiring and storing a resource path list of the third-party webpage.
In this step, after the third-party webpage is loaded in the third-party browser, a resource path list of the third-party webpage is automatically analyzed, where the resource path list of the third-party webpage includes a URL of Javascript, a URL of a style file, a URL of a picture, and a URL of an external resource of a font file, audio/video, and a document in a page.
S103, acquiring resources corresponding to the third-party webpage according to the resource path list.
And acquiring resources corresponding to the third-party webpage according to information such as the URL of Javascript, the URL of the style file, the URL of the picture, the URL of external resources of font files, audios and videos and documents in the webpage in the resource path list of the third-party webpage, and storing the resources in a current local application cache.
And S104, evaluating the accessibility of the third-party webpage based on the resources.
First, the basis of evaluation will be described.
In specific implementation, an evaluation system of the third-party webpage quality needs to be established in advance. For example, by scoring the third-party webpage according to a predetermined scoring rule, the reference index mainly includes: main page, resource quantity, frame quantity, iframe quantity, script, white screen time, Dom quantity, first rendering, picture and script quantity, style quantity, ajax and the like.
The predetermined scoring rule may be that, according to actual needs, a reference index is selected, and a weight corresponding to the index is set, and calculation is performed according to a formula.
In specific implementation, the indexes can be further classified. This is because the accessibility quality can be obtained by analyzing the static attribute and the dynamic attribute of the resource corresponding to the third-party webpage, respectively. Referring to fig. 2, for example, the static attribute may include the number of reference indexes in the resources required by the third-party webpage, where the resources may include external reference resources and webpage content resources, where the external reference resources include Javascript files, CSS files, pictures, font files, intra-page documents, audio and video, frames, iframes, and the like, and the webpage content includes DOM files and the like.
The dynamic attribute corresponding to the third-party webpage mainly refers to the loading and rendering time of the third-party webpage, namely the 'white screen time' felt by a client user, the time is measured in a dynamic environment in a mode of simulating user access behaviors (mainly clicking behaviors), and the loading and rendering time of the third-party webpage is tested in the dynamic environment
The dynamic attributes and the static attributes are distinguished, different scoring weights can be set for different attributes, and the advantages and the disadvantages of the accessible attributes of the webpage can better reflect the actual situation.
The embodiments of the present invention will be further described with reference to specific examples.
Another embodiment of the present invention is further described below with reference to fig. 3.
Referring to fig. 3, fig. 3 is a flowchart of steps of a third-party webpage accessibility goodness evaluation method according to an embodiment of the present invention, including the following steps:
s301, simulating the access behavior of the user, and automatically loading the content corresponding to the link of the third-party webpage into the third-party browser.
When the third-party webpage is embedded into the current webpage in a certain form of link, the click behavior of a user can be simulated through the third-party browser, and the content of the third-party webpage is automatically loaded into the third-party browser. As described above, the third party browser modifies, adjusts, or extends functionality for the existing browser based kernel
The content of the third-party webpage includes html (body of the webpage), javascript (determining behavior of the webpage, e.g., various event responses such as click), style files (determining attributes of elements, e.g., appearance, size), and pictures, frames, iframes, and the like.
S302, analyzing the resource acquisition record of the third-party browser, and acquiring a resource path list of the third-party webpage.
And after the behavior loaded in the third-party webpage is finished, automatically analyzing a request resource path list of the third-party webpage to form a resource path list corresponding to the embedded link.
S303, store the resource path list.
S304, acquiring resources corresponding to the third-party webpage according to the resource path list;
s305, calculating the number of each reference index in the page content of the third-party webpage, such as the number of resources, the number of DOM, the number of frames, the number of iframes, and the like.
S306, simulating the clicking behavior of the user, and testing the loading and rendering time of the third-party webpage under the dynamic environment, wherein the loading and rendering time is generally the white screen time sensed by the user.
And S307, scoring each acquired reference index according to a preset scoring rule.
As mentioned above, the following parameters are mainly considered: the method comprises the following steps of main page accessibility, all resource requests in a page, iframe accessibility in a page, iframe request quantity in a page, page script jump quantity, DOM quantity, white screen time, first effective rendering detection, picture request quantity, script request quantity, style request quantity, Ajax request quantity, HTML document size, HTML document downloading time, total downloading quantity of all requests of a page, static resource Cookie carrying condition, redirection, page resource loading time, picture data downloading size, domain name using quantity, automatically played video order of magnitude flow, automatically played audio quantity and flow, console output and the like.
In one embodiment, the predetermined scoring rule may be an average of scores obtained by the respective reference indexes. Or, more preferably, the importance of the accessibility of the web page may be different for different reference indicators, and therefore, the corresponding weight may also be set. For example, the calculation can be performed by the following formula:
S=A×a%+B×b%+C×c%+…+M×m%
wherein S represents the score of the accessibility of the third-party webpage
A. B, C, … and M are scores of static or dynamic attributes of the resources corresponding to the third-party webpage respectively, and a, b, c and …, M are preset weights corresponding to the attributes respectively;
and a% + b% + c% + … + m% is 1.
The score interval may be divided by paragraphs:
it should be noted that:
1) under different links, the weight values of the reference indexes are different. This factor should be taken into account when evaluating.
Such as 2G, 3G and 4G, WIFI, the weights of the respective references differ.
2) The third-party browser is developed into a general browser, namely, the third-party browser can be applied to different types of mobile terminals, such as mobile phones and pads.
And S308, evaluating the access performance of the third-party webpage based on the score of the third-party webpage, and proposing suggestions to the third-party webpage for adjustment and improvement.
For example, the threshold value is set to 7 points, and if the score of the third-party webpage is lower than 7 points, the access performance is not good, and improvement is required.
In another embodiment, when the step S307 is executed to score the obtained reference indexes according to a preset scoring rule, the method may further adopt a form of deduction: for example, a 10-point deduction may be used. The total deduction value is designed to be far more than 10 points, and the deduction value exceeding 10 points is recorded as 0 point. Deducting more than 10 points of the page as the tail out-of-tolerance page of the long-tailed graph, and uniformly zeroing. The deduction indexes of part of detection items are in a step shape, and full deduction is carried out only when the maximum value is exceeded. And according to different conditions, the deduction value of part of detection items is reduced by adopting the network quality weight. For example, different weight values may be given according to a network environment to represent that the same page may have better user experience in a high-speed network environment, in different embodiments, the weight value of the 3G network is 1.0, the weight value of the 4G network is 0.5, and the weight value of the WiFi network is 0.2.
It should be noted that, in the foregoing embodiment, the accessibility of the third-party web page is a relatively comprehensive evaluation conclusion obtained by comprehensively considering the static attribute and the dynamic attribute of the web page. In specific implementation, the accessibility quality of the third-party webpage can be evaluated only based on the static attribute, or the accessibility quality of the third-party webpage can be evaluated only based on the dynamic attribute, and the evaluation is selected according to evaluation requirements, which is not limited by the invention.
In a second aspect, the embodiment of the invention further provides a device for evaluating the accessibility of the third-party webpage.
Fig. 4 is a block diagram of a third-party webpage accessibility quality evaluation apparatus according to an embodiment of the present invention.
The application scenario of this embodiment is as follows: in the current web page, a third-party web page link is embedded. For example, in "XXXX", a link is embedded that makes shared knowledge a habit. The link may be in the form of text, in some other scenarios, in the form of pictures, or in the form of a dynamic video. Without affecting the implementation of the present embodiment. The link "let shared knowledge become a habit" corresponds to the homepage of the third-party webpage. Third party web pages deliver the web address of their web page to developers of "XXXX" in the form of links that need to be displayed on the "XXXX" web page or App, hoping to expand the popularity of the platform and the user's browsing volume of platform web pages by placing their web page links on the "XXXX" which is more popular.
For the "XXXX" operating platform, the web page quality of the third-party web page embedded in the platform (mainly focusing on the web page quality on the user's access experience) cannot be well controlled, for example, the size of the loaded content of the third-party web page will affect the length of the web page opening time, and the "white screen time" experienced by the user in opening the third-party web page. In addition, the user may sometimes need a large amount of network traffic to open the third-party webpage, which affects the user's internet experience.
In order to control the quality of a third-party webpage, the embodiment of the invention intends to adopt a third-party browser to pre-load the content of the third-party webpage in a link in advance, analyze resource request lists of the third-party browser, obtain corresponding resources through the lists, and further evaluate the accessibility quality of the third-party webpage through a preset webpage quality evaluation system.
First, how to obtain the resource as the third-party webpage is described, referring to the loading module 41, the parsing module 42 and the resource obtaining module 43 in fig. 4.
And the loading module 41 is configured to simulate a user access behavior, and automatically load the content corresponding to the link of the third-party webpage in the third-party browser.
Because a third party's web page is likely to simply deliver its web address and web page link to "XXXX", there is no delivery for the resources involved in its web page. Such as html language files (the body of a web page), javascript's files (determining the behavior of a web page, e.g., various event responses such as click), style files (determining the attributes of elements, e.g., appearance, size), and pictures, frames, iframes, and the like. These resources need to be acquired by the third-party browser created in this embodiment.
The third-party browser in this embodiment is obtained by modifying, adjusting, and extending functions based on a kernel of an existing browser. For those skilled in the art, based on the existing browser, it is known to modify, adjust or expand the function according to the function that the third-party browser needs to complete in the embodiment, and the description of the present invention is omitted here.
After the third-party browser is built, the resources of the third-party webpage are loaded in the third-party browser by simulating a manner of triggering a third-party website link access behavior of the user, such as clicking a webpage link (but the invention is not limited thereto, and clicking is only one implementation form of this embodiment), where the resources include html files, javascript files, style files, and pictures, frames, iframes, and the like, as described above.
And the analysis module 42 is configured to analyze the resource acquisition record of the third-party browser, acquire and store the resource path list of the third-party webpage.
In the module, after the third-party webpage is loaded in the third-party browser, a resource path list of the third-party webpage is automatically analyzed, wherein the resource path list of the third-party webpage comprises a URL of Javascript, a URL of a style file, a URL of a picture, and a URL of external resources of a font file, an audio/video file and an in-page document.
And the resource obtaining module 43 is configured to obtain a resource corresponding to the third-party webpage according to the resource path list.
And acquiring resources corresponding to the third-party webpage according to information such as the URL of Javascript, the URL of the style file, the URL of the picture, the URL of external resources of font files, audios and videos and documents in the webpage in the third-party webpage resource path list, and storing the resources in a current local application cache.
And the evaluation module 44 is used for evaluating the accessibility of the third-party webpage based on the resources.
First, the basis of evaluation will be described.
In specific implementation, an evaluation system of the third-party webpage quality needs to be established in advance. For example, by scoring the third-party webpage according to a predetermined scoring rule, the reference index mainly includes: main page, resource quantity, frame quantity, iframe quantity, script, white screen time, Dom quantity, first rendering, picture and script quantity, style quantity, ajax and the like.
The predetermined scoring rule may be that, according to actual needs, a reference index is selected, and a weight corresponding to the index is set, and calculation is performed according to a formula.
In specific implementation, the indexes can be further classified. This is because the accessibility quality can be obtained by analyzing the static attribute and the dynamic attribute of the resource corresponding to the third-party webpage, respectively. Referring to fig. 2, for example, the static attribute may include the number of reference indexes in the resources required by the third-party webpage, where the resources may include external reference resources and webpage content resources, where the external reference resources include Javascript files, CSS files, pictures, font files, intra-page documents, audio and video, frames, iframes, and the like, and the webpage content includes DOM files and the like.
The dynamic attribute corresponding to the third-party webpage mainly refers to the loading and rendering time of the third-party webpage, namely the 'white screen time' felt by a client user, the time is measured in a dynamic environment in a mode of simulating user access behaviors (mainly clicking behaviors), and the loading and rendering time of the third-party webpage is tested in the dynamic environment
The dynamic attributes and the static attributes are distinguished, different scoring weights can be set for different attributes, and the advantages and the disadvantages of the accessible attributes of the webpage can better reflect the actual situation.
The embodiments of the present invention will be further described with reference to specific examples.
Another embodiment of the apparatus for evaluating the accessibility of the third-party web page according to the present invention is further described with reference to fig. 5.
Referring to fig. 5, fig. 5 is a block diagram of a structure of an apparatus for evaluating the accessibility of a third-party webpage according to an embodiment of the present invention, where the apparatus includes:
and the loading module 51 is configured to simulate a user access behavior, and automatically load the content corresponding to the link of the third-party webpage in the third-party browser.
When the third-party webpage is embedded into the current webpage in a certain form of link, the click behavior of a user can be simulated through the third-party browser, and the content of the third-party webpage is automatically loaded into the third-party browser. As described above, the third party browser modifies, adjusts, or extends functionality for the existing browser based kernel
The content of the third-party webpage includes html (body of the webpage), javascript (determining behavior of the webpage, e.g., various event responses such as click), style files (determining attributes of elements, e.g., appearance, size), and pictures, frames, iframes, and the like.
The parsing module 52 is configured to parse the resource obtaining record of the third-party browser, and obtain a resource path list of the third-party webpage.
And after the behavior loaded in the third-party webpage is finished, automatically analyzing a request resource path list of the third-party webpage to form a resource path list corresponding to the embedded link.
A storage module 53, configured to store the resource path list.
The resource obtaining module 54 is configured to obtain a resource corresponding to the third-party webpage according to the resource path list;
and the static attribute analysis module 55 is configured to calculate the number of each reference indicator in the page content of the third-party webpage, such as the number of resources, the number of DOMs, the number of frames, the number of iframes, and the like.
And the dynamic attribute analysis module 56 is used for simulating the clicking behavior of the user and testing the loading and rendering time of the third-party webpage under a dynamic environment, wherein the loading and rendering time is generally the 'white screen time' sensed by the user.
And the evaluation module 57 is configured to grade the obtained reference indexes according to a preset grading rule.
In one embodiment, the predetermined scoring rule may be an average of scores obtained by the respective reference indexes. Or, more preferably, the importance of the accessibility of the web page may be different for different reference indicators, and therefore, the corresponding weight may also be set. For example, the calculation can be performed by the following formula:
S=A×a%+B×b%+C×c%+…+M×m%
wherein S represents the score of the accessibility of the third-party webpage
A. B, C, … and M are scores of static or dynamic attributes of the resources corresponding to the third-party webpage respectively, and a, b, c and …, M are preset weights corresponding to the attributes respectively;
and a% + b% + c% + … + m% is 1.
It should be noted that:
1) under different links, the weight values of the reference indexes are different. This factor should be taken into account when evaluating.
Such as 2G, 3G and 4G, WIFI, the weights of the respective references differ.
2) The third-party browser is developed into a general browser, namely, the third-party browser can be applied to different types of mobile terminals, such as mobile phones and pads.
And the suggestion module 58 is used for evaluating the access performance of the third-party webpage based on the grade of the third-party webpage and making suggestions for the third-party webpage for adjustment and improvement.
For example, the threshold value is set to 7 points, and if the score of the third-party webpage is lower than 7 points, the access performance is not good, and improvement is required.
In another embodiment, when the step S307 is executed to score the obtained reference indexes according to a preset scoring rule, the method may further adopt a form of deduction: for example, a 10-point deduction may be used. The total deduction value is designed to be far more than 10 points, and the deduction value exceeding 10 points is recorded as 0 point. Deducting more than 10 points of the page as the tail out-of-tolerance page of the long-tailed graph, and uniformly zeroing. The deduction indexes of part of detection items are in a step shape, and full deduction is carried out only when the maximum value is exceeded. And according to different conditions, the deduction value of part of detection items is reduced by adopting the network quality weight. For example, different weight values may be given according to a network environment to represent that the same page may have better user experience in a high-speed network environment, in different embodiments, the weight value of the 3G network is 1.0, the weight value of the 4G network is 0.5, and the weight value of the WiFi network is 0.2.
It should be noted that, in the foregoing embodiment, the accessibility of the third-party web page is a relatively comprehensive evaluation conclusion obtained by comprehensively considering the static attribute and the dynamic attribute of the web page. In specific implementation, the accessibility quality of the third-party webpage can be evaluated only based on the static attribute, or the accessibility quality of the third-party webpage can be evaluated only based on the dynamic attribute, and the evaluation is selected according to evaluation requirements, which is not limited by the invention.
Fig. 6 shows a schematic structural diagram of an electronic device 60 according to an embodiment of the present invention, where the electronic device 60 includes at least one processor 601 (e.g., a CPU), at least one input/output interface 604, a memory 602, and at least one communication bus 603, which is used for implementing connection communication among these components. The at least one processor 601 is configured to execute computer instructions stored in the memory 602 to enable the at least one processor 601 to perform any of the embodiments of the sub-table method described above. The Memory 602 is a non-transitory Memory (non-transitory Memory), which may include a volatile Memory such as a high-speed Random Access Memory (RAM) and a non-volatile Memory such as at least one disk Memory. A communication connection with at least one other device or unit is made through at least one input-output interface 604, which may be a wired or wireless communication interface.
In some embodiments, the memory 602 stores the program 6021, and the processor 601 executes the program 6021 to perform any of the foregoing method embodiments for increasing the opening speed of a third-party webpage.
The electronic device may exist in a variety of forms, including but not limited to:
(1) a mobile communication device: such devices are characterized by mobile communications capabilities and are primarily targeted at providing voice, data communications. Such terminals include: smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) Ultra mobile personal computer device: the equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include: PDA, MID, and UMPC devices, etc., such as ipads.
(3) A portable entertainment device: such devices can display and play multimedia content. This type of device comprises: audio, video players (e.g., ipods), handheld game consoles, electronic books, and smart toys and portable car navigation devices.
(4) The specific server: the device for providing the computing service comprises a processor, a hard disk, a memory, a system bus and the like, and the server is similar to a general computer architecture, but has higher requirements on processing capacity, stability, reliability, safety, expandability, manageability and the like because of the need of providing high-reliability service.
(5) And other electronic equipment with data interaction function.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof.
In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (11)
1. A method for evaluating the accessibility of a third-party webpage is characterized by comprising the following steps:
simulating the access behavior of a user, and automatically loading the content corresponding to the link of the third-party webpage into a third-party browser;
analyzing the resource acquisition record of the third-party browser, acquiring and storing a resource path list of the third-party webpage;
acquiring resources corresponding to the third-party webpage according to the resource path list;
and evaluating the accessibility of the third-party webpage based on the resources.
2. The method of claim 1,
and the accessibility quality is obtained by analyzing the static attribute of the resource corresponding to the third-party webpage.
3. The method of claim 2,
the static attribute comprises a number of reference indicators in the resource;
the reference index comprises an external reference resource and webpage content;
the external reference resources comprise Javascript files, Css files, pictures, font files, in-page files, audio and video;
the web page content comprises a DOM file.
4. The method according to any one of claims 1 to 3,
and the accessibility quality is obtained by analyzing the dynamic attribute of the resource corresponding to the third-party webpage.
5. The method of claim 4,
the dynamic property is obtained by the following method:
and simulating the access behavior of the user, and testing the loading and rendering time of the third-party webpage in a dynamic environment.
6. The method of claim 5,
and evaluating the accessibility of the third-party webpage based on the content of the resource as follows:
and scoring the static attribute and the dynamic attribute of the resource, and scoring the accessibility of the third-party webpage according to a preset rule.
7. The method according to claim 6, wherein the predetermined rule is:
S=A×a%+B×b%+C×c%+…+M×m%
wherein S represents the score of the accessibility of the third-party webpage
A. B, C, … and M are scores of static or dynamic attributes of the resources corresponding to the third-party webpage respectively, and a, b, c and …, M are preset weights corresponding to the attributes respectively;
and a% + b% + c% + … + m% is 1.
8. The method of claim 7,
the weights of the static attribute and the dynamic attribute are different according to different user terminals.
9. A device for evaluating the accessibility of a third-party webpage, which is characterized by comprising:
the loading module is used for simulating the access behavior of a user and automatically loading the content corresponding to the link of the third-party webpage into the third-party browser;
the analysis module is used for analyzing the resource acquisition record of the third-party browser, acquiring and storing a resource path list of the third-party webpage;
the resource acquisition module is used for acquiring resources corresponding to the third-party webpage according to the resource path list;
and the evaluation module is used for evaluating the accessibility of the third-party webpage based on the resources.
10. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for assessing accessibility of a third-party webpage according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for assessing the accessibility of a third-party webpage according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910006174.1A CN109857959A (en) | 2019-01-04 | 2019-01-04 | Third party's webpage accessibility superior and inferior evaluating method, apparatus and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910006174.1A CN109857959A (en) | 2019-01-04 | 2019-01-04 | Third party's webpage accessibility superior and inferior evaluating method, apparatus and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109857959A true CN109857959A (en) | 2019-06-07 |
Family
ID=66893774
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910006174.1A Pending CN109857959A (en) | 2019-01-04 | 2019-01-04 | Third party's webpage accessibility superior and inferior evaluating method, apparatus and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109857959A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112199616A (en) * | 2020-10-09 | 2021-01-08 | 深圳市欢太科技有限公司 | Webpage performance evaluation method, device, equipment and storage medium |
CN117951414A (en) * | 2024-03-27 | 2024-04-30 | 杭州玳数科技有限公司 | A website page performance detection method and system |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101958814A (en) * | 2010-09-17 | 2011-01-26 | 百度在线网络技术(北京)有限公司 | State monitoring method and device for on-line application |
CN102255776A (en) * | 2011-07-22 | 2011-11-23 | 百度在线网络技术(北京)有限公司 | Method and device for monitoring state of on-line application |
US20120131431A1 (en) * | 2007-12-19 | 2012-05-24 | Yahoo! Inc. | Tag aggregator |
CN102685791A (en) * | 2012-05-22 | 2012-09-19 | 北京东方文骏软件科技有限责任公司 | Method for evaluating user quality of experience (QoE) of WAP (Wireless Application Protocol) services by simulating user behavior |
CN103955495A (en) * | 2014-04-18 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Downloading method and device for page sub-resource |
CN105471942A (en) * | 2014-08-25 | 2016-04-06 | 小米科技有限责任公司 | Yellow page information display method, device and system |
-
2019
- 2019-01-04 CN CN201910006174.1A patent/CN109857959A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120131431A1 (en) * | 2007-12-19 | 2012-05-24 | Yahoo! Inc. | Tag aggregator |
CN101958814A (en) * | 2010-09-17 | 2011-01-26 | 百度在线网络技术(北京)有限公司 | State monitoring method and device for on-line application |
CN102255776A (en) * | 2011-07-22 | 2011-11-23 | 百度在线网络技术(北京)有限公司 | Method and device for monitoring state of on-line application |
CN102685791A (en) * | 2012-05-22 | 2012-09-19 | 北京东方文骏软件科技有限责任公司 | Method for evaluating user quality of experience (QoE) of WAP (Wireless Application Protocol) services by simulating user behavior |
CN103955495A (en) * | 2014-04-18 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Downloading method and device for page sub-resource |
CN105471942A (en) * | 2014-08-25 | 2016-04-06 | 小米科技有限责任公司 | Yellow page information display method, device and system |
Non-Patent Citations (1)
Title |
---|
丁敬达: "《人文社会科学网络学术信息资源评价理论与方法研究》", 30 November 2017, 武汉大学出版社 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112199616A (en) * | 2020-10-09 | 2021-01-08 | 深圳市欢太科技有限公司 | Webpage performance evaluation method, device, equipment and storage medium |
CN117951414A (en) * | 2024-03-27 | 2024-04-30 | 杭州玳数科技有限公司 | A website page performance detection method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11036820B2 (en) | Page loading method and electronic device | |
Jobe | Native Apps vs. Mobile Web Apps. | |
CN109240912B (en) | Webpage application performance evaluation method and terminal based on big data analysis | |
US9652617B1 (en) | Analyzing security of applications | |
US20130080245A1 (en) | Advertising management system | |
CN102306174B (en) | Method and equipment for interacting with user based on web page elements | |
US8626909B2 (en) | Page phase time | |
RU2008135986A (en) | METHOD FOR ASSESSING IMAGE QUALITY, METHOD FOR FORMING A DOCUMENT, COMPUTER SOFTWARE PRODUCT, USER INTERFACE, DATA FILE AND ELECTRONIC DEVICE | |
CN110046310B (en) | Method and device for analyzing jump link in page | |
CN103559222B (en) | Method and device for displaying page loading time in browsers | |
CN111782873B (en) | Book recommendation method based on book video, electronic equipment and storage medium | |
CN109800372B (en) | Method and device for improving third-party webpage opening speed and electronic equipment | |
US9177077B2 (en) | Method for improving backward/forward performance between certain types of dynamic web pages | |
CN109857959A (en) | Third party's webpage accessibility superior and inferior evaluating method, apparatus and electronic equipment | |
CN109992737A (en) | Third party's web page contents checking method, device and electronic equipment | |
US20180121582A1 (en) | Estimating think times | |
Warberg et al. | Trends in Privacy Dialog Design after the GDPR: The Impact of Industry and Government Actions | |
JP5439678B1 (en) | Personality analyzer and personality analysis program | |
CN113626744A (en) | Data processing method and device, computer equipment and storage medium | |
CN104407979A (en) | Script detection method and device | |
CN110737900A (en) | Webpage function testing method and device, server and computer readable storage medium | |
Stefanov | Web Performance Daybook Volume 2: Techniques and Tips for Optimizing Web Site Performance | |
Manuaba | Performance Comparison of Text Based Game Prototypes Using GTmetrix | |
Tamary et al. | The rise of Chrome | |
US10203833B2 (en) | Recommending application modifications using image area counts |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |