CN110020264B - Method and device for determining invalid hyperlinks - Google Patents

Method and device for determining invalid hyperlinks Download PDF

Info

Publication number
CN110020264B
CN110020264B CN201811634095.7A CN201811634095A CN110020264B CN 110020264 B CN110020264 B CN 110020264B CN 201811634095 A CN201811634095 A CN 201811634095A CN 110020264 B CN110020264 B CN 110020264B
Authority
CN
China
Prior art keywords
hyperlink
user
invalid
type
timer
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.)
Active
Application number
CN201811634095.7A
Other languages
Chinese (zh)
Other versions
CN110020264A (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.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201811634095.7A priority Critical patent/CN110020264B/en
Publication of CN110020264A publication Critical patent/CN110020264A/en
Application granted granted Critical
Publication of CN110020264B publication Critical patent/CN110020264B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links

Abstract

A method and apparatus for determining invalid hyperlinks is disclosed. A method of determining invalid hyperlinks, the method comprising: determining the type of the hyperlink selected by the user; generating a timer corresponding to the type of the hyperlink selected by the user according to the corresponding relation between the preset hyperlink type and the timer, wherein the hyperlink type corresponds to the timer one by one; monitoring whether the current page jumps to the target object of the hyperlink in a time interval appointed by the timer; if not, determining that the hyperlink selected by the user is an invalid hyperlink.

Description

Method and device for determining invalid hyperlinks
Technical Field
The embodiment of the specification relates to the technical field of Internet, in particular to a method and a device for determining invalid hyperlinks.
Background
Hyperlinks are essentially part of a web page, an element that allows a user to connect to other web pages or sites, and refers to a connection from one web page to a target object, which may be another web page, a different location on the same web page, a picture, an email address, a file, or even an application. The user can jump to the target object of the hyperlink automatically by clicking the hyperlink in the webpage, and the target object is displayed on the browser and opened or operated according to the type of the target object.
At present, a plurality of hyperlinks exist in a webpage, and some hyperlinks may have problems, so that a user clicking the hyperlinks may not react all the time (always in a waiting state), and user experience is affected. There are various reasons for the problem of hyperlinks, such as the reason for the hyperlink itself (which is an illegal hyperlink), the reason for the user network (the reason for the user network interruption), the reason for the target object of the hyperlink (the reason for the target object of the hyperlink cannot be accessed), and the invalid hyperlink (the invalid hyperlink for short) exists in the existing hyperlink due to various reasons, so that a technical scheme for determining the invalid hyperlink is urgently needed at present, so that corresponding processing can be performed on the invalid hyperlink subsequently, and the user experience is improved.
Disclosure of Invention
Aiming at the technical problems, the embodiment of the specification provides a method and a device for determining invalid hyperlinks, wherein the technical scheme is as follows:
a method of determining invalid hyperlinks, the method comprising:
determining the type of the hyperlink selected by the user;
generating a timer corresponding to the type of the hyperlink selected by the user according to the corresponding relation between the preset hyperlink type and the timer, wherein the hyperlink type corresponds to the timer one by one;
monitoring whether the current page jumps to the target object of the hyperlink in a time interval appointed by the timer;
if not, determining that the hyperlink selected by the user is an invalid hyperlink.
An apparatus for determining invalid hyperlinks, the apparatus comprising:
the type determining module is used for determining the type of the hyperlink selected by the user;
the timer generation module is used for generating a timer corresponding to the type to which the hyperlink selected by the user belongs according to the corresponding relation between the preset hyperlink type and the timer, wherein the hyperlink type corresponds to the timer one by one;
the monitoring module is used for monitoring whether the current page jumps to the target object of the hyperlink in the time interval appointed by the timer;
and the invalid hyperlink determining module is used for determining that the hyperlink selected by the user is an invalid hyperlink if not.
According to the technical scheme provided by the embodiment of the specification, the type of the hyperlink selected by the user is determined, the timer corresponding to the type of the hyperlink selected by the user is generated, whether the current page jumps to the target object of the hyperlink is monitored within the time interval specified by the timer, and if not, the hyperlink selected by the user can be determined to be the invalid hyperlink. Therefore, the purpose of determining the invalid hyperlink can be achieved, so that corresponding processing can be carried out on the invalid hyperlink later, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the embodiments of the disclosure.
Further, not all of the effects described above need be achieved in any of the embodiments of the present specification.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the embodiments of the present description, and other drawings may be obtained according to these drawings for a person having ordinary skill in the art.
FIG. 1 is a schematic diagram of an exemplary application scenario illustrated in an embodiment of the present description;
FIG. 2 is a flow chart of a method of determining invalid hyperlinks in accordance with an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of the configuration of the invalid hyperlink determining apparatus of the embodiment of the present specification;
fig. 4 is a schematic structural view of an apparatus for configuring the device of the embodiment of the present specification.
Detailed Description
As shown in fig. 1, a web page exists on a mobile terminal (mobile phone), the current web page includes a plurality of hyperlinks, a user can automatically jump to a target object of the hyperlinks by clicking a certain hyperlink in the web page, the target object is displayed on a browser, and the target object is opened or operated according to the type of the target object.
However, in practical situations, although there are some hyperlinks in the web page, there are some hyperlinks with problems, so that the user may not respond all the time by clicking the hyperlink, and for the user, the reason for the problem of the hyperlink may not be known at the time, and only waiting or reselecting other hyperlinks can be selected, so that the user experience is affected. For various reasons, there is an invalid hyperlink in the existing hyperlinks, so a technical scheme capable of determining the invalid hyperlink is needed urgently so as to make corresponding processing on the invalid hyperlink subsequently and improve user experience.
In view of the above technical problems, the embodiments of the present disclosure provide a technical solution, by determining a type to which a hyperlink selected by a user belongs, generating a timer corresponding to the type to which the hyperlink selected by the user belongs, monitoring whether to jump from a current page to a target object of the hyperlink within a time interval specified by the timer, and if not, determining that the hyperlink selected by the user is an invalid hyperlink. Therefore, the purpose of determining the invalid hyperlink can be achieved, so that corresponding processing can be carried out on the invalid hyperlink later, and the user experience is improved.
Specifically, the technical scheme provided in the embodiment of the present specification is as follows:
determining the type of the hyperlink selected by the user; generating a timer corresponding to the type of the hyperlink selected by the user according to the corresponding relation between the preset hyperlink type and the timer, wherein the hyperlink type corresponds to the timer one by one; monitoring whether the current page jumps to the target object of the hyperlink in a time interval appointed by the timer; if not, determining that the hyperlink selected by the user is an invalid hyperlink.
In order for those skilled in the art to better understand the technical solutions in the embodiments of the present specification, the technical solutions in the embodiments of the present specification will be described in detail below with reference to the drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification shall fall within the scope of protection.
Referring to fig. 2, a flowchart of an implementation of a method for determining an invalid hyperlink according to an embodiment of the present disclosure may specifically include the following steps:
s201, determining the type of the hyperlink selected by the user;
it is first necessary to determine the hyperlink selected by the user. In this specification, as shown in fig. 1, when a user clicks on any one of the hyperlinks, it is determined that the hyperlink selected by the user is hyperlink 1, for example, when the user clicks on the operation trigger of hyperlink 1.
After determining the user-selected hyperlink, the type of hyperlink to which the user-selected hyperlink belongs is determined. In this specification, different hyperlink types may be obtained in advance according to different divisions of a hyperlink connection path. In general, hyperlinks can be classified into the following types according to their connection paths: the method comprises the steps of internally linking, externally linking and anchor linking, so that the hyperlinks can be divided into different types of hyperlinks in advance according to the dividing rule, 3 types of hyperlinks (such as an internal type, an external type and an anchor type) can be obtained, the types of hyperlinks (such as an internal type, an external type and an anchor type) to which the hyperlinks selected by the user belong can be determined according to the difference of connection paths of the hyperlinks selected by the user, the hyperlinks can be of an internal type, an external type and an anchor type, the hyperlinks can be of an external type and an anchor type, and the like, and the names of the types of the hyperlinks divided in the specification can be arbitrarily named, the types of the hyperlinks can be of an A type and a B type and the like, and the specification is not limited.
In addition, different hyperlink types can be obtained in advance according to different divisions of the target object of the hyperlink. Generally, depending on the target object of the hyperlink (this target object may be another web page, or may be a different location on the same web page, or may be a picture, an email address, a file, or even an application), the hyperlink may be classified into the following types: the method comprises the steps of dividing the hyperlinks into different types of hyperlinks according to the dividing rules, and obtaining a plurality of types of hyperlinks (such as text type, image type, email type, anchor type, multimedia type, null type and the like), so that the type of the hyperlink selected by the user can be determined according to the difference of target objects of the hyperlink selected by the user, the type of the hyperlink selected by the user can be text type, the type of the hyperlink can be image type, the type of the anchor point and the like, and the names of the types of the hyperlinks divided in the specification can be named arbitrarily, or A type, B type and the like, and the specification is not limited.
S202, generating a timer corresponding to the type of the hyperlink selected by the user according to the corresponding relation between the preset hyperlink type and the timer, wherein the hyperlink type corresponds to the timer one by one;
for the hyperlink types determined in S201, according to the correspondence between the preset hyperlink types and the timers, a Timer (Timer) corresponding to the determined hyperlink types is generated, the generated Timer designates an effective time interval, and different hyperlink types can correspond to different timers, so that different timers can be generated, which means that the effective time interval designated by the Timer is different according to the different hyperlink types.
For example, the determined hyperlink type is an internal type, according to the corresponding relation between the preset hyperlink type and the Timer, a Timer1 corresponding to the internal type can be generated, the time interval designated by the Timer1 is 1S, the determined hyperlink type is an external type, according to the corresponding relation between the preset hyperlink type and the Timer, a Timer2 corresponding to the external type can be generated, the time interval designated by the Timer2 is 1.5S, the determined hyperlink type is an anchor point type, according to the corresponding relation between the preset hyperlink type and the Timer, a Timer3 corresponding to the anchor point type can be generated, and the time interval designated by the Timer3 is 2S.
For example, the determined hyperlink type is a text type, according to the corresponding relation between the preset hyperlink type and the Timer, a Timer-A corresponding to the text type can be generated, the time interval designated by the Timer-A is 1S, the determined hyperlink type is an image type, according to the corresponding relation between the preset hyperlink type and the Timer, a Timer-B corresponding to the image type can be generated, the time interval designated by the Timer-B is 1.5S, the determined hyperlink type is an e-mail type, according to the corresponding relation between the preset hyperlink type and the Timer, a Timer-C corresponding to the e-mail type can be generated, and the time interval designated by the Timer-C is 2S.
The corresponding relation between the hyperlink types and the timers is preset, one hyperlink type corresponds to one timer, and as mentioned above, 3 hyperlink types are obtained in advance according to different divisions of the hyperlink connection paths: the method comprises the steps of obtaining a plurality of hyperlink types in advance according to different divisions of target objects of hyperlinks, wherein each hyperlink type corresponds to a timer: text type, image type, email type, anchor type, multimedia type, null type, etc., each hyperlink type corresponding to a timer. The corresponding relation between the hyperlink type and the timer can be obtained: the hyperlink types are in one-to-one correspondence with the timers.
S203, monitoring whether the current page jumps to the target object of the hyperlink in a time interval appointed by the timer;
for the Timer generated in S202, in the time interval specified by the Timer, whether the current page jumps to the target object of the hyperlink is monitored, where the target object may be another web page, or may be a different location on the same web page, or may be a picture, an email address, a file, or even an application program. For example, for Timer-B, it is monitored whether to jump from the current page to the target object (target image) of the hyperlink within 2S specified by the Timer-B.
If the current page jumps to the target object of the hyperlink, displaying the target object corresponding to the hyperlink;
and in the effective time interval designated by the Timer, jumping from the current page to the target object of the hyperlink, and displaying the target object corresponding to the hyperlink if the user can normally access the target object. For example, for Timer-B, within 2S specified by the Timer-B, the current page jumps to the target object (target image) of the hyperlink, and the target object (target image) of the hyperlink is displayed.
S204, if not, determining that the hyperlink selected by the user is an invalid hyperlink.
And in the effective time interval designated by the Timer, the user cannot access the target object of the hyperlink without jumping to the hyperlink from the current page, and the hyperlink selected by the user is indicated to be an invalid hyperlink, so that the hyperlink selected by the user can be determined to be the invalid hyperlink. For example, for Timer-B, if the current page does not jump to the target object of the hyperlink within 2S specified by the Timer-B, then the hyperlink 2 corresponding to the Timer-B may be determined to be an invalid hyperlink.
Based on the above scheme, as a preferred embodiment, in the case that the hyperlink selected by the user is determined to be an invalid hyperlink, a new hyperlink may be recommended according to a preset rule, and specifically, the following implementation manner may be adopted to recommend the new hyperlink:
in the hyperlink history selection record, at least one new hyperlink with the same hyperlink type as the invalid hyperlink belongs to is recommended randomly. Wherein the hyperlink history selection record records the hyperlinks which are selected by the user historically, and at least one new hyperlink which has the same hyperlink type as the invalid hyperlink belongs to can be randomly recommended. For example, in the case where it is determined that the hyperlink 1 selected by the user is an invalid hyperlink, the type to which the invalid hyperlink belongs is an internal type, 3 new hyperlinks are randomly recommended in the hyperlink history selection record, and the types to which the 3 new hyperlinks belong are internal types.
At least one new hyperlink associated with the target object of the invalid hyperlink is randomly recommended in the hyperlink history selection record. The correlation refers to the correlation of the type of the target object and also refers to the correlation of the content of the target object. For example, in the case where it is determined that the hyperlink 1 selected by the user is an invalid hyperlink, the target object of the invalid hyperlink is one image, 3 new hyperlinks are randomly recommended in the hyperlink history selection record, and the target objects (images) of the 3 new hyperlinks are related to the target object (image) of the invalid hyperlink. For example, in the case where it is determined that the hyperlink 2 selected by the user is an invalid hyperlink, the target object of the invalid hyperlink is a text including a key field (e.g., hyperlink), 3 new hyperlinks are randomly recommended in the hyperlink history selection record, and the target objects of the 3 hyperlinks (key fields in text) are related to the target object of the invalid hyperlink (key fields in text) (e.g., all introduction hyperlinks).
Based on the above scheme, as a preferred embodiment, in the case that it is determined that the hyperlink selected by the user is an invalid hyperlink, whether the invalid hyperlink is an illegal hyperlink may be determined according to a preset hyperlink splicing rule, if yes, the user may be prompted that the hyperlink selected by the user is an illegal hyperlink, otherwise, the user is prompted that a problem occurs in the network, or the target object of the hyperlink selected by the user is prompted to be inaccessible. In general, a hyperlink includes several fixed elements, each element has a respective attribute, and some elements at designated positions are generally the same and represent a certain meaning, where in the case that it is determined that a hyperlink selected by a user is an invalid hyperlink, whether the number of elements in the invalid hyperlink meets a preset requirement can be determined, or whether the element at the head of the invalid hyperlink is a preset element (e.g., https:///, WWW) can be determined, so as to further determine whether the invalid hyperlink is an illegal hyperlink.
Based on the above scheme, as a preferred embodiment, in the case that the hyperlink selected by the user is determined to be an invalid hyperlink, the user may be prompted to select the hyperlink as an invalid hyperlink.
Through the description of the technical scheme provided by the embodiment of the specification, the timer corresponding to the type of the hyperlink selected by the user is generated by determining the type of the hyperlink selected by the user, whether the current page jumps to the target object of the hyperlink is monitored within the time interval specified by the timer, and if not, the hyperlink selected by the user can be determined to be an invalid hyperlink. In this way, through the technical scheme provided by the specification, the purpose of determining the invalid hyperlink can be achieved, so that corresponding processing can be performed on the invalid hyperlink later, for example, a new hyperlink is recommended, a user is prompted to select the hyperlink as the invalid hyperlink, and user experience is improved.
With respect to the above method embodiment, the embodiment of the present disclosure further provides a device for determining an invalid hyperlink, as shown in fig. 3, where the device may include: a type determination module 310, a timer generation module 320, a monitoring module 330, an invalid hyperlink determination module 340.
A type determining module 310, configured to determine a type to which the hyperlink selected by the user belongs;
the timer generation module 320 is configured to generate a timer corresponding to the type to which the hyperlink selected by the user belongs according to a preset correspondence between the hyperlink type and the timer, where the hyperlink type corresponds to the timer one by one;
a monitoring module 330, configured to monitor whether the current page jumps to the target object of the hyperlink within a time interval specified by the timer;
an invalid hyperlink determining module 340 for determining that the hyperlink selected by the user is an invalid hyperlink if not.
In a specific embodiment of the present specification, the hyperlink types are obtained in advance according to different divisions of the hyperlink connection paths.
In a specific embodiment of the present specification, the hyperlink type is obtained in advance according to different divisions of the target object of the hyperlink.
In one embodiment of the present specification, the apparatus further comprises:
the hyperlink recommending module 350 is configured to recommend a new hyperlink according to a preset rule if it is determined that the hyperlink selected by the user is an invalid hyperlink.
In one embodiment of the present disclosure, the hyperlink recommendation module 350 is specifically configured to:
in the hyperlink history selection record, at least one new hyperlink with the same hyperlink type as the invalid hyperlink belongs to is recommended randomly.
In one embodiment of the present disclosure, the hyperlink recommendation module 350 is specifically configured to:
at least one new hyperlink associated with the target object of the invalid hyperlink is randomly recommended in the hyperlink history selection record.
In one embodiment of the present specification, the apparatus further comprises:
a judging module 360, configured to judge whether the invalid hyperlink is an illegal hyperlink according to a preset hyperlink splicing rule if it is determined that the hyperlink selected by the user is the invalid hyperlink;
if yes, prompting the user that the selected hyperlink is an illegal hyperlink, otherwise prompting the user that the network has a problem, or prompting the user that the target object of the selected hyperlink cannot be accessed.
In one embodiment of the present specification, the apparatus further comprises:
the prompting module 380 is configured to prompt the user that the hyperlink selected by the user is an invalid hyperlink if it is determined that the hyperlink selected by the user is an invalid hyperlink.
The implementation process of the functions and roles of each module in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
Through the description of the technical scheme provided by the embodiment of the specification, the timer corresponding to the type of the hyperlink selected by the user is generated by determining the type of the hyperlink selected by the user, whether the current page jumps to the target object of the hyperlink is monitored within the time interval specified by the timer, and if not, the hyperlink selected by the user can be determined to be an invalid hyperlink. In this way, through the technical scheme provided by the specification, the purpose of determining the invalid hyperlink can be achieved, so that corresponding processing can be performed on the invalid hyperlink later, for example, a new hyperlink is recommended, a user is prompted to select the hyperlink as the invalid hyperlink, and user experience is improved.
Embodiments of the present disclosure also provide a computer device, as shown in fig. 4, which may include: processor 410, memory 420, input/output interface 430, communication interface 440, and bus 450. Wherein processor 410, memory 420, input/output interface 430, and communication interface 440 enable communication connections within the device between each other via bus 450.
The processor 410 may be implemented by a general-purpose CPU (Central Processing Unit ), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, etc. for executing relevant programs to implement the technical solutions provided in the embodiments of the present disclosure.
The Memory 420 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory ), static storage device, dynamic storage device, or the like. Memory 420 may store an operating system and other application programs, and when the technical solutions provided by the embodiments of the present specification are implemented in software or firmware, the relevant program codes are stored in memory 420 and invoked for execution by processor 410.
The input/output interface 430 is used to connect with an input/output module to realize information input and output. The input/output module may be configured as a component in a device (not shown) or may be external to the device to provide corresponding functionality. Wherein the input devices may include a keyboard, mouse, touch screen, microphone, various types of sensors, etc., and the output devices may include a display, speaker, vibrator, indicator lights, etc.
The communication interface 440 is used to connect communication modules (not shown) to enable communication interactions of the device with other devices. The communication module may implement communication through a wired manner (such as USB, network cable, etc.), or may implement communication through a wireless manner (such as mobile network, WIFI, bluetooth, etc.).
Bus 450 includes a path to transfer information between components of the device (e.g., processor 410, memory 420, input/output interface 430, and communication interface 440).
It should be noted that although the above device only shows the processor 410, the memory 420, the input/output interface 430, the communication interface 440, and the bus 450, in the implementation, the device may further include other components necessary to achieve normal operation. Furthermore, it will be understood by those skilled in the art that the above-described apparatus may include only the components necessary to implement the embodiments of the present description, and not all the components shown in the drawings.
The present embodiments also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the foregoing method of determining invalid hyperlinks. The method at least comprises the following steps:
a method of determining invalid hyperlinks, the method comprising:
determining the type of the hyperlink selected by the user;
generating a timer corresponding to the type of the hyperlink selected by the user according to the corresponding relation between the preset hyperlink type and the timer, wherein the hyperlink type corresponds to the timer one by one;
monitoring whether the current page jumps to the target object of the hyperlink in a time interval appointed by the timer;
if not, determining that the hyperlink selected by the user is an invalid hyperlink.
Computer-readable media include both permanent and non-permanent, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
From the foregoing description of embodiments, it will be apparent to those skilled in the art that the present embodiments may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions of the embodiments of the present specification may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present specification.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points. The apparatus embodiments described above are merely illustrative, in which the modules illustrated as separate components may or may not be physically separate, and the functions of the modules may be implemented in the same piece or pieces of software and/or hardware when implementing the embodiments of the present disclosure. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing is merely a specific implementation of the embodiments of this disclosure, and it should be noted that, for a person skilled in the art, several improvements and modifications may be made without departing from the principles of the embodiments of this disclosure, and these improvements and modifications should also be considered as protective scope of the embodiments of this disclosure.

Claims (17)

1. A method of determining invalid hyperlinks, the method comprising:
determining the type of the hyperlink selected by the user;
generating a timer corresponding to the type of the hyperlink selected by the user according to the corresponding relation between the preset hyperlink type and the timer, wherein the hyperlink type corresponds to the timer one by one;
monitoring whether the current page jumps to the target object of the hyperlink in a time interval appointed by the timer;
if not, determining that the hyperlink selected by the user is an invalid hyperlink.
2. The method of claim 1, wherein the hyperlink types are obtained in advance according to different divisions of a hyperlink connection path.
3. The method of claim 1, wherein the hyperlink types are obtained in advance according to different divisions of target objects of hyperlinks.
4. A method according to claim 2 or 3, the method further comprising:
and recommending a new hyperlink according to a preset rule under the condition that the hyperlink selected by the user is determined to be an invalid hyperlink.
5. The method of claim 4, the recommending new hyperlinks according to preset rules, comprising:
in the hyperlink history selection record, at least one new hyperlink with the same hyperlink type as the invalid hyperlink belongs to is recommended randomly.
6. The method of claim 4, the recommending new hyperlinks according to preset rules, comprising:
at least one new hyperlink associated with the target object of the invalid hyperlink is randomly recommended in the hyperlink history selection record.
7. A method according to any one of claims 1 to 3, further comprising:
under the condition that the hyperlink selected by the user is determined to be an invalid hyperlink, judging whether the invalid hyperlink is an illegal hyperlink or not according to a preset hyperlink splicing rule;
if yes, prompting the user that the selected hyperlink is an illegal hyperlink, otherwise prompting the user that the network has a problem, or prompting the user that the target object of the selected hyperlink cannot be accessed.
8. A method according to any one of claims 1 to 3, further comprising:
in the event that the user selected hyperlink is determined to be an invalid hyperlink, the user selected hyperlink is prompted to be an invalid hyperlink.
9. An apparatus for determining invalid hyperlinks, the apparatus comprising:
the type determining module is used for determining the type of the hyperlink selected by the user;
the timer generation module is used for generating a timer corresponding to the type to which the hyperlink selected by the user belongs according to the corresponding relation between the preset hyperlink type and the timer, wherein the hyperlink type corresponds to the timer one by one;
the monitoring module is used for monitoring whether the current page jumps to the target object of the hyperlink in the time interval appointed by the timer;
and the invalid hyperlink determining module is used for determining that the hyperlink selected by the user is an invalid hyperlink if not.
10. The apparatus of claim 9, the hyperlink types being derived in advance from different divisions of a hyperlink connection path.
11. The apparatus of claim 9, the hyperlink types being derived in advance from different divisions of a target object of a hyperlink.
12. The apparatus according to claim 10 or 11, the apparatus further comprising:
and the hyperlink recommending module is used for recommending new hyperlinks according to preset rules under the condition that the hyperlinks selected by the user are invalid hyperlinks.
13. The apparatus of claim 12, the hyperlink recommendation module is specifically configured to:
in the hyperlink history selection record, at least one new hyperlink with the same hyperlink type as the invalid hyperlink belongs to is recommended randomly.
14. The apparatus of claim 12, the hyperlink recommendation module is specifically configured to:
at least one new hyperlink associated with the target object of the invalid hyperlink is randomly recommended in the hyperlink history selection record.
15. The apparatus according to any one of claims 9 to 11, further comprising:
the judging module is used for judging whether the invalid hyperlink is an illegal hyperlink according to a preset hyperlink splicing rule under the condition that the hyperlink selected by the user is determined to be the invalid hyperlink;
if yes, prompting the user that the selected hyperlink is an illegal hyperlink, otherwise prompting the user that the network has a problem, or prompting the user that the target object of the selected hyperlink cannot be accessed.
16. The apparatus according to any one of claims 9 to 11, further comprising:
and the prompting module is used for prompting the user that the selected hyperlink is an invalid hyperlink under the condition that the hyperlink selected by the user is determined to be the invalid hyperlink.
17. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 8 when the program is executed by the processor.
CN201811634095.7A 2018-12-29 2018-12-29 Method and device for determining invalid hyperlinks Active CN110020264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811634095.7A CN110020264B (en) 2018-12-29 2018-12-29 Method and device for determining invalid hyperlinks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811634095.7A CN110020264B (en) 2018-12-29 2018-12-29 Method and device for determining invalid hyperlinks

Publications (2)

Publication Number Publication Date
CN110020264A CN110020264A (en) 2019-07-16
CN110020264B true CN110020264B (en) 2023-10-24

Family

ID=67188693

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811634095.7A Active CN110020264B (en) 2018-12-29 2018-12-29 Method and device for determining invalid hyperlinks

Country Status (1)

Country Link
CN (1) CN110020264B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914522A (en) * 2020-06-20 2020-11-10 北京海金格医药科技股份有限公司 Invalid hyperlink repairing method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632799A (en) * 2005-01-26 2005-06-29 威盛电子股份有限公司 Hyperlink automatic redirecting and management system and method
CN104036053A (en) * 2014-07-07 2014-09-10 广州金山网络科技有限公司 Invalid link address processing method and device
CN105868096A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Methods and apparatuses used for displaying web page test result in browser and device
CN106210258A (en) * 2016-06-14 2016-12-07 北京小米移动软件有限公司 Web access method and device
CN106407219A (en) * 2015-07-31 2017-02-15 北京国双科技有限公司 Web page link crawling method and apparatus

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236654A (en) * 2010-04-26 2011-11-09 广东开普互联信息科技有限公司 Web useless link filtering method based on content relevancy
CN105069011A (en) * 2015-07-07 2015-11-18 安一恒通(北京)科技有限公司 Webpage favorite management method, device and system
CN105719162B (en) * 2016-01-20 2020-02-07 北京京东尚科信息技术有限公司 Method and device for monitoring validity of promotion link

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632799A (en) * 2005-01-26 2005-06-29 威盛电子股份有限公司 Hyperlink automatic redirecting and management system and method
CN104036053A (en) * 2014-07-07 2014-09-10 广州金山网络科技有限公司 Invalid link address processing method and device
CN105868096A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Methods and apparatuses used for displaying web page test result in browser and device
CN106407219A (en) * 2015-07-31 2017-02-15 北京国双科技有限公司 Web page link crawling method and apparatus
CN106210258A (en) * 2016-06-14 2016-12-07 北京小米移动软件有限公司 Web access method and device

Also Published As

Publication number Publication date
CN110020264A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US11474926B2 (en) Method and system for measuring user engagement with content items
US20150324362A1 (en) Method and system for measuring user engagement with content items
EP2998848B1 (en) Method, device, and apparatus for controlling screen rotation
CN109242300B (en) Method and device for displaying service index value and computer equipment
CN109145238B (en) Card display method and device and mobile device
US11275814B2 (en) Recording ledger data on a blockchain
CN110764986B (en) Page fluency detection method and device
CN109359118B (en) Data writing method and device
CN109302423B (en) Vulnerability scanning capability testing method and device
CN110020383B (en) Page data request processing method and device
JP5264813B2 (en) Evaluation apparatus, evaluation method, and evaluation program
CN109189677B (en) Test method and device for updating state of variable value
CN110020264B (en) Method and device for determining invalid hyperlinks
CN112306487A (en) Buried point data reporting method, device, equipment and storage medium
WO2013079779A1 (en) Methods and apparatus for enabling context-aware and personalized web content browsing experience
CN110708270B (en) Abnormal link detection method and device
CN105262829B (en) Geographical position monitoring method and system
CN110032461B (en) Method and device for determining abnormal display time
CN106708705B (en) Terminal background process monitoring method and system
CN110046237B (en) Conversational interactive processing method and device
KR102497270B1 (en) Detect selection of disabled internal links within nested content
CN110968513B (en) Recording method and device of test script
CN110035108B (en) Information pushing method and system
CN110046008B (en) Associated control interaction method and device
CN109377233B (en) Risk monitoring method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20201014

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20201014

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant