CN110046072A - Monitoring method, device, terminal and the readable storage medium storing program for executing of the page - Google Patents

Monitoring method, device, terminal and the readable storage medium storing program for executing of the page Download PDF

Info

Publication number
CN110046072A
CN110046072A CN201910189652.7A CN201910189652A CN110046072A CN 110046072 A CN110046072 A CN 110046072A CN 201910189652 A CN201910189652 A CN 201910189652A CN 110046072 A CN110046072 A CN 110046072A
Authority
CN
China
Prior art keywords
page
monitoring
dynamic
data
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910189652.7A
Other languages
Chinese (zh)
Inventor
任德平
洪明伟
杨伟昌
侯施群
刘德志
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Urban Construction Technology Shenzhen Co Ltd
Original Assignee
Ping An Urban Construction Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Urban Construction Technology Shenzhen Co Ltd filed Critical Ping An Urban Construction Technology Shenzhen Co Ltd
Priority to CN201910189652.7A priority Critical patent/CN110046072A/en
Publication of CN110046072A publication Critical patent/CN110046072A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3452Performance evaluation by statistical analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Hardware Design (AREA)
  • Probability & Statistics with Applications (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of monitoring method of page, device, terminal and readable storage medium storing program for executing, wherein the monitoring method of the page includes: to send loading page request to controlled server, obtains page file;It is loaded into the page file and obtains the monitoring page, the dynamic display portion that the monitoring page includes frame part and is embedded in the frame part;Dynamic data is obtained according to the page file, and is rendered according to the dynamic data, the dynamic display portion after being refreshed;Obtain the control mark of each target widget on the monitoring page;All display data of the target widget are acquired, are saved and for statistical analysis.Rendering of the scheme proposed by the present invention based on data acquisition and dynamic data without a technology of burying, so as to be monitored to dynamic display portion in webpage.

Description

Monitoring method, device, terminal and the readable storage medium storing program for executing of the page
Technical field
The present invention relates to the data statistics technical field of the page more particularly to a kind of monitoring methods of the page, device, terminal And computer readable storage medium.
Background technique
In order to quickly show Webpage, improving response speed and prevent crawler, existing web displaying technology is usually adopted The data shown needed for multiple obtain.Browser first obtains some master datas from server end to show basic webpage page Then face obtains other dynamic datas again to fill basic Webpage, shows the page finally completely.Existing web monitor Technology is only capable of being monitored basic Webpage, and cannot be monitored to the part of dynamic data.
Therefore, it is necessary to provide a kind of monitoring method of page, to solve the above technical problems.
Summary of the invention
The main purpose of the present invention is to provide a kind of monitoring method of page, device, terminal and computer-readable storages Medium, it is intended to it solves existing web monitor technology and is only capable of being monitored basic Webpage, and cannot be to dynamic data The technical issues of part is monitored.
To achieve the above object, the present invention proposes that a kind of monitoring method of page, the monitoring method of the page include:
Loading page request is sent to controlled server, obtains page file;
It is loaded into the page file and obtains the monitoring page, the monitoring page includes frame part and is embedded in the frame Dynamic display portion in part;
Dynamic data is obtained according to the page file, and is rendered according to the dynamic data, after being refreshed The dynamic display portion;
Obtain the control mark of each target widget on the monitoring page;
All display data for acquiring the target widget are supervised according to control mark and the display data Control.
Preferably, described that dynamic data is obtained according to the page file, and rendered according to the dynamic data, it obtains After the step of dynamic display portion after must refreshing, further includes:
Screenshot is carried out to the monitoring page at interval of preset time, obtains real-time snap shot;
The real-time snap shot is compared with default picture, obtains the first difference value;
Judge whether first difference value is greater than the first preset threshold;
If first difference value is greater than first preset threshold, exception information is generated.
Preferably, described that the real-time snap shot is compared with the default picture, obtain the first difference value the step of, Include:
Constituency is set on the practical screenshot according to preset shape, the preset shape is corresponding with the constituency;
The part that the constituency is equipped in the practical screenshot is subjected to space management;
The real-time snap shot Jing Guo space management is compared with the default picture, obtains first difference Value.
Preferably, all display data of the acquisition target widget, preservation and step packet for statistical analysis It includes:
Acquire all display data of the target widget;
According to the position coordinates in the display data, confirm corresponding with the target widget in the real-time snap shot Part, and part preset control picture corresponding with the target widget is compared, obtain the second difference value;
Judge whether second difference value is greater than the second preset threshold;
If second difference value is greater than second preset threshold, the abnormal letter comprising control mark is generated Breath.
Preferably, all display data of the acquisition target widget, preservation and step for statistical analysis, packet It includes:
All display data of the target widget are acquired, the target widget is textbox, and the display data are institute State the text information issued in textbox;
Judge in the text information with the presence or absence of predetermined keyword;
If there are the predetermined keywords in the text information, screenshot is carried out to the monitoring page, and to described Position where the predetermined keyword present in the monitoring page, which is done, expresses processing.
Preferably, described that dynamic data is obtained according to the page file, and rendered according to the dynamic data, it obtains The step of dynamic display portion after must refreshing, comprising:
The page file is parsed, determines the function called in the page file comprising Ajax;
The triggering function called comprising Ajax, obtains the dynamic data;
It calls rendering engine to parse the dynamic data, and typesetting and layout is carried out according to the dynamic data, to refresh The dynamic display portion.
Preferably, described the step of sending loading page request to controlled server, obtaining page file, includes:
Login page load request is sent to the controlled server, obtains log file, the log file includes knowing Distinguishing label;
Load the log file, and according to default log-on message table inquire user name corresponding with the identification label and Password;
The username and password is added in the loading page request, is obtained and the matched page of the user name Face file.
To achieve the above object, the present invention proposes that a kind of monitoring method of page, the monitoring method of the page include:
In addition, the present invention also provides a kind of monitoring device of page, the monitoring device of the page includes:
Sending module, the sending module are used to send loading page request to controlled server, obtain page file;
First rendering module, first rendering module obtain the monitoring page, the prison for being loaded into the page file Control the dynamic display portion that the page includes frame part and is embedded in the frame part;
Second rendering module, second rendering module are also used to obtain dynamic data, and root according to the page file It is rendered according to the dynamic data, the dynamic display portion after being refreshed;
Obtain module, the control mark for obtaining module and being used to obtain each target widget on the monitoring page;
Collection analysis module, the collection analysis module are used to acquire all display data of the target widget, according to The control mark and the display data are monitored.
The present invention also provides a kind of terminal, including processor, memory and be stored on the memory can be by institute State the page monitoring programme of processor execution, wherein when the page monitoring programme is executed by the processor, realize institute as above The step of monitoring method for the page stated.
The present invention also provides a kind of computer readable storage medium, the page is stored on the computer readable storage medium Monitoring programme, wherein when the page monitoring programme is executed by processor, realize the step of the monitoring method of the page as described above Suddenly.
In technical solution of the present invention, by the rendering to dynamic data, the monitoring page and the user for allowing to carry out monitoring are real The page that border is opened is consistent, maximumlly ensure that the monitoring method of page data for statistical analysis are exactly user's perception; Monitoring method in the prior art is avoided to be only capable of being monitored for the frame part in webpage, it can not to dynamic display portion The technical issues of monitoring;Using being monitored without burying a technology, can save staff early period buries work.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of terminal involved in the embodiment of the present invention;
Fig. 2 is the flow diagram of the monitoring method first embodiment of the page of the present invention;
Fig. 3 is the flow diagram of the monitoring method second embodiment of the page of the present invention;
Fig. 4 is the flow diagram of the monitoring method 3rd embodiment of the page of the present invention;
Fig. 5 is the flow diagram of the monitoring method fourth embodiment of the page of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of monitoring method of the page of the present invention;
Fig. 7 is the flow diagram of the monitoring method sixth embodiment of the page of the present invention;
Fig. 8 is the flow diagram of the 7th embodiment of monitoring method of the page of the present invention;
Fig. 9 is the module diagram of the monitoring device of the page of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to the monitoring method of the page be mainly used in terminal, which is with display and processing The equipment of function, can be server;It can also be portable computer, such as ipad, laptop etc..
Referring to Fig.1, Fig. 1 is terminal structure schematic diagram involved in the embodiment of the present invention.In the embodiment of the present invention, eventually End may include processor 1001 (such as CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components;User interface 1003 may include display Shield (Display), input unit such as keyboard (Keyboard);Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface);Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatilememory), such as magnetic disk storage, memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
It will be understood by those skilled in the art that hardware configuration shown in Fig. 1 does not constitute the restriction to equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of computer readable storage medium may include operation system System, network communication module and page monitoring programme.
In Fig. 1, network communication module is mainly used for connecting controlled server, carries out data communication with controlled server; And processor 1001 can call the page monitoring programme stored in memory 1005, and execute the step of the monitoring method of the page Suddenly.
Based on the hardware configuration of above-mentioned terminal, each embodiment of the monitoring method of the page of the present invention is proposed.
The present invention provides a kind of monitoring method of page.
Referring to Fig. 2, in the first embodiment of the invention, the monitoring method of the page the following steps are included:
Step S100 sends loading page request to controlled server, obtains page file;
Specifically, controlled server is the server for needing to be monitored, and controlled server can provide needs and be monitored Website page, application program HTML5 part etc. data informations.The loading page request sent to controlled server specifically may be used Being sent out with obtaining by controlled server by URL (Uniform Resource Locator, uniform resource locator) address Send with page file corresponding to the address.Page file is specifically as follows html code, JavaScript code composition etc..
Step S200 is loaded into the page file and obtains the monitoring page, and the monitoring page includes frame part and is embedded Dynamic display portion in the frame part;
Code in page file is formed the visual page according to predetermined protocol or rule by browser or other application, i.e., To be loaded into page file, which is the page for needing to be monitored.The Webpage that user obtains generally includes non- Dynamically Announce content and Dynamically Announce content, the non-dynamic frame part shown in the content as present invention, specially user are not Carry out the content that refresh operation will not change automatically;Dynamic refresh content is that can carry out automatic compared to non-dynamic refreshing content The content of refreshing.Such as: show in webpage that there is the frame part for showing the stock essential information, the part in stock price Content not will do it automatic refreshing;Stock price can be with the generation fluctuation of bidding of stock invester, to form stock price along the time The variation in direction shows in webpage in the stock price, shows that the part of stock price is Dynamically Announce content, even if user Refresh operation is not made, Dynamically Announce content also will do it automatic refreshing in the page, to keep consistent with stock invester's real time bid.
Step S300 obtains dynamic data according to the page file, and is rendered according to the dynamic data, obtains The dynamic display portion after refreshing;
Since dynamic display portion can be refreshed automatically, data corresponding to the content of display are to need not It is disconnected to be obtained from controlled server, it is dynamic number with the data shown in Dynamically Announce content from what is obtained in server According to.The process can be real by asynchronous dynamical refresh page technology (Asynchronous Javascript And XML, Ajax) It is existing.
Step S400 obtains the control mark of each target widget on the monitoring page;
In the present embodiment, using being monitored without burying a technology, by be previously deployed at Website page, using etc. on Obtain code to website, using etc. it is upper it is all can alternative events element parse, this can alternative events element be target Control.Control, which is identified as, can distinguish title, code of each target widget etc..
Step S500 acquires all display data of the target widget, according to control mark and the display number According to being monitored.
Show that data include the display area of target widget, the content of display, pixel etc..Such as: to the homepage of the website A into Row monitoring can quickly be found when the homepage of the website A carries out content variation.Deployment is directed to the acquisition code of the website A, obtains A net The each target widget stood in homepage;It determines the location information of each target widget, can be compared with historical data, with discovery Whether change is made in the layout of target widget.Determine the color of the display content of each target widget, it can be with historical data It is compared, to discover whether the change there are color.
The monitoring method of the page provided through the invention may make the monitoring page being monitored and user be practical opens The page it is consistent, maximumlly ensure that the monitoring method of page data for statistical analysis be exactly user perception;It avoids Monitoring method in the prior art is only capable of being monitored for the frame part in webpage, can not monitor to dynamic display portion Technical problem;Using being monitored without burying a technology, can save staff early period buries work.
Further, referring to figure 3., Fig. 3 is the flow diagram of the monitoring method second embodiment of the page of the present invention, base After first embodiment, step S300, comprising:
Step S310 carries out screenshot to the monitoring page at interval of preset time, obtains real-time snap shot;
Preset time can be set according to actual needs, for example, preset time is set as 1 day, 7 days or 15 days etc..
The real-time snap shot is compared step S320 with default picture, obtains the first difference value;
First difference value can be the disparity probability being compared based on pixel, and each pixel is compared It is right, obtain having discrepant pixel position, the pixel disparity probability calculated in default size is the first difference value, is preset Size is that those skilled in the art are arranged according to actual needs, can be the region of 10,50 or 100 pixels composition.
Step S330, judges whether first difference value is greater than the first preset threshold;
Step S340 generates exception information if first difference value is greater than first preset threshold.
If first difference value is less than or equal to first preset threshold, it is not processed.Wherein, the first default threshold Value is that those skilled in the art set according to actual needs.
Specifically, the exception information of generation can be picture, and the first difference value is greater than first on real-time snap shot and is preset The part mark processing of threshold value is the exception information, to facilitate staff by changing in the i.e. knowable webpage of the picture Position;It can also be obtained in real-time snap shot by first determining position coordinates of the target widget on the monitoring page First difference value is greater than the position coordinates of the part of the first preset threshold, by by the position coordinates and difference section of target widget Position coordinates be compared, obtain the control mark of corresponding with difference section target widget, include the control in exception information Part mark, so that staff, which can be quickly found out, abnormal part occurs.
For example, being provided with retrieval column to the homepage process monitoring of the website A in the centre of the homepage page, the inspection being arranged Rope column is target widget.Assuming that the homepage correcting of the website A, in the homepage page after correcting, the head is revised as in the position for retrieving column The top of the page page.Set default picture for the screenshot of the former homepage page, by interval of preset time to the monitoring page Screenshot is carried out, the screenshot is compared the homepage page screenshot after obtaining correcting with each pixel of default picture, obtains the One difference value, i.e., in real-time snap shot and default picture, the centre of the two page, the top of the page be not identical, by real-time snap shot Object space position marks behind Central Plains target widget position and correcting, generates exception information.
Further, referring to figure 4., Fig. 4 is the flow diagram of the monitoring method 3rd embodiment of the page of the present invention, base In second embodiment, step S320 includes:
Constituency, the preset shape and the constituency is arranged according to preset shape in step S321 on the practical screenshot It is corresponding;
Preset shape is that those skilled in the art set according to the actual situation, is become in the preset shape and web page monitored It is corresponding to change the high content of frequency, such as: the higher picture file of change frequency is shown in A webpage in fixed area, it can be along this Preset shape is arranged in the shape of fixed area, constituency corresponding with the preset shape is arranged in practical screenshot, which is The corresponding fixed area.
The part that the constituency is equipped in the practical screenshot is carried out space management by step S322;
Space management, which specifically can be, handles the part that constituency is equipped in the practical screenshot for same color, specifically may be used To be green, red, white etc..
Step S323 the real-time snap shot Jing Guo space management is compared with the default picture, described in acquisition First difference value.
Can part change frequency is larger, little part is influenced on webpage substantial function, pass through setting constituency carry out it is empty White processing, so that the part is not involved in the calculating of the first difference value, so that the first difference value calculated, more meets monitoring It needs, avoids frequently generating exception information.
Referring to figure 5., Fig. 5 is the flow diagram of the monitoring method fourth embodiment of the page of the present invention, real based on first Example is applied, step S500 includes:
Step S510 acquires all display data of the target widget;
Step S520, according to it is described display data in position coordinates, confirm in the real-time snap shot with the target control The corresponding part of part, and part preset control picture corresponding with the target widget is compared, it is poor to obtain second Different value;
According to display data in position coordinates, can be obtained corresponding position coordinate in real-time snap shot part be it is corresponding which Target widget is compared so as to preset control picture corresponding with the target widget.
Step S530, judges whether second difference value is greater than the second preset threshold;
Before carrying out step S520, those skilled in the art can set different preset controls to different target widgets Picture.Before carrying out step S530, those skilled in the art can set not the different display data of different target widgets The second same preset threshold.
Step S540 is generated and is identified comprising the control if second difference value is greater than second preset threshold Exception information.
If second difference value is less than or equal to second preset threshold, it is not processed.By by real-time snap shot In part corresponding with target widget compared with preset control picture, thus can realize monitoring granularity refinement;Setting with The comparison of second preset threshold, thus can avoid the function that actively reports an error that existing page monitoring relies only on program level, it can not basis Actual monitored needs to carry out customized monitoring and alarm.
Fig. 6 is please referred to, Fig. 6 is the flow diagram of the 5th embodiment of monitoring method of the page of the present invention, real based on first Example is applied, the target widget is textbox, and the display data are the text information issued in the textbox;Step S500 packet It includes:
Step S550, acquires all display data of the target widget, and the target widget is textbox, the display Data are the text information issued in the textbox;
Step S560 judges in the text information with the presence or absence of predetermined keyword;
Predetermined keyword is specifically as follows sensitive vocabulary, such as: uncivil vocabulary, vocabulary unrelated with this web site contents etc..
Step S570 carries out screenshot to the monitoring page if there are the predetermined keywords in the text information, And the position where the predetermined keyword present in the monitoring page is done and expresses processing.
Such as: there is the textbox being largely made of the content that multiple users deliver in discussion bar, detects the text in textbox Whether word information contains predetermined keyword, if it does, can then be labeled by screenshot, and by the keyword, thus convenient Staff positions the presence of the textbox, and makes and delete the operation such as note, disabling.
Fig. 7 is please referred to, Fig. 7 is the flow diagram of the monitoring method first embodiment of the page of the present invention, real based on first Example is applied, step S300 includes:
Step S350 parses the page file, determines the function called in the page file comprising Ajax;
Step S360, the triggering function called comprising Ajax, obtains the dynamic data;
Step S370 calls rendering engine to parse the dynamic data, and carries out typesetting and cloth according to the dynamic data Office, to refresh the dynamic display portion.
The function that Ajax is called is the function of corresponding dynamic display portion.By triggering the letter called comprising Ajax Number, can obtain the dynamic data from controlled server.Specifically, after obtaining dynamic data, rendering engine starting HTML interpreter, JavaScript engine etc. carry out dissection process to the dynamic data of acquisition.Code in dynamic data passes through Lexical analyzer decoding, then word token (Token) is construed to by syntax analyzer, and be built into node (Node), Zhi Daoduo A node Node is built into a dom tree (DOM Document Object Model, Document Object Model);Rendering engine is by dom tree Typesetting and layout are carried out, visual Webpage is formed.Based on the Ajax function called to obtain dynamic data, further lead to It crosses rendering engine and obtains dynamic display portion, realize the monitoring to dynamic display portion.
Fig. 8 is please referred to, Fig. 8 is the flow diagram of the monitoring method first embodiment of the page of the present invention, real based on first Example is applied, step S100 includes:
Step S110, Xiang Suoshu controlled server sends login page load request, obtains log file, the login text Part includes identification label;
Identification label specifically can be the address URL or other characters, to distinguish different login pages.
Step S120 loads the log file, and corresponding with the identification label according to the inquiry of default log-on message table Username and password;
The username and password is added in the loading page request, obtains and the user name by step S130 The page file matched.
By the way that pre-set username and password is carried out automated log on, so as to monitor the page that a part needs to log in Face, and log in after with the matched page of user name.
In addition, the present invention also provides a kind of monitoring device of page, the monitoring device of the page includes:
Sending module 10, the sending module 10 are used to send loading page request to controlled server, obtain page text Part;
First rendering module 20, first rendering module 20 obtain the monitoring page, institute for being loaded into the page file State the dynamic display portion that the monitoring page includes frame part and is embedded in the frame part;
Second rendering module 30, second rendering module 30 are also used to obtain dynamic data according to the page file, And it is rendered according to the dynamic data, the dynamic display portion after being refreshed;
Obtain module 40, the control mark for obtaining module 40 and being used to obtain each target widget on the monitoring page Know;
Collection analysis module 50, the collection analysis module 50 are used to acquire all display data of the target widget, It is monitored according to control mark and the display data.
Further, the collection analysis module 50 includes:
First acquisition unit, first acquisition unit is for cutting the monitoring page at interval of preset time Figure obtains real-time snap shot;
First comparing unit, first comparing unit are obtained for the real-time snap shot to be compared with default picture Obtain the first difference value;
First judging unit, first judging unit is for judging whether first difference value is greater than the first default threshold Value;
Generation unit generates if the generation unit is greater than first preset threshold for first difference value Exception information.
Further, the collection analysis module further include:
Setting unit, the setting unit is used to that constituency to be arranged on the practical screenshot according to preset shape, described pre- If shape is corresponding with the constituency;
Processing unit, the processing unit are used to the part for being equipped with the constituency in the practical screenshot carrying out blank space Reason;
The comparing unit is also used to for the real-time snap shot Jing Guo space management being compared with the default picture, Obtain first difference value.
Further, the collection analysis module 50 further include:
Second acquisition unit, second acquisition unit are used to acquire all display data of the target widget;
Second comparing unit, second comparing unit are used to confirm institute according to the position coordinates in the display data State part corresponding with the target widget in real-time snap shot, and by part preset control corresponding with the target widget Picture is compared, and obtains the second difference value;
Second judgment unit, the second judgment unit is for judging whether second difference value is greater than the second default threshold Value;
If the generation unit is also used to second difference value greater than second preset threshold, generate comprising described The exception information of control mark.
Further, the collection analysis module 50 further include:
Third acquisition unit, the third acquisition unit is used to acquire all display data of the target widget, described Target widget is textbox, and the display data are the text information issued in the textbox;
Third judging unit, the third judging unit is for judging in the text information with the presence or absence of default key Word;
If the generation unit is also used in the text information there are the predetermined keyword, to the monitoring page Screenshot is carried out, and the position where the predetermined keyword present in the monitoring page is done and expresses processing.
Further, second rendering module 30 further include:
Resolution unit, the resolution unit determine in the page file for parsing the page file comprising Ajax The function of calling;
Trigger unit, the trigger unit are used to trigger the function called comprising Ajax, obtain the dynamic data;
Refresh unit, the refresh unit are used to that rendering engine to be called to parse the dynamic data, and according to the dynamic Data carry out typesetting and layout, the dynamic display portion after being refreshed.
Further, the sending module 10 is also used to send login page load request to the controlled server, obtains Log file is obtained, the log file includes identification label;
First rendering module 20 is also used to load the log file, and according to the inquiry of default log-on message table and institute State the corresponding username and password of identification label;
The sending module 10 is also used to the username and password be added in the loading page request, acquisition and institute State the matched page file of user name.
In addition, being stored with page on computer readable storage medium the present invention also provides a kind of computer readable storage medium Face monitoring programme, wherein when page monitoring programme is executed by processor, realize as the above-mentioned page monitoring method the step of.
Wherein page monitoring programme be performed realized method can refer to the page of the present invention monitoring method it is each Embodiment, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of monitoring method of the page, which is characterized in that the monitoring method of the page includes:
Loading page request is sent to controlled server, obtains page file;
It is loaded into the page file and obtains the monitoring page, the monitoring page includes frame part and is embedded in the frame part In dynamic display portion;
Dynamic data is obtained according to the page file, and is rendered according to the dynamic data, it is described after being refreshed Dynamic display portion;
Obtain the control mark of each target widget on the monitoring page;
All display data for acquiring the target widget are monitored according to control mark and the display data.
2. the monitoring method of the page as described in claim 1, which is characterized in that described to obtain dynamic according to the page file After the step of data, and being rendered according to the dynamic data, the dynamic display portion after being refreshed, also wrap It includes:
Screenshot is carried out to the monitoring page at interval of preset time, obtains real-time snap shot;
The real-time snap shot is compared with default picture, obtains the first difference value;
Judge whether first difference value is greater than the first preset threshold;
If first difference value is greater than first preset threshold, exception information is generated.
3. the monitoring method of the page as claimed in claim 2, which is characterized in that described by the real-time snap shot and described default The step of picture is compared, and obtains the first difference value, comprising:
Constituency is set on the practical screenshot according to preset shape, the preset shape is corresponding with the constituency;
The part that the constituency is equipped in the practical screenshot is subjected to space management;
The real-time snap shot Jing Guo space management is compared with the default picture, obtains first difference value.
4. the monitoring method of the page as claimed in claim 2, which is characterized in that described all of the acquisition target widget show Registration evidence, saves and step for statistical analysis includes:
Acquire all display data of the target widget;
According to the position coordinates in the display data, portion corresponding with the target widget in the real-time snap shot is confirmed Point, and part preset control picture corresponding with the target widget is compared, obtain the second difference value;
Judge whether second difference value is greater than the second preset threshold;
If second difference value is greater than second preset threshold, the exception information comprising control mark is generated.
5. the monitoring method of the page as described in claim 1, which is characterized in that described all of the acquisition target widget show Registration evidence, the step of being monitored according to control mark and the display data, comprising:
All display data of the target widget are acquired, the target widget is textbox, and the display data are the text The text information issued in word frame;
Judge in the text information with the presence or absence of predetermined keyword;
If there are the predetermined keywords in the text information, screenshot is carried out to the monitoring page, and to the monitoring Position where the predetermined keyword present in the page, which is done, expresses processing.
6. the monitoring method of the page as described in claim 1, which is characterized in that described to obtain dynamic according to the page file The step of data, and being rendered according to the dynamic data, the dynamic display portion after being refreshed, comprising:
The page file is parsed, determines the function called in the page file comprising Ajax;
The triggering function called comprising Ajax, obtains the dynamic data;
It calls rendering engine to parse the dynamic data, and typesetting and layout is carried out according to the dynamic data, after being refreshed The dynamic display portion.
7. such as the monitoring method of the page of any of claims 1-6, which is characterized in that described to be sent out to controlled server Send loading page to request, obtain page file the step of include:
Login page load request is sent to the controlled server, obtains log file, the log file includes identification mark Label;
It loads the log file, and user name corresponding with the identification label and close is inquired according to default log-on message table Code;
The username and password is added in the loading page request, is obtained and the matched page text of the user name Part.
8. a kind of monitoring device of the page, which is characterized in that the monitoring device of the page includes:
Sending module, the sending module are used to send loading page request to controlled server, obtain page file;
First rendering module, first rendering module obtain the monitoring page, the monitoring page for being loaded into the page file Face includes frame part and the dynamic display portion that is embedded in the frame part;
Second rendering module, second rendering module are also used to obtain dynamic data according to the page file, and according to institute It states dynamic data to be rendered, the dynamic display portion after being refreshed;
Obtain module, the control mark for obtaining module and being used to obtain each target widget on the monitoring page;
Collection analysis module, the collection analysis module is used to acquire all display data of the target widget, according to described Control mark and the display data are monitored.
9. a kind of terminal, which is characterized in that including processor, memory and be stored on the memory can be described The page monitoring programme that processor executes, wherein when the page monitoring programme is executed by the processor, realize as right is wanted The step of monitoring method of the page described in asking any one of 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that be stored with page prison on the computer readable storage medium Control program, wherein when the page monitoring programme is executed by processor, realize the page as described in any one of claims 1 to 7 The step of monitoring method in face.
CN201910189652.7A 2019-03-13 2019-03-13 Monitoring method, device, terminal and the readable storage medium storing program for executing of the page Pending CN110046072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910189652.7A CN110046072A (en) 2019-03-13 2019-03-13 Monitoring method, device, terminal and the readable storage medium storing program for executing of the page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910189652.7A CN110046072A (en) 2019-03-13 2019-03-13 Monitoring method, device, terminal and the readable storage medium storing program for executing of the page

Publications (1)

Publication Number Publication Date
CN110046072A true CN110046072A (en) 2019-07-23

Family

ID=67274849

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910189652.7A Pending CN110046072A (en) 2019-03-13 2019-03-13 Monitoring method, device, terminal and the readable storage medium storing program for executing of the page

Country Status (1)

Country Link
CN (1) CN110046072A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035315A (en) * 2020-07-31 2020-12-04 重庆锐云科技有限公司 Webpage data monitoring method and device, computer equipment and storage medium
CN113505288A (en) * 2021-06-28 2021-10-15 南京大学 Rapid detection and positioning method based on statistics and pile positioning vision
CN113779357A (en) * 2021-09-29 2021-12-10 南开大学 Information subscription method based on intelligent crawler
CN114745558A (en) * 2021-01-07 2022-07-12 北京字节跳动网络技术有限公司 Live broadcast monitoring method, device, system, equipment and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315952A (en) * 2010-06-29 2012-01-11 百度在线网络技术(北京)有限公司 Method and device for detecting junk posts in community network
CN103279476A (en) * 2013-04-11 2013-09-04 深圳市易聆科信息技术有限公司 Detection method and system for WEB application system sensitive words
CN105630843A (en) * 2014-11-17 2016-06-01 广州市动景计算机科技有限公司 Webpage change monitoring method and device
CN106201817A (en) * 2016-06-21 2016-12-07 微梦创科网络科技(中国)有限公司 Dynamic Display content monitor method, system and device
CN107678937A (en) * 2017-07-26 2018-02-09 上海壹账通金融科技有限公司 Page compatibility detection method, device, server and medium
CN107832428A (en) * 2017-11-14 2018-03-23 北京知行锐景科技有限公司 Webpage method for monitoring state and system based on Website page
CN107864065A (en) * 2017-08-16 2018-03-30 上海壹账通金融科技有限公司 Nothing buries point data acquisition method, system and computer-readable recording medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315952A (en) * 2010-06-29 2012-01-11 百度在线网络技术(北京)有限公司 Method and device for detecting junk posts in community network
CN103279476A (en) * 2013-04-11 2013-09-04 深圳市易聆科信息技术有限公司 Detection method and system for WEB application system sensitive words
CN105630843A (en) * 2014-11-17 2016-06-01 广州市动景计算机科技有限公司 Webpage change monitoring method and device
CN106201817A (en) * 2016-06-21 2016-12-07 微梦创科网络科技(中国)有限公司 Dynamic Display content monitor method, system and device
CN107678937A (en) * 2017-07-26 2018-02-09 上海壹账通金融科技有限公司 Page compatibility detection method, device, server and medium
CN107864065A (en) * 2017-08-16 2018-03-30 上海壹账通金融科技有限公司 Nothing buries point data acquisition method, system and computer-readable recording medium
CN107832428A (en) * 2017-11-14 2018-03-23 北京知行锐景科技有限公司 Webpage method for monitoring state and system based on Website page

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112035315A (en) * 2020-07-31 2020-12-04 重庆锐云科技有限公司 Webpage data monitoring method and device, computer equipment and storage medium
CN114745558A (en) * 2021-01-07 2022-07-12 北京字节跳动网络技术有限公司 Live broadcast monitoring method, device, system, equipment and medium
CN114745558B (en) * 2021-01-07 2024-04-09 北京字节跳动网络技术有限公司 Live broadcast monitoring method, device, system, equipment and medium
CN113505288A (en) * 2021-06-28 2021-10-15 南京大学 Rapid detection and positioning method based on statistics and pile positioning vision
CN113505288B (en) * 2021-06-28 2023-08-01 南京大学 Quick detection and positioning method based on statistics and pile positioning vision
CN113779357A (en) * 2021-09-29 2021-12-10 南开大学 Information subscription method based on intelligent crawler

Similar Documents

Publication Publication Date Title
CN110046072A (en) Monitoring method, device, terminal and the readable storage medium storing program for executing of the page
CN106933722B (en) Webpage application monitoring method, server and system
CN110020292B (en) Webpage content extraction method and terminal equipment
US10754917B2 (en) Method and system for displaying customized webpage on double webview
CN110032493A (en) Monitoring method, device, terminal and the readable storage medium storing program for executing of the page
JP2004510254A (en) Network server
JP2017515216A (en) System and method for optimizing content layout using behavioral metric
US20110078593A1 (en) Web browser transmission server and method of controlling operation of same
CN110297636B (en) Page automatic generation and parameter management method, system and device based on page configuration file
CN110020325B (en) Page loading method, device, equipment and readable storage medium
JP2002108870A (en) System and method for processing information
US20190230311A1 (en) Video interface display method and apparatus
CN103678343B (en) The method and apparatus of prompting webpage load progress
US20230334113A1 (en) Image processing method and apparatus, and computer readable storage medium
US20170169122A1 (en) Webpage display method, mobile terminal, intelligent terminal, program and storage medium
CN111428169A (en) Optimization method, system, server and storage medium for page loading
CN110506267A (en) The rendering of digital assembly background
CN107229760A (en) Storage medium, electronic installation, the display methods of web page contents and device
CN113268303A (en) Interface element configuration method and device, storage medium and electronic equipment
CN105100203B (en) Show the method and terminal of monitoring data
CN105677678B (en) Method and system for determining first screen position of webpage and displaying webpage information
CN111435382B (en) Login checking method of page and terminal
CN108616575B (en) Operation monitoring method and device, computer equipment and storage medium
US11687626B2 (en) System and method for securing a browser against font usage fingerprinting
CN114491354A (en) Page generation method and device and computer readable storage medium

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190723

WD01 Invention patent application deemed withdrawn after publication