CN109816453A - A kind of detection method and device for promoting resource link - Google Patents

A kind of detection method and device for promoting resource link Download PDF

Info

Publication number
CN109816453A
CN109816453A CN201910100389.XA CN201910100389A CN109816453A CN 109816453 A CN109816453 A CN 109816453A CN 201910100389 A CN201910100389 A CN 201910100389A CN 109816453 A CN109816453 A CN 109816453A
Authority
CN
China
Prior art keywords
link
resource link
popularization
result
webview
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.)
Granted
Application number
CN201910100389.XA
Other languages
Chinese (zh)
Other versions
CN109816453B (en
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.)
Zhengzhou APAs digital cloud Information Technology Co., Ltd
Original Assignee
Zhuhai Tianyan Technology 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 Zhuhai Tianyan Technology Co Ltd filed Critical Zhuhai Tianyan Technology Co Ltd
Priority to CN201910100389.XA priority Critical patent/CN109816453B/en
Publication of CN109816453A publication Critical patent/CN109816453A/en
Application granted granted Critical
Publication of CN109816453B publication Critical patent/CN109816453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the present application provides a kind of link detection optimization method and device, this method comprises: obtaining Object linking list to be detected, which includes: multiple popularization resource links;For each popularization resource link, judge whether the link type of the popularization resource link is consistent with default link type;If so, will promote resource link is labeled as valid link address, and the testing result for promoting resource link is generated according to label result;If it is not, then carrying out webview parsing to resource link is promoted using the webview component of terminal device, and the testing result for promoting resource link is generated according to parsing result;By carrying out validation checking to popularization resource link on true terminal device in advance, and corresponding testing result is sent to server, so that server determines lists of links to be pushed based on each testing result for promoting resource link, the case where invalid link is pushed to user terminal is avoided the occurrence of, guarantees that user can normally open popularization resource link.

Description

A kind of detection method and device for promoting resource link
Technical field
This application involves link detection field more particularly to a kind of detection method and device for promoting resource link.
Background technique
Currently, providing the advertisement on the autonomous advertising platform of data with the development of computer communication technology for mobile terminal Link is also more and more, however, may in many uncertain factors existing for network accesses and these advertisement links There can be some invalid advertisement links, cause user that can not show advertisement page when clicking load, influence the Experience Degree of user.
Currently, the autonomous advertising platform for providing data for mobile terminal is usually adopted for the processing of advertisement link validity Validation checking is carried out to advertisement link with server-side, detection method is to request advertisement link by HttpUrlConnection, By judging that the status code of link feedback is judged, eventually by 200 status codes, identifying the advertisement link is active chain It connects.
However, processing scheme of traditional server-side to advertisement link, on the one hand will cause the pressure of Advertisement Server, separately On the one hand, since network accesses existing many uncertain factors, it may cause effective advertisement link and filtered, Yong Hushe The invalid advertisement link of standby load is issued, and is caused user to click the problem of advertisement can not but be shown and is affected information transmission.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of detection method and device for promoting resource link, by advance true Validation checking is carried out to popularization resource link on real terminal device, and corresponding testing result is sent to server, with So that server is filtered out valid link based on each testing result for promoting resource link and determines lists of links to be pushed, such energy It is enough to improve the accuracy in detection for promoting resource link validity, to guarantee the subsequent popularization resource link pushed to user terminal Validity, avoid the occurrence of the case where invalid link is pushed to user terminal, it is ensured that user terminal can normally open link And show corresponding Webpage.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
The embodiment of the present application provides a kind of detection method method for promoting resource link, comprising:
Obtain Object linking list to be detected, wherein the Object linking list includes: multiple popularization resource links;
For each popularization resource link, judge the popularization resource link link type whether with default links category Type is consistent;
If so, the popularization resource link is labeled as valid link address, and pushed away according to label result generation The testing result of wide resource link;If it is not, then using the terminal device webview component to the popularization resource link into Row webview parsing, and the testing result for promoting resource link is generated according to parsing result;Wherein, the testing result For determining the validity for promoting resource link;
Each testing result for promoting resource link is sent to server, so that the server is based on described Testing result updates lists of links to be pushed.
The embodiment of the present application provides a kind of detection device for promoting resource link, comprising:
Lists of links obtains module, for obtaining Object linking list to be detected, wherein the Object linking list packet It includes: multiple popularization resource links;
Link type judgment module judges the chain of the popularization resource link for being directed to each popularization resource link Whether consistent with default link type connect type;
First testing result generation module, for if the determination result is YES, then being labeled as having by the popularization resource link Chained address is imitated, and the testing result for promoting resource link is generated according to label result;
Second testing result generation module, if for judging result be it is no, utilize the terminal device webview group Part carries out webview parsing to the popularization resource link, and generates the detection for promoting resource link according to parsing result As a result;
Testing result sending module, for each testing result for promoting resource link to be sent to server, So that the server is based on the testing result and updates lists of links to be pushed;Wherein, the testing result is for determining institute State the validity for promoting resource link.
The embodiment of the present application provides a kind of detection device for promoting resource link, comprising: processor;And
It is arranged to the memory of storage computer executable instructions, the computer executable instructions make when executed The processor realizes following below scheme:
Obtain Object linking list to be detected, wherein the Object linking list includes: multiple popularization resource links;
For each popularization resource link, judge the popularization resource link link type whether with default links category Type is consistent;
If so, the popularization resource link is labeled as valid link address, and pushed away according to label result generation The testing result of wide resource link;If it is not, then using the terminal device webview component to the popularization resource link into Row webview parsing, and the testing result for promoting resource link is generated according to parsing result;Wherein, the testing result For determining the validity for promoting resource link;
Each testing result for promoting resource link is sent to server, so that the server is based on described Testing result updates lists of links to be pushed.
The embodiment of the present application provides a kind of storage medium, and for storing computer executable instructions, the computer can It executes instruction and realizes following below scheme when executed:
Obtain Object linking list to be detected, wherein the Object linking list includes: multiple popularization resource links;
For each popularization resource link, judge the popularization resource link link type whether with default links category Type is consistent;
If so, the popularization resource link is labeled as valid link address, and pushed away according to label result generation The testing result of wide resource link;If it is not, then using the terminal device webview component to the popularization resource link into Row webview parsing, and the testing result for promoting resource link is generated according to parsing result;Wherein, the testing result For determining the validity for promoting resource link;
Each testing result for promoting resource link is sent to server, so that the server is based on described Testing result updates lists of links to be pushed.
The detection method and device of popularization resource link in the embodiment of the present application, are applied to terminal device, pass through acquisition Object linking list to be detected, wherein Object linking list includes: multiple popularization resource links;For each popularization resource Link, judges whether the link type of the popularization resource link is consistent with default link type;If so, resource link will be promoted Labeled as valid link address, and the testing result for promoting resource link is generated according to label result;If it is not, then being set using terminal Standby webview component carries out webview parsing to resource link is promoted, and is generated according to parsing result and promote resource link Testing result;By it is each promote resource link testing result be sent to server so that server be based on testing result update to Push lists of links.By carrying out validation checking to popularization resource link on true terminal device in advance, and will be corresponding Testing result be sent to server so that server based on it is each promote resource link testing result filter out valid link simultaneously Determine lists of links to be pushed, can be improved the accuracy in detection for promoting resource link validity in this way, thus guarantee it is subsequent to The validity of the popularization resource link of user terminal push, avoids the occurrence of the case where invalid link is pushed to user terminal, really Link can normally be opened and show corresponding Webpage by protecting user terminal.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the application scenarios schematic diagram of the detection system provided by the embodiments of the present application for promoting resource link;
Fig. 2 is the first flow diagram of the detection method provided by the embodiments of the present application for promoting resource link;
Fig. 3 is second of flow diagram of the detection method provided by the embodiments of the present application for promoting resource link;
Fig. 4 is the third flow diagram of the detection method provided by the embodiments of the present application for promoting resource link;
Fig. 5 is the module composition schematic diagram of the detection device provided by the embodiments of the present application for promoting resource link;
Fig. 6 is the structural schematic diagram of the detection device provided by the embodiments of the present application for promoting resource link.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
The embodiment of the present application provides a kind of detection method and device for promoting resource link, by advance true whole Validation checking is carried out to popularization resource link in end equipment, and corresponding testing result is sent to server, so that service Device filters out valid link based on each testing result for promoting resource link and determines lists of links to be pushed, and can be improved in this way The accuracy in detection of resource link validity is promoted, to guarantee the effective of the subsequent popularization resource link pushed to user terminal Property, avoid the occurrence of the case where invalid link is pushed to user terminal, it is ensured that user terminal can normally open link and show Corresponding Webpage.
Fig. 1 is that the application scenarios of the detection system for the popularization resource link that this specification one or more embodiment provides show It is intended to, as shown in Figure 1, the system includes: server and terminal device, wherein terminal device can be smart phone, plate electricity The mobile terminals such as brain are provided with the user terminal that real simulation user uses in the terminal device and open needed for promoting resource link Real equipment component and real network environment terminal, terminal device is mainly responsible for server and obtains object chain to be detected List is connect, multiple popularization resource links in the Object linking list to be detected got are detected, and will test result It is sent to server;Server updates lists of links to be pushed based on the testing result that terminal device is sent, wherein promotes resource The detailed process of the detection of link are as follows:
(1) terminal device obtains Object linking list to be detected to server, wherein includes in the Object linking list Multiple popularization resource links, which can be advertisement link, for example, application program download link, commodity purchasing Link and video-see link etc..
(2) terminal device is for each popularization resource link in Object linking list to be detected, to get to Multiple popularization resource links in the Object linking list of detection are detected, and judge that the link type of the popularization resource link is It is no consistent with default link type;
(3) by judgement, if popularization resource link type is consistent with default link type, by the popularization resource link mark It is denoted as valid link address, and generates the testing result for promoting resource link according to label result;
(4) if popularization resource link type and default link type are inconsistent, the webview component of terminal device is utilized Webview parsing is carried out to resource link is promoted, and generates the testing result for promoting resource link according to parsing result;
(5) after the completion of all popularization resource links in Object linking list all detection, terminal device is by each popularization The testing result of resource link is sent to server;Wherein, the testing result is for determining the validity for promoting resource link;
(6) testing result that server is sent based on terminal device is that address or redirection have to label The popularization resource link of effect link is added to lists of links to be pushed, and updates lists of links to be pushed;In addition, continuous due to needing It is supplemented with the advertisement link of popularization demand, chained address to be promoted is added to by target to be detected according to practical popularization demand Lists of links, and the Object linking list is issued to terminal device, so that terminal device is to each in the Object linking list It promotes resource link and carries out validation checking, wherein the popularization resource link in Object linking list to be detected includes: to have pushed away The popularization resource link and newly-increased popularization resource link sent;
Wherein, in order to push a certain application program to user, so that user downloads and uses the application program, therefore, It will be handed down to before user terminal using push link as advertisement link, and need first to carry out validity to application push link Verifying, i.e., for promote resource link be application push link the case where, can by the way of periodically adding according to it is default when Between interval the corresponding application push link of existing application program is added in lists of links to be detected;More due to application program The new period is different, and the corresponding application of existing application program that version updating can also be will be present by the way of non-periodically addition is pushed away Link is sent to be added in lists of links to be detected, and for newly increasing to pushing application program, by newly-increased application program pair The application push link answered is added in lists of links to be detected, so that terminal device is corresponding to the application program for having popularization demand Application push link carry out validation checking.
In the embodiment of the present application, by carrying out validity inspection to popularization resource link on true terminal device in advance It surveys, and corresponding testing result is sent to server, so that server is based on each testing result screening for promoting resource link Valid link and determining lists of links to be pushed out, can be improved the accuracy in detection for promoting resource link validity in this way, from And guarantee the validity of the subsequent popularization resource link pushed to user terminal, it avoids the occurrence of and invalid link is pushed to user's end The case where end, it is ensured that user terminal can normally open link and show corresponding Webpage.
Fig. 2 is the first flow diagram of the detection method for the popularization resource link that one embodiment of the application provides, Fig. 2 In method can be executed by the terminal device in Fig. 1, as shown in Fig. 2, this method at least includes the following steps:
S201 obtains Object linking list to be detected, wherein Object linking list includes: multiple popularization resource links;
Specifically, country variant may be under the jurisdiction of in view of promoting resource link, in response to this, in order to being under the jurisdiction of The popularization resource link of country variant is detected, and terminal device needs pair before obtaining Object linking list to be detected Current network environment is configured, and current network environment is arranged to the network rings of the country to be obtained for promoting resource link Border, after completing network configuration to terminal device, terminal device obtains Object linking list to be detected to server, wherein It include multiple popularization resource links in Object linking list, which can be advertisement link, for example, application program Download link, commodity purchasing link and video-see link etc..
S202 judges whether the link type of the popularization resource link links with default for each popularization resource link Type is consistent;
In order to improve the detection efficiency for promoting resource link, can be detected in such a way that multithreading detects simultaneously, Specifically, terminal device obtains Object linking list to be detected by interface, the Object linking to be detected got is arranged Multiple popularization resource links in table are detected, and to guarantee detection efficiency, judge respectively to push away using multi-threading parallel process mode Whether the link type of wide resource link is consistent with default link type, for example, 5 threads can be used simultaneously to mesh to be detected Whether the link type of the popularization resource link in mark lists of links is consistent with default link type to be detected.
If the determination result is YES, then S203 is executed, resource link will be promoted and be labeled as valid link address, and according to label As a result the testing result for promoting resource link is generated;
Wherein, it is contemplated that navigate to target application market since the link of target application market can directly arouse target application Details page, and every kind of target application market is such as: the App Store of apple, Huawei's application market, Google's application market etc. There is its corresponding chained address format, therefore, the link that default link type includes: target application market can be preset Affiliated type, it is subsequent when carrying out validation checking to each popularization resource link, it can first identify the chain for promoting resource link It is whether consistent with default link type to connect type, if link type is consistent, at this point it is possible to determine that the popularization resource link can be straight It connects and arouses the details page that target application navigates to target application market, belong to effective connection, eliminate utilize terminal device in this way Webview component to the popularization resource link carry out webview parsing process, so as to improve to a certain extent Link the efficiency of validation checking;
Specifically, default link can be set by the link type for meeting target application market chained address format in advance Type judges that the popularization resource link belongs to target and answers when detecting that popularization resource link is consistent with default link type It is linked with market, at this point, directly terminating the detection to the popularization resource link, which is labeled as valid link Address, and the testing result for promoting resource link is generated according to label result, due to being not necessarily to terminal device during this Webview component taps into row webview parsing to the target application market chain, to substantially increase link to a certain extent The efficiency of validation checking.
For example, example is linked as with the market Google Play, since the link of the market Google Play can be aroused and jump It, therefore, can be in advance by the chain of the market Google Play chained address format to the details page of Google Play application market It connects type and is set as default link type, wherein Google Play application market chained address includes: market: //, At least one of google.play, so, will include market in chained address: //, at least one of google.play Link type is set as default link type, includes market in chained address when recognizing: //, in google.play extremely When a kind of few mark, it is confirmed that the link type of the link is consistent with default link type, at this point it is possible to directly mark the link It is denoted as valid link, and generates the testing result for promoting resource link according to label result, in this process, without using terminal The webview component of equipment carries out webview parsing to the link for meeting default link type, thus to a certain extent significantly Improve the efficiency of link validation checking.
Specifically, the Object linking list to be detected that terminal device will be got by interface, to be checked to what is got Multiple popularization resource links in the Object linking list of survey are detected, to guarantee detection efficiency, at multi-threaded parallel Reason mode judges whether each link type for promoting resource link is consistent with default link type, after testing, if promoting resource The link type of link is consistent with default link type, then by the popularization resource link labeled as valid link address, and according to Label result generates the testing result of the popularization resource link;
If judging result be it is no, execute S204, using terminal device webview component to promote resource link carry out Webview parsing, and the testing result for promoting resource link is generated according to parsing result;
Specifically, the Object linking list to be detected that terminal device will be got by interface, to be checked to what is got Multiple popularization resource links in the Object linking list of survey are detected, if there are link type and in advance in Object linking list If the inconsistent popularization resource link of link type, then the webview component pair and default link type in terminal device are utilized Inconsistent popularization resource link carries out webview parsing, and the testing result for promoting resource link is generated according to parsing result; Since during to resource link progress webview parsing is promoted, which may occur repeatedly to reset To if the link type that the popularization resource link generates after redirecting is consistent with default link type, by the popularization Resource link also thinks that the popularization resource link is valid link address labeled as valid link is redirected at this time, and according to Parsing result generates the testing result for promoting resource link;If the links category that the popularization resource link generates after redirecting Type is still inconsistent with default link type, then by the popularization resource link labeled as redirection invalid link, and is tied according to parsing Fruit generates the testing result for promoting resource link;
For example, default link type is google play link, if depositing in the Object linking list that terminal device is got In link type and the inconsistent popularization resource link of google play link type, then the webview in terminal device is utilized Component pair carries out webview parsing with the inconsistent popularization resource link of google play link type, and according to parsing result Generate the testing result for promoting resource link;If the popularization resource link after redirecting the link type that generates with Google play link type is inconsistent, then by the popularization resource link labeled as redirection invalid link, and is tied according to parsing Fruit generates the testing result for promoting resource link;
Each testing result for promoting resource link is sent to server, so that server is based on testing result more by S205 Newly lists of links to be pushed, wherein the testing result promotes the validity of resource link for determining.
Specifically, terminal device by multiple popularization resource links in the Object linking list to be detected got into Row detection, and each testing result for promoting resource link is sent to server, server update is established wait push link List will be stored labeled as the popularization resource link of valid link or redirection valid link, for labeled as invalid The popularization resource link of link is isolated;Wherein, established lists of links to be pushed is updated, comprising: promote for having This is had and promotes resource link addition or replacement to lists of links to be pushed by resource link;For newly-increased popularization resource chain It connects, which is added to this wait push in lists of links.
In the embodiment of the present application, by carrying out validity inspection to popularization resource link on true terminal device in advance It surveys, and corresponding testing result is sent to server, so that server is based on each testing result screening for promoting resource link Valid link and determining lists of links to be pushed out, can be improved the accuracy in detection for promoting resource link validity in this way, from And guarantee the validity of the subsequent popularization resource link pushed to user terminal, it avoids the occurrence of and invalid link is pushed to user's end The case where end, it is ensured that user terminal can normally open link and show corresponding Webpage.
Wherein, when being migrated under new link due to the single page, list or entire Web application, in order to protect The availability for holding original link needs to establish from original redirection map for being linked to new link, enables original link It is redirected to the new chained address;Therefore, when being directed to each popularization resource link, judge the links category of the popularization resource link When whether type is consistent with default link type, if judging, the link type of the popularization resource link and default link type are different When cause, at this time, it may be necessary to further be judged the popularization resource link, judges that the popularization resource link whether there is and reset To if there is redirection in the popularization resource link, it is also necessary to the link after the redirection is judged, specifically:
As shown in figure 3, above-mentioned S204 carries out webview to resource link is promoted using the webview component of terminal device Parsing, and the testing result for promoting resource link is generated according to parsing result, comprising:
S2041 carries out webview parsing to resource link is promoted using the webview component of terminal device;
Specifically, when terminal device to multiple popularization resource links in the Object linking list to be detected got into Row detection, if there are link type and the inconsistent popularization resource link of default link type in Object linking list, it should It promotes resource link and is labeled as non-default link, and the non-default link is carried out using the webview component in terminal device Webview parsing, by carrying out webview parsing to the non-default link, to check whether the non-default link can occur weight Orientation;
S2042, according to the parsing result for promoting resource link, resource link is promoted in judgement within a preset time whether there is It redirects;
Wherein, during carrying out webview parsing to above-mentioned non-default link, it is contemplated that the non-default link may It can occur repeatedly to redirect, the overtime duration of a redirection, i.e., above-mentioned preset time, to judge in preset time can be set at this time The interior non-default link is with the presence or absence of redirection;
Specifically, webview parsing is carried out to the non-default link using the webview component in terminal device, right During the non-default link carries out webview parsing, by judging the non-default link resolving within a preset time In be performed with the presence or absence of webview callback method, and then may determine that the non-default link with the presence or absence of redirecting, if needle Webview callback method, which is performed, to be monitored to non-default be linked at during webview is parsed, then illustrates that this is non-default Link, which exists, redirects link, and based on the available non-default link linked after redirecting of the webview callback method Address;
If so, S2043 is executed, according to the testing result for redirecting result generation popularization resource link;
Specifically, if the non-default link within a preset time, monitors that webview is returned during webview parsing Tune method is performed, and is illustrated that the non-default link exists and is redirected link, and it is non-pre- based on the webview callback method to obtain this If the chained address after link redirection, while according to the testing result for redirecting result generation popularization resource link;
If it is not, then executing S2044, resource link will be promoted and be labeled as invalid link address, and generated according to label result Promote the testing result of resource link.
Specifically, if the non-default link within a preset time, does not monitor during webview parsing Webview callback method is performed, then illustrates that the non-default link there is no redirecting, terminates the webview resolving, will The non-default bookmark is invalid link address, and the testing result for promoting resource link is generated according to label result.
Further, for the non-default link redirected in webview resolving, webview is parsed Cheng Zhonghui judges the non-default link new link address redirected every time within a preset time, specifically:
As shown in figure 4, above-mentioned S2043, according to the testing result for redirecting result generation popularization resource link, comprising:
S20431, judge promote resource link it is corresponding redirect link link type whether with default link type one It causes;
Specifically, for the non-default link redirected in webview resolving, webview resolving It is middle the new link address redirected every time of non-default link within a preset time to be judged, judge the non-default chain Whether the link type for connecing the new link redirected every time within a preset time is consistent with default link type;
If so, executing S20432, resource link will be promoted labeled as redirection valid link, and raw according to label result At the testing result for promoting resource link;
Specifically, if the non-default link redirected in webview resolving, resetting within a preset time Link type to link is consistent with default link type, then terminates webview parsing, is to reset by the non-default bookmark To valid link, and the testing result for promoting resource link is generated according to label result;
If it is not, then executing S2041, webview solution is carried out to resource link is promoted using the webview component of terminal device The step of analysis.
Specifically, if the non-default link redirected in webview resolving, resetting within a preset time It is inconsistent to the link type of link and default link type, then the webview component using terminal device is executed to non-default Link carries out webview parsing, and the step of generating the testing result for promoting resource link according to parsing result;
When server optimizes processing to Object linking list based on testing result, deletes and be labeled as invalid link address Popularization resource link, retain labeled as valid link address and redirect valid link popularization resource link;
Further, it is contemplated that delay chain is taken out the response time by redirection process, to influence subsequent user end It holds request to open the response speed of the link, therefore, introduces the decision condition for redirecting number, only do not reached in redirection number When to preset threshold, webview parsing is just carried out, otherwise terminates and executes webview parsing operation, specifically:
S2041 is being executed, is carrying out webview parsing to resource link is promoted using the webview component of terminal device Before step, further includes:
Whether step 1, judgement are greater than preset threshold for the redirection number for promoting resource link;
Specifically, considering that delay chain is taken out the response time by redirection process, if it is excessive to redirect number, it will The response speed that subsequent user terminal request opens the link is influenced, therefore, terminal device is being utilized to non-default link When webview component carries out webview parsing within a preset time, the decision condition for redirecting number is introduced, judgement is for non- Default to be linked at when carrying out webview parsing, whether the number redirected is greater than preset threshold;
Step 2 continues to execute S2041, utilizes terminal device if redirecting number is not more than preset threshold The step of webview component is to resource link progress webview parsing is promoted.
Specifically, being carried out in webview resolving within a preset time by non-default link, webview is monitored The number that callback method is performed, obtain this it is non-default be linked at the redirection number occurred in resolving, if the redirection Number is not more than preset threshold, then continues to execute and carry out webview to non-default link using the webview component of terminal device Parsing, and the step of testing result for promoting resource link is generated according to parsing result.
Further, for be performed a plurality of times webview parsing after non-default link type still with default link type not The popularization resource link is directly labeled as invalid link address by unanimous circumstances, is thereby further ensured that subsequent to user's end The validity of the popularization resource link of end push, improves subsequent user terminal request and opens the response speed for promoting resource link, Specifically:
Above-mentioned steps one, after judging whether to be greater than preset threshold for the redirection number for promoting resource link, also Include:
If redirecting number is greater than preset threshold, resource link will be promoted and be labeled as invalid link address, and according to mark Remember that result generates the testing result for promoting resource link.
Specifically, in view of for be performed a plurality of times webview parsing after non-default link type still with default links category The inconsistent situation of type influences whether that user terminal requests open the response speed of the non-default link, therefore, for this feelings Condition monitors webview callback method quilt if being carried out in webview resolving within a preset time by non-default link The number of execution, obtain this it is non-default be linked at the redirection number occurred in resolving, if the redirection number be greater than it is pre- If threshold value, then terminate webview parsing, which is labeled as invalid link address, is generated and promoted according to label result The testing result of resource link.
Wherein, it is contemplated that network access there are many uncertain factors, for example, network setting, IP address, gateway, DNS, proxy server etc., therefore, similarly will appear link in webview resolving can not identify, link parsing is wrong Accidentally situations such as, carries out in webview resolving for non-default link, the chained address of appearance is invalid, redirect after address The non-default bookmark is false links by situations such as invalid, specifically:
Above-mentioned S204 using terminal device webview component to promote resource link carry out webview parsing, and according to Parsing result generates the testing result for promoting resource link, comprising:
Step 1 carries out webview parsing to resource link is promoted using the webview component of terminal device;
Specifically, when terminal device to multiple popularization resource links in the Object linking list to be detected got into Row detection, if there are link type and the inconsistent popularization resource link of default link type in Object linking list, it should It promotes resource link and is labeled as non-default link, and the non-default link is carried out using the webview component in terminal device Webview parsing;
Step 2, according to the parsing result for promoting resource link, whether the popularization resource link after judging webview parsing For false links;
Specifically, in view of network access is there are many uncertain factors, for example, network setting, IP address, gateway, DNS, proxy server etc., therefore, similarly will appear link in webview resolving can not identify, link parsing is wrong Accidentally situations such as, according to the parsing result of the non-default link, whether the popularization resource link after judging webview parsing is mistake Link;
Step 3 if so, will promote resource link is labeled as invalid link address, and is generated according to label result and is promoted The testing result of resource link.
Specifically, if the non-default link redirected in webview resolving, to weight within a preset time The new link address of orientation is judged, if the new link address for occurring redirecting in webview resolving can not know Not, situations such as new link parsing mistake, then terminate webview parsing, and be invalid link address by the non-default bookmark, And the testing result for promoting resource link is generated according to label result.
Further, in order to guarantee the trackability of webview resolving, to improve server to Object linking list Optimization accuracy, meanwhile, the anomaly analysis of invalid link and false links, problem are checked and direct property effect concretely, It is recorded in webview resolving to all operation informations for promoting resource link, specifically:
Above-mentioned S204 carries out webview parsing, and root to resource link is promoted using the webview component of terminal device The testing result for promoting resource link is generated according to parsing result, comprising:
Step 1 carries out webview parsing to resource link is promoted using the webview component of terminal device;
Specifically, when terminal device to multiple popularization resource links in the Object linking list to be detected got into Row detection, if there are link type and the inconsistent popularization resource link of default link type in Object linking list, it should It promotes resource link and is labeled as non-default link, and the non-default link is carried out using the webview component in terminal device Webview parsing;
Step 2, recording needle is to the operation information in the webview resolving for promoting resource link, wherein operation letter Breath includes: at least one of to redirect mark information, parse time-consuming information or redirect number;
Specifically, for, with the consistent popularization resource link of default link type, recording needle is to this in Object linking list Promote the attribute information of resource link, wherein the attribute information includes: the id information of the popularization resource link, chained address letter At least one of breath;For in Object linking list, there are link types and the inconsistent popularization resource chain of default link type It connects, then the popularization resource link is labeled as non-default link, using the webview component in terminal device to the non-default chain Row webview parsing is tapped into, and records the attribute information of the popularization resource link and is solved for the popularization resource link webview Operation information during analysis, wherein attribute information include: the id information of the popularization resource link, in link address information extremely Few one kind, operation information include: at least one of to redirect mark information, parse time-consuming information or redirect number;
Step 3 generates the testing result for promoting resource link according to for the operation information for promoting resource link record.
Specifically, by being recorded in webview resolving to all operation informations performed by popularization resource link, And for the operation information for promoting resource link record, the testing result of the popularization resource link is generated, guarantees webview parsing The trackability of process improves optimization accuracy of the server to Object linking list, meanwhile, it is operator's later period to nothing It is greatly convenient that the work such as the anomaly analysis of effect link and false links, problem investigation provide.
Wherein, promoting resource link includes: using push link, it is contemplated that there may be version updatings for existing application program The case where or certain existing application programs may have the case where undercarriage, therefore, server needs periodically or non-periodically It determines Object linking list to be detected, and determining Object linking list to be detected is issued to terminal device, wherein to Popularization resource link in the Object linking list of detection includes: the application push link and newly-increased application of existing application program The application push link of program, specifically:
It further, is the case where application push links for resource link is promoted;Due to needing that popularization has been continuously replenished The push of the newly-increased application program of demand links, and links for the corresponding push of existing application program there are version updating Validation checking is re-started, therefore, server needs constantly to determine that Object linking to be detected is arranged according to practical popularization demand Table, specifically:
Step 1, server judge whether the validation checking time interval of the application push link of existing application program is big In prefixed time interval threshold value, alternatively, judging that existing application program is operated with the presence or absence of version updating, alternatively, judging whether to deposit In newly-increased application program to be pushed;
Specifically, in view of application program there may be version updatings the case where or certain application programs may deposit The undercarriage the case where, therefore, has the application push link of application program for server, a prefixed time interval threshold is set Value, judges whether the validation checking time interval of the application push link of existing application program is greater than prefixed time interval threshold Value, alternatively, judging that existing application program is operated with the presence or absence of version updating;For the application push link newly increased, server Judge whether there is newly-increased application program to be pushed;
Step 2, if any judging result be it is yes, by the application push link or newly-increased application of existing application program The application push link of program is added to lists of links to be detected;
Specifically, for the application push link of the existing application program of server, by judgement, if having application program Validation checking time interval using push link is greater than prefixed time interval threshold value, then this is had to the application of application program Push link is added to lists of links to be detected;Alternatively, having the application push link of application program for server, work as service Device detects the version updating of the existing application program, then is added to the application push link for having application program to be detected Lists of links;Alternatively, for the new application push link that server receives, directly by the newly-increased application push link addition To in lists of links to be detected;
Whether step 3, the lists of links to be detected after judging addition meet preset condition;
Specifically, above-mentioned preset condition can be time conditions either number of links condition;If preset condition is the time Condition reaches preset time when the link addition time in lists of links to be detected, then stops adding into lists of links to be detected Add link;If preset condition is number of links condition, meet default link number to the number of links in lists of links to be detected When amount, then stop adding link into lists of links to be detected;
Lists of links to be detected after addition is if the determination result is YES then determined as Object linking list by step 4, and Object linking list is issued to terminal device.
Specifically, if server judges that the addition time of the link in the lists of links to be detected reaches preset time, or When person judges that the number of links in lists of links to be detected meets default number of links, then stop into lists of links to be detected Addition link, and the lists of links to be detected after addition is determined as Object linking list, and Object linking list is issued to Terminal device.
The detection method of popularization resource link in the embodiment of the present application, is applied to terminal device, to be detected by obtaining Object linking list, wherein Object linking list includes: multiple popularization resource links;For each popularization resource link, sentence Break the popularization resource link link type it is whether consistent with default link type;If so, being labeled as resource link is promoted Valid link address, and the testing result for promoting resource link is generated according to label result;If it is not, then utilizing terminal device Webview component carries out webview parsing to resource link is promoted, and the detection for promoting resource link is generated according to parsing result As a result;Each testing result for promoting resource link is sent to server, so that server is based on testing result and updates wait push Lists of links.By carrying out validation checking to popularization resource link on true terminal device in advance, and will examine accordingly It surveys result and is sent to server, so that server filters out valid link and determination based on each testing result for promoting resource link Lists of links to be pushed can be improved the accuracy in detection for promoting resource link validity, to guarantee subsequent to user in this way The validity of the popularization resource link of terminal push, avoids the occurrence of the case where invalid link is pushed to user terminal, it is ensured that use Family terminal can normally open link and show corresponding Webpage.
The detection method of the popularization resource link of corresponding above-mentioned Fig. 1 to Fig. 4 description, based on the same technical idea, this Shen Please embodiment additionally provide a kind of detection device for promoting resource link, which is set in the terminal device in Fig. 1, Fig. 5 is the module composition schematic diagram of the detection device provided by the embodiments of the present application for promoting resource link, and the device is for executing The detection method of the popularization resource link of Fig. 1 to Fig. 4 description, as shown in figure 5, the device includes:
Lists of links obtains module 501, for obtaining Object linking list to be detected, wherein the Object linking column Table includes: multiple popularization resource links;
Link type judgment module 502 judges the popularization resource link for being directed to each popularization resource link Whether link type is consistent with default link type;
First testing result generation module 503, for if the determination result is YES, being then labeled as the popularization resource link Valid link address, and the testing result for promoting resource link is generated according to label result;
The second testing result generation module 504, if for judging result be it is no, utilize the terminal device Webview component carries out webview parsing to the popularization resource link, and generates the popularization resource chain according to parsing result The testing result connect;
Testing result sending module 505, for each testing result for promoting resource link to be sent to service Device, so that the server is based on the testing result and updates lists of links to be pushed;Wherein, the testing result is for determining The validity for promoting resource link.
Optionally, the second testing result generation module 504, is specifically used for:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
According to the parsing result for promoting resource link, whether the popularization resource link is deposited within a preset time for judgement It is redirecting;
If so, generating the testing result for promoting resource link according to result is redirected;
If it is not, the popularization resource link is then labeled as invalid link address, and pushed away according to label result generation The testing result of wide resource link.
Optionally, the second testing result generation module 504, is further specifically used for:
Judge whether the corresponding link type for redirecting link of the popularization resource link is consistent with default link type;
If so, by the popularization resource link labeled as redirection valid link, and according to label result generation Promote the testing result of resource link;
The popularization resource link is carried out if it is not, then executing the webview component using the terminal device Webview parsing, and the step of testing result for promoting resource link is generated according to parsing result.
Optionally, the second testing result generation module 504, is further specifically used for:
Whether judgement is greater than preset threshold for the redirection number for promoting resource link;
If redirecting number is not more than preset threshold, the webview component using the terminal device is executed to described It promotes resource link and carries out webview parsing, and generate the step of the testing result for promoting resource link according to parsing result Suddenly.
Optionally, the second testing result generation module 504, is still further specifically used for:
If redirecting number is greater than preset threshold, the popularization resource link is labeled as invalid link address, and root The testing result for promoting resource link is generated according to label result.
Optionally, the second testing result generation module 504, also particularly useful for: also particularly useful for:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
According to the parsing result for promoting resource link, the popularization resource link after judging webview parsing is No is false links;
If so, the popularization resource link is labeled as invalid link address, and pushed away according to label result generation The testing result of wide resource link.
Optionally, the second testing result generation module 504, also particularly useful for:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
Recording needle is to the operation information in the webview resolving for promoting resource link, wherein the operation letter Breath includes: at least one of to redirect mark information, parse time-consuming information or redirect number;
According to the operation information for the popularization resource link record, the detection for promoting resource link is generated As a result.
Optionally, the popularization resource link includes: using push link;
The server judges whether the validation checking time interval of the application push link of existing application program is greater than Prefixed time interval threshold value, alternatively, judging that existing application program is operated with the presence or absence of version updating, alternatively, judging whether there is Newly-increased application program to be pushed;
If any judging result is yes, application push link or the newly-increased application by the existing application program The application push link of program is added to lists of links to be detected;
Whether the lists of links to be detected after judging addition meets preset condition;
If the determination result is YES, then the lists of links to be detected after addition is determined as Object linking list, and will The Object linking list is issued to the terminal device.
The detection device of popularization resource link in the embodiment of the present application, is set to terminal device, to be detected by obtaining Object linking list, wherein Object linking list includes: multiple popularization resource links;For each popularization resource link, sentence Break the popularization resource link link type it is whether consistent with default link type;If so, being labeled as resource link is promoted Valid link address, and the testing result for promoting resource link is generated according to label result;If it is not, then utilizing terminal device Webview component carries out webview parsing to resource link is promoted, and the detection for promoting resource link is generated according to parsing result As a result;Each testing result for promoting resource link is sent to server, so that server is based on testing result and updates wait push Lists of links.By carrying out validation checking to popularization resource link on true terminal device in advance, and will examine accordingly It surveys result and is sent to server, so that server filters out valid link and determination based on each testing result for promoting resource link Lists of links to be pushed can be improved the accuracy in detection for promoting resource link validity, to guarantee subsequent to user in this way The validity of the popularization resource link of terminal push, avoids the occurrence of the case where invalid link is pushed to user terminal, it is ensured that use Family terminal can normally open link and show corresponding Webpage.
It should be noted that the detection device provided by the embodiments of the present application for promoting resource link is mentioned with the embodiment of the present application Confession popularization resource link detection method based on the same inventive concept, therefore the specific implementation of the embodiment may refer to it is aforementioned The implementation of the detection method of resource link is promoted, overlaps will not be repeated.
Further, method shown in corresponding above-mentioned Fig. 1 to Fig. 4, based on the same technical idea, the embodiment of the present application is also A kind of detection device for promoting resource link is provided, which is used to execute the detection method of above-mentioned popularization resource link, Fig. 6 is the structural schematic diagram of the detection device provided by the embodiments of the present application for promoting resource link.
As shown in fig. 6, bigger difference can be generated because configuration or performance are different by promoting the detection device of resource link, It may include one or more processor 601 and memory 602, can store one or one in memory 602 Application program or data stored above.Wherein, memory 602 can be of short duration storage or persistent storage.It is stored in memory 602 Application program may include one or more modules (diagram is not shown), each module may include to promoting resource chain Series of computation machine executable instruction in the detection device connect.Further, processor 601 can be set to and memory 602 communications execute the series of computation machine executable instruction in memory 602 on the detection device for promoting resource link.It pushes away The detection device of wide resource link can also include one or more power supplys 603, one or more are wired or wireless Network interface 604, one or more input/output interfaces 605, one or more keyboards 606 etc..
In a specific embodiment, the detection device for promoting resource link includes memory and one or one A above program, perhaps more than one program is stored in memory and one or more than one program can for one of them To include one or more modules, and each module may include to a series of in the detection device for promoting resource link Computer executable instructions, and be configured to execute this or more than one program by one or more than one processor Comprising for carrying out following computer executable instructions:
Obtain Object linking list to be detected, wherein the Object linking list includes: multiple popularization resource links;
For each popularization resource link, judge the popularization resource link link type whether with default links category Type is consistent;
If so, the popularization resource link is labeled as valid link address, and pushed away according to label result generation The testing result of wide resource link;If it is not, then using the terminal device webview component to the popularization resource link into Row webview parsing, and the testing result for promoting resource link is generated according to parsing result;Wherein, the testing result For determining the validity for promoting resource link;
Each testing result for promoting resource link is sent to server, so that the server is based on described Testing result updates lists of links to be pushed.
Optionally, computer executable instructions when executed, the webview component pair using the terminal device The popularization resource link carries out webview parsing, and generates the testing result for promoting resource link according to parsing result, Include:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
According to the parsing result for promoting resource link, whether the popularization resource link is deposited within a preset time for judgement It is redirecting;
If so, generating the testing result for promoting resource link according to result is redirected;
If it is not, the popularization resource link is then labeled as invalid link address, and pushed away according to label result generation The testing result of wide resource link.
Optionally, computer executable instructions are when executed, described to generate the popularization resource according to redirection result The testing result of link, comprising:
Judge whether the corresponding link type for redirecting link of the popularization resource link is consistent with default link type;
If so, by the popularization resource link labeled as redirection valid link, and according to label result generation Promote the testing result of resource link;
The popularization resource link is carried out if it is not, then executing the webview component using the terminal device Webview parsing, and the step of testing result for promoting resource link is generated according to parsing result.
Optionally, computer executable instructions are when executed, described to execute the webview group for utilizing the terminal device Part carries out webview parsing to the popularization resource link, and generates the detection for promoting resource link according to parsing result As a result the step of, comprising:
Whether judgement is greater than preset threshold for the redirection number for promoting resource link;
If redirecting number is not more than preset threshold, the webview component using the terminal device is executed to described It promotes resource link and carries out webview parsing, and generate the step of the testing result for promoting resource link according to parsing result Suddenly.
Optionally, computer executable instructions when executed, are directed to the redirection for promoting resource link in judgement Whether number is greater than after preset threshold, further includes:
If redirecting number is greater than preset threshold, the popularization resource link is labeled as invalid link address, and root The testing result for promoting resource link is generated according to label result.
Optionally, computer executable instructions when executed, the webview component pair using the terminal device The popularization resource link carries out webview parsing, and generates the testing result for promoting resource link according to parsing result, Include:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
According to the parsing result for promoting resource link, the popularization resource link after judging webview parsing is No is false links;
If so, the popularization resource link is labeled as invalid link address, and pushed away according to label result generation The testing result of wide resource link.
Optionally, computer executable instructions when executed, the webview component pair using the terminal device The popularization resource link carries out webview parsing, and generates the testing result for promoting resource link according to parsing result, Include:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
Recording needle is to the operation information in the webview resolving for promoting resource link, wherein the operation letter Breath includes: at least one of to redirect mark information, parse time-consuming information or redirect number;
According to the operation information for the popularization resource link record, the detection for promoting resource link is generated As a result.
Optionally, when executed, the popularization resource link includes: using push link to computer executable instructions; The method also includes:
The server judges whether the validation checking time interval of the application push link of existing application program is greater than Prefixed time interval threshold value, alternatively, judging that existing application program is operated with the presence or absence of version updating, alternatively, judging whether there is Newly-increased application program to be pushed;
If any judging result is yes, application push link or the newly-increased application by the existing application program The application push link of program is added to lists of links to be detected;
Whether the lists of links to be detected after judging addition meets preset condition;
If the determination result is YES, then the lists of links to be detected after addition is determined as Object linking list, and will The Object linking list is issued to the terminal device.
The detection device of popularization resource link in the embodiment of the present application, is applied to terminal device, to be detected by obtaining Object linking list, wherein Object linking list includes: multiple popularization resource links;For each popularization resource link, sentence Break the popularization resource link link type it is whether consistent with default link type;If so, being labeled as resource link is promoted Valid link address, and the testing result for promoting resource link is generated according to label result;If it is not, then utilizing terminal device Webview component carries out webview parsing to resource link is promoted, and the detection for promoting resource link is generated according to parsing result As a result;Each testing result for promoting resource link is sent to server, so that server is based on testing result and updates wait push Lists of links.By carrying out validation checking to popularization resource link on true terminal device in advance, and will examine accordingly It surveys result and is sent to server, so that server filters out valid link and determination based on each testing result for promoting resource link Lists of links to be pushed can be improved the accuracy in detection for promoting resource link validity, to guarantee subsequent to user in this way The validity of the popularization resource link of terminal push, avoids the occurrence of the case where invalid link is pushed to user terminal, it is ensured that use Family terminal can normally open link and show corresponding Webpage.
Preferably, the embodiment of the present application also provides a kind of detection device for promoting resource link, including processor 601, deposits Reservoir 602, is stored in the computer program that can be run on memory 602 and on processor 601, and the computer program is processed Device 601 realizes each process of the detection method embodiment of above-mentioned popularization resource link when executing, and can reach identical technology Effect, to avoid repeating, which is not described herein again.
Further, method shown in corresponding above-mentioned Fig. 1 to Fig. 4, based on the same technical idea, the embodiment of the present application is also A kind of computer readable storage medium is provided, is stored with computer program on computer readable storage medium, the computer journey Each process of the detection method embodiment of above-mentioned popularization resource link is realized when sequence is executed by processor, and can be reached identical Technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disk Or CD etc..
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (14)

1. a kind of detection method for promoting resource link, which is characterized in that be applied to terminal device, which comprises
Obtain Object linking list to be detected, wherein the Object linking list includes: multiple popularization resource links;
For each popularization resource link, judge the popularization resource link link type whether with default link type one It causes;
If so, the popularization resource link is labeled as valid link address, and the popularization is generated according to label result and is provided The testing result of linking sources;If it is not, then being carried out using the webview component of the terminal device to the popularization resource link Webview parsing, and the testing result for promoting resource link is generated according to parsing result;Wherein, the testing result is used In the validity for determining the popularization resource link;
Each testing result for promoting resource link is sent to server, so that the server is based on the detection As a result lists of links to be pushed is updated.
2. the method according to claim 1, wherein the webview component pair using the terminal device The popularization resource link carries out webview parsing, and generates the testing result for promoting resource link according to parsing result, Include:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
According to the parsing result for promoting resource link, the popularization resource link whether there is weight within a preset time for judgement Orientation;
If so, generating the testing result for promoting resource link according to result is redirected;
If it is not, the popularization resource link is then labeled as invalid link address, and the popularization is generated according to label result and is provided The testing result of linking sources.
3. according to the method described in claim 2, it is characterized in that, described generate the popularization resource chain according to redirection result The testing result connect, comprising:
Judge whether the corresponding link type for redirecting link of the popularization resource link is consistent with default link type;
If so, by the popularization resource link labeled as redirection valid link, and the popularization is generated according to label result The testing result of resource link;
Webview is carried out to the popularization resource link if it is not, then executing the webview component using the terminal device Parsing, and the step of testing result for promoting resource link is generated according to parsing result.
4. according to the method described in claim 3, it is characterized in that, executing the webview group using the terminal device Part carries out webview parsing to the popularization resource link, and generates the detection for promoting resource link according to parsing result As a result the step of, comprising:
Whether judgement is greater than preset threshold for the redirection number for promoting resource link;
If redirecting number is not more than preset threshold, the webview component using the terminal device is executed to described It promotes resource link and carries out webview parsing, and generate the step of the testing result for promoting resource link according to parsing result Suddenly.
5. according to the method described in claim 4, it is characterized in that, in judgement for the redirection for promoting resource link time Whether number is greater than after preset threshold, further includes:
If redirecting number is greater than preset threshold, the popularization resource link is labeled as invalid link address, and according to mark Note result generates the testing result for promoting resource link.
6. the method according to claim 1, wherein the webview component pair using the terminal device The popularization resource link carries out webview parsing, and generates the testing result for promoting resource link according to parsing result, Include:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
According to it is described promote resource link parsing result, judge webview parsing after the popularization resource link whether be False links;
If so, the popularization resource link is labeled as invalid link address, and the popularization is generated according to label result and is provided The testing result of linking sources.
7. method according to any one of claims 1 to 6, which is characterized in that described using the terminal device Webview component carries out webview parsing to the popularization resource link, and generates the popularization resource chain according to parsing result The testing result connect, comprising:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
Recording needle is to the operation information in the webview resolving for promoting resource link, wherein the operation information packet At least one of it includes: redirect mark information, parse time-consuming information or redirect number;
According to the operation information for the popularization resource link record, the detection knot for promoting resource link is generated Fruit.
8. method according to any one of claims 1 to 6, which is characterized in that the popularization resource link includes: to apply to push away Send link;The method also includes:
It is default that the server judges whether the validation checking time interval of the application push link of existing application program is greater than Time interval threshold value, alternatively, judging that existing application program is operated with the presence or absence of version updating, alternatively, judging whether there is wait push away The newly-increased application program sent;
If any judging result is yes, application push link or the newly-increased application program by the existing application program Application push link be added to lists of links to be detected;
Whether the lists of links to be detected after judging addition meets preset condition;
If the determination result is YES, then the lists of links to be detected after addition is determined as Object linking list, and will be described Object linking list is issued to the terminal device.
9. a kind of detection device for promoting resource link, which is characterized in that be set to terminal device, described device includes:
Lists of links obtains module, for obtaining Object linking list to be detected, wherein the Object linking list includes: Multiple popularization resource links;
Link type judgment module judges the links category of the popularization resource link for being directed to each popularization resource link Whether type is consistent with default link type;
First testing result generation module, for if the determination result is YES, then the popularization resource link being labeled as active chain It is grounded location, and the testing result for promoting resource link is generated according to label result;
Second testing result generation module, if for judging result be it is no, utilize the terminal device webview component pair The popularization resource link carries out webview parsing, and generates the testing result for promoting resource link according to parsing result;
Testing result sending module, for each testing result for promoting resource link to be sent to server, so that The server is based on the testing result and updates lists of links to be pushed, wherein the testing result described in determination for pushing away The validity of wide resource link.
10. device according to claim 9, which is characterized in that the second testing result generation module is specifically used for:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
According to the parsing result for promoting resource link, the popularization resource link whether there is weight within a preset time for judgement Orientation;
If so, generating the testing result for promoting resource link according to result is redirected;
If it is not, the popularization resource link is then labeled as invalid link address, and the popularization is generated according to label result and is provided The testing result of linking sources.
11. device according to claim 10, which is characterized in that the second testing result generation module further has Body is used for:
Judge whether the corresponding link type for redirecting link of the popularization resource link is consistent with default link type;
If so, by the popularization resource link labeled as redirection valid link, and the popularization is generated according to label result The testing result of resource link;
Webview is carried out to the popularization resource link if it is not, then executing the webview component using the terminal device Parsing, and the step of testing result for promoting resource link is generated according to parsing result.
12. device according to claim 11, which is characterized in that the second testing result generation module, further It is specifically used for:
Whether judgement is greater than preset threshold for the redirection number for promoting resource link;
If redirecting number is not more than preset threshold, the webview component using the terminal device is executed to the popularization Resource link carries out webview parsing, and the step of generating the testing result for promoting resource link according to parsing result.
13. device according to claim 12, which is characterized in that the second testing result generation module, also more into one Step is specifically used for:
If redirecting number is greater than preset threshold, the popularization resource link is labeled as invalid link address, and according to mark Note result generates the testing result for promoting resource link.
14. device according to claim 9, which is characterized in that the second testing result generation module, it is also specific to use In:
Webview parsing is carried out to the popularization resource link using the webview component of the terminal device;
According to it is described promote resource link parsing result, judge webview parsing after the popularization resource link whether be False links;
If so, the popularization resource link is labeled as invalid link address, and the popularization is generated according to label result and is provided The testing result of linking sources.
CN201910100389.XA 2019-01-31 2019-01-31 Detection method and device for promotion resource link Active CN109816453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910100389.XA CN109816453B (en) 2019-01-31 2019-01-31 Detection method and device for promotion resource link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910100389.XA CN109816453B (en) 2019-01-31 2019-01-31 Detection method and device for promotion resource link

Publications (2)

Publication Number Publication Date
CN109816453A true CN109816453A (en) 2019-05-28
CN109816453B CN109816453B (en) 2021-04-16

Family

ID=66606298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910100389.XA Active CN109816453B (en) 2019-01-31 2019-01-31 Detection method and device for promotion resource link

Country Status (1)

Country Link
CN (1) CN109816453B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914531A (en) * 2020-06-20 2020-11-10 北京海金格医药科技股份有限公司 Hyperlink state determination method and device, electronic equipment and readable storage medium
CN112818002A (en) * 2021-01-10 2021-05-18 温州市特种设备检测科学研究院(温州市特种设备应急处置中心) Detection data management method and device based on anti-falling safety device performance
CN114598623A (en) * 2022-03-04 2022-06-07 北京沃东天骏信息技术有限公司 Test task management method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450694A (en) * 2014-08-22 2016-03-30 阿里巴巴集团控股有限公司 Redirecting the service request to destination address;
CN105719162A (en) * 2016-01-20 2016-06-29 北京京东尚科信息技术有限公司 Method and device of monitoring validity of promotion links
CN106484720A (en) * 2015-08-28 2017-03-08 北京奇虎科技有限公司 The method and apparatus that the effectiveness of URL is promoted in a kind of detection
US9781073B1 (en) * 2016-10-19 2017-10-03 International Business Machines Corporation Redirecting invalid URL to comparable object with sufficient permissions
CN108664493A (en) * 2017-03-29 2018-10-16 北京京东尚科信息技术有限公司 Count the whether effective method, apparatus of URL, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450694A (en) * 2014-08-22 2016-03-30 阿里巴巴集团控股有限公司 Redirecting the service request to destination address;
CN106484720A (en) * 2015-08-28 2017-03-08 北京奇虎科技有限公司 The method and apparatus that the effectiveness of URL is promoted in a kind of detection
CN105719162A (en) * 2016-01-20 2016-06-29 北京京东尚科信息技术有限公司 Method and device of monitoring validity of promotion links
US9781073B1 (en) * 2016-10-19 2017-10-03 International Business Machines Corporation Redirecting invalid URL to comparable object with sufficient permissions
CN108664493A (en) * 2017-03-29 2018-10-16 北京京东尚科信息技术有限公司 Count the whether effective method, apparatus of URL, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MICHAEL LEE: "WebView加载HTTPS页面以及正确加载淘宝客链接", 《HTTPS://LIPENG1667.GITHUB.IO/2017/01/03/ANDROID-WEBVIEW-HTTPS-AND-TAOBAOKE/》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914531A (en) * 2020-06-20 2020-11-10 北京海金格医药科技股份有限公司 Hyperlink state determination method and device, electronic equipment and readable storage medium
CN112818002A (en) * 2021-01-10 2021-05-18 温州市特种设备检测科学研究院(温州市特种设备应急处置中心) Detection data management method and device based on anti-falling safety device performance
CN112818002B (en) * 2021-01-10 2022-12-27 温州市特种设备检测科学研究院(温州市特种设备应急处置中心) Detection data management method and device based on anti-falling safety device performance
CN114598623A (en) * 2022-03-04 2022-06-07 北京沃东天骏信息技术有限公司 Test task management method and device, electronic equipment and storage medium
CN114598623B (en) * 2022-03-04 2024-04-05 北京沃东天骏信息技术有限公司 Test task management method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109816453B (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN111737127B (en) Method and apparatus for testing map services
CN106528432B (en) The construction method and device of test scene data bury a test method
CN102597993B (en) Managing application state information by means of uniform resource identifier (URI)
CN110221872A (en) Method for page jump, device, electronic equipment and storage medium
CN108170612B (en) Automatic testing method and device and server
CN106897215A (en) A kind of method gathered based on WebView webpages loading performance and user behavior flow data
CN107609135B (en) Page element determining method and device, and user behavior path determining method and device
CN103150513B (en) The method of the implantation information in interception application program and device
CN110944048B (en) Service logic configuration method and device
US20110185016A1 (en) Enhanced website tracking system and mehod
CN108255993A (en) Extract method, apparatus, electronic equipment and the storage medium of service fields
CN107885777A (en) A kind of control method and system of the crawl web data based on collaborative reptile
CN109816453A (en) A kind of detection method and device for promoting resource link
CN105512044B (en) Update method and system for the library of object of keyword driving test
CN108319662A (en) Page processing method, device, electronic equipment and readable storage medium storing program for executing
CN107145556B (en) Universal distributed acquisition system
CN103631828A (en) Method and device for determining access path and method and system for determining page churn rate
CN106469044A (en) The method and apparatus realizing page jump
CN104899016A (en) Call stack relationship obtaining method and call stack relationship obtaining device
US9357366B2 (en) Auditing of mobile applications
CN110334299A (en) A kind of pop-up methods of exhibiting, device and electronic equipment monitored based on address field
CN106060004A (en) Database access method and database agent node
CN103414693A (en) Dotting method and dotting device
US10079738B1 (en) Using a network crawler to test objects of a network document
JP2017516202A (en) Promotion status data monitoring method, apparatus, device, and non-executable computer 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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211111

Address after: 450046 No. 401-a03, 4th floor, zone a, creative island building, No. 6, Zhongdao East Road, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: Zhengzhou APAs digital cloud Information Technology Co., Ltd

Address before: 519085 e301-27, building 1, No. 1, hagongda Road, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: Zhuhai Tianyan Technology Co., Ltd

TR01 Transfer of patent right