WO2014173243A1 - Method and apparatus for obtaining webpages - Google Patents

Method and apparatus for obtaining webpages Download PDF

Info

Publication number
WO2014173243A1
WO2014173243A1 PCT/CN2014/075365 CN2014075365W WO2014173243A1 WO 2014173243 A1 WO2014173243 A1 WO 2014173243A1 CN 2014075365 W CN2014075365 W CN 2014075365W WO 2014173243 A1 WO2014173243 A1 WO 2014173243A1
Authority
WO
WIPO (PCT)
Prior art keywords
error
webpage identifier
webpage
identifier
character
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.)
Ceased
Application number
PCT/CN2014/075365
Other languages
French (fr)
Inventor
Jing Liu
Xiaodan LIN
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Publication of WO2014173243A1 publication Critical patent/WO2014173243A1/en
Priority to US14/838,050 priority Critical patent/US10110659B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • the present invention relates to the internet, and more particularly, to a method and apparatus for obtaining webpages.
  • a user can either click on a link of the webpage or enter a web address in the browser's (e.g., a QQ browser) address bar. If the user clicks a webpage link, there usually would be no error in opening the webpage, as the link is typically directly linked to the corresponding webpage.
  • error on punctuation such as entering "www,” instead of "www.”
  • error for using a Chinese punctuation mark such as entering "www . “ instead of "www.”
  • error on blank space such as entering "www. qq.com” instead ofwww.qq.com”
  • error oncharacters such as entering "ww” or "wwww” instead of "www”.
  • the embodiments of the present invention provide a method and apparatus for obtaining webpagesto address the issues in the prior art when a user manually enters a web address that contains an error.
  • a method for obtaining a webpage comprising: receiving a webpage identifier through a browser; determining whether the webpage identifier comprises an error; if the webpage identifier comprises an error, matching the error with a corresponding correction method in a pre-stored matching table for webpage identifier errors; correcting the webpage identifier in accordance with the matched correction method; and sending the corrected webpage identifier to a server to obtain a corresponding webpage.
  • an apparatus for obtaining webpage comprising: a webpage identifier acquisition module for receiving a webpage identifier through a browser; a webpage identifier error determination module for determining whether the webpage identifier comprises an error; a correction method matching module for, if the webpage identifier comprises an error, matching the error with a corresponding correction method in a pre-stored matching table for webpage identifier errors; a webpage identifier correction method module for correcting the webpage identifier in accordance with the matched correction method; and a webpage acquisition module for sending the corrected webpage identifier to a server to obtain a corresponding webpage.
  • a corresponding correction method is directly matched in a pre-stored matching table for the error in the webpage identifier, the webpage identifier is corrected in accordance with the matched correction method, and a webpage is obtained in accordance with the corrected webpage identifier.
  • Figure 1 is an exemplary flowchart of the method for obtaining a webpage in accordance with the an embodiment of the present invention.
  • Figure 2 is an exemplary flowchart of the method for identifying an error in a webpage identifier in accordance with anembodiment of the present invention.
  • Figure 3 is an exemplary flowchart of the method for obtaining a webpage in accordance with another embodiment of the present invention.
  • Figure 4 is an exemplary structural diagram of the apparatus for obtaining a webpage in accordance with anembodiment of the present invention.
  • Figure 1 is an exemplary flowchart of the method for obtaining a webpage in accordance with an embodiment of the present invention.
  • step 101 a webpage identifier is received through a browser.
  • the webpage identifier is preferably an URL, i.e., a web address.
  • a user enters a webpage identifier through a browser. For example, after a user enters a web address htrp://news.qq.com/zt2013/lianghui/ into a browser's address bar, the browser receives the web address.
  • step 102 it is determined whether the webpage identifier comprises an error. If the webpage identifier comprises an error, step 103 is performed; otherwise, step 105 is performed.
  • a uniform resource locator also known as web address, is a specific character string that constitutes a reference to a resource. Not all the characters are allowed in a URL, and below is a common list of the allowed URL characters.
  • the white space character is not an allowed URL character.
  • all the Chinese punctuation marks such as the Chinese period ' ⁇ ", the Chinese colon “ : “, and the Chinesecomma "; ", are not allowed URL characters.
  • the user can inadvertently enter such characters while attending to enter an URL.
  • a URL containing a character that is not an allowed URL character can be corrected, and the not-allowed character can be either deleted or replaced by an allowed character.
  • the browser after receiving a webpage identifier through a browser, the browser obtains a webpage from the server in accordance with the webpage identifier. For example, after receiving the web address http://riews.qq.coT3 ⁇ 4''zt2013/liarighi:n/, the browser obtains a corresponding webpage for this web address, which contains news report on the meetings of the NPC and CPPCC.
  • whether the webpage identifier comprises an error is preferably determined by whether an error code is received from the server. If an error code is received from the server, then it is determined that the current webpage identifier comprises an error.
  • other methods can be used to determine whether the webpage identifier entered by a user comprises an error. For example, after a user enters a webpage identifier into a browser's address bar, the webpage identifier can be checked character by character to determine whether the webpage identifier comprises an error.
  • step 103 the error is matched with a corresponding correction method in a pre-stored matching table for webpage identifier errors.
  • Table 1 contains a list of error types in the webpage identifier and corresponding correction methods.
  • the error type for the error in the webpage identifier entered by the user is first identified, and then the error type is matched with a corresponding correction method.
  • the error types for the error in the webpage identifier includes but not limited to: error on punctuation in the webpage identifier, error on the format of punctuation in the webpage identifier, and error on presence of a character between two punctuations etc.
  • step 104 the error in the webpage identifier is corrected in accordance with the matched correction method to obtain a correct webpage identifier.
  • the error in the webpage identifier is corrected in accordance with the matched correction method. For example, if the error type for the error in the webpage identifier is an error on punctuation such as "http;”, then the corresponding correction method for this error type would be replacing "http;" with "http:”.
  • step 105 the corrected webpage identifier is sent to a server to obtain a corresponding webpage.
  • a corresponding correction method is directly matched in a pre-stored matching table for the error in the webpage identifier, the webpage identifier is corrected in accordance with the matched correction method, and a webpage is obtained in accordance with the corrected webpage identifier.
  • FIG 2 is an exemplary flowchart of the method for identifying an error type in a webpage identifier in accordance with anembodiment of the present invention. As shown in Figure 2, the error type in a webpage identifier may be identified using the following steps.
  • Step 201 Is there an error in punctuation?
  • Step 202 1s there an error for using a Chinese punctuation mark?
  • Step 203 1s there an error on blank space?
  • Step 204 1s there an error on character?
  • Step 205 Is there any other errors?
  • Figure 3 is an exemplary flowchart of the method for obtaining a webpage in accordance with another embodiment of the present invention.
  • step 301 a webpage identifier is received through a browser.
  • step 302 the webpage identifier is sent to a server for obtaining a webpage.
  • step 101 and step 102 above can be referenced for implementation details of step 301 and step 302.
  • step 303 it is determined whether an error code is received from the server; if so, step 304 is performed; otherwise, step 308 is performed.
  • an error code is received from the server, it can be determined that the current webpage identifier comprises an error.
  • an error code e.g., error 753 will be returned to the browser, indicating that the web address contains an error.
  • step 304 it is determined whether the error in the webpage identifier is in the matching table for webpage identifier errors, if so, step 305 is performed; otherwise, step 301 is performed again.
  • step 305 an error type for the error in the webpage identifier is obtained in the matching table for webpage identifier errors.
  • the error types for the error in the webpage identifier includes but not limited to: error on punctuation in the webpage identifier, error on the format of punctuation in the webpage identifier, and error on presence of a character between two punctuations.
  • each error type has a corresponding correction method which can correct the error in the webpage identifier.
  • step 306 the error type is matched with a corresponding correction method.
  • step 307 the error in the webpage identifier is corrected in accordance with the matched correction method to obtain a correct webpage identifier.
  • the error type for the error in the webpage identifier is an error on punctuation such as "http;"
  • the "http;” will be replaced with "http:” in accordance with the corresponding correction method for this error type.
  • step 308 the corrected webpage identifier is sent to the server to obtain a corresponding webpage.
  • the step of determining whether the webpage identifier comprises an error comprises:determining whether the webpage identifier comprises a character that is not an allowed URL character;and if the webpage identifier comprises a character that is not an allowed URL character, replacing the character in the URL with a corresponding allowed URL character.
  • the step of determining whether the webpage identifier comprises an error comprises:determining whether the webpage identifier comprises a character that is not an allowed URL character;and if the webpage identifier comprises a character that is not an allowed URL character, deleting the character in the URL.
  • an error code when received from a server, it is determined that the webpage identifier sent to the server comprises an error; and an error type is obtained and matched with a corresponding correction method in a matching table for webpage identifier errors; then the error in the webpage identifier is corrected in accordance with the corresponding correction method, and finally, the corrected webpage identifier is sent to the server to obtain a corresponding webpage.
  • errors in the webpage identifier can be automatically corrected in accordance with embodiments of the present invention, which saves time and enhances the browsing experiences.
  • FIG. 4 is an exemplary structural diagram of the apparatus for obtaining a webpage in accordance with anembodiment of the present invention.
  • the apparatus comprises: a webpage identifier acquisition module 41, a webpage identifier error determination module 42, a matching table searching module 43, a correction method matching module 44, a webpage identifier correction method module 45 and a webpage acquisition module 46.
  • the webpage identifier acquisition module 4 l is configured for receiving a webpage identifier through a browser; thewebpage identifier error determination module 42 is configured for determining whether the webpage identifier comprises an error, wherein the webpage identifier preferably is an URL.
  • the matching table searching module 43 is configured for, if the webpage identifier comprises an error, further determining whether the error in the webpage identifier is in a pre- stored matching table for webpage identifier errors.
  • the correction method matching module 44 is configured for, if the error in the webpage identifier is in a pre-stored matching table for webpage identifier errors, further matching the error with a corresponding correction method in the pre-stored matching table for webpage identifier errors.
  • the webpage identifier correction method module 45 is configured for correcting the webpage identifier in accordance with the matched correction method to generate a correct webpage identifier.
  • the webpage acquisition module 46 is configured for sending the corrected webpage identifier to a server to obtain a corresponding webpage.
  • the webpage acquisition module 46 sends a website identifier to a server, if an error code is received from the server, then the webpage identifier error determination module 42 determines that the webpage identifier comprises an error.
  • the correction method matching module 44 comprises an error type acquisition module 441 and a method matching module 442, wherein the error type acquisition module 441 is configured forobtaining an error type for the error in the webpage identifier; and the method matching module 442 is configured for matching the error type with a corresponding correction method in a pre-stored matching table for webpage identifier errors;and the webpage identifier correction method module 45 is configured for correcting the webpage identifier in accordance with the matched correction method to generate a correct webpage identifier.
  • the error types for the error in the webpage identifier includes but not limited to: error on punctuation in the webpage identifier, error on the format of punctuation in the webpage identifier, and error on presence of a character between two punctuations etc.
  • Figure 2 can be referenced for further details.
  • the step of determining whether the webpage identifier comprises an error comprises:determining whether the webpage identifier comprises a character that is not an allowed URL character;and if the webpage identifier comprises a character that is not an allowed URL character, replacing the character in the URL with a corresponding allowed URL character.
  • the step of determining whether the webpage identifier comprises an error comprises:determining whether the webpage identifier comprises a character that is not an allowed URL character;and if the webpage identifier comprises a character that is not an allowed URL character, deleting the character in the URL.
  • an error code when received from a server, it is determined that the webpage identifier sent to the server comprises an error; and an error type is obtained and matched with a corresponding correction method in a matching table for webpage identifier errors; then the error in the webpage identifier is corrected in accordance with the corresponding correction method, and finally, the corrected webpage identifier is sent to the server to obtain a corresponding webpage.
  • errors in the webpage identifier can be automatically corrected in accordance with embodiments of the present invention, which saves time and enhances the browsing experiences.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention discloses a method and apparatus for obtain webpages. The method comprises: receiving a webpage identifier through a browser; determining whether the webpage identifier comprises an error; if the webpage identifier comprises an error, matching the error with a corresponding correction method in a pre-stored matching table for webpage identifier errors; correcting the webpage identifier in accordance with the matched correction method; and sending the corrected webpage identifier to a server to obtain a corresponding webpage. Errors in the webpage identifier can be automatically corrected, which saves time and enhances the browsing experiences.

Description

METHOD AND APPARATUS FOR OBTAINING WEBPAGES
CROSS-REFERENCE TO RELATED APPLICATIONS
This application claims the benefit and priority of Chinese Patent Application No. 201310150009.6, entitled "Method and Apparatus for Obtaining Webpages," filed on April26, 2013. The entire disclosures of each of the above applications are incorporated herein by reference.
TECHNICAL FIELD
The present invention relates to the internet, and more particularly, to a method and apparatus for obtaining webpages.
BACKGROUND
In browsing a webpage, a user can either click on a link of the webpage or enter a web address in the browser's (e.g., a QQ browser) address bar. If the user clicks a webpage link, there usually would be no error in opening the webpage, as the link is typically directly linked to the corresponding webpage.
However, when a user tries to open a webpage through entering a web address in the browser's address bar, errors often occur as the user might enter a character that is not allowed in web address, or use the incorrect format. If a not-allowed character or an incorrect format is entered in the address bar, the intended webpage will not open.
For example, the following errors could easily occur when a user enters a web address: error on punctuation: such as entering "www," instead of "www."; error for using a Chinese punctuation mark: such as entering "www . " instead of "www.";error on blank space: such as entering "www. qq.com" instead ofwww.qq.com"; anderror oncharacters: such as entering "ww" or "wwww" instead of "www".
The above mentioned errors occur frequently, yet they are hard to correct, and could lead to the failure to open an intended webpage. Specifically, the Domain Name System(DNS)server cannotresolve a webpage identifier containing an error, and error code (e.g., error 753) will be returned to the browser indicating that the DNS server cannot resolve the web address.
When the above mentioned errors occur, the user usually need to carefully double-check the web address entered, and correct the errors manually until thecorrect web address is entered. The user would need to take extra time to correct the web address, which is inefficient. In addition, the user's manual correction is not always correct, and the user might have to re-correct the web address if he or she continues to make mistakesin manually entering the web address.
Therefore, there is a need to address the above mentioned issues in the prior art when a user manually enters a web address that contains an error.
SUMMARY OF THE INVENTION
The embodiments of the present invention provide a method and apparatus for obtaining webpagesto address the issues in the prior art when a user manually enters a web address that contains an error.
In accordance with embodiments of the present invention, a method for obtaining a webpage is provided, comprising: receiving a webpage identifier through a browser; determining whether the webpage identifier comprises an error; if the webpage identifier comprises an error, matching the error with a corresponding correction method in a pre-stored matching table for webpage identifier errors; correcting the webpage identifier in accordance with the matched correction method; and sending the corrected webpage identifier to a server to obtain a corresponding webpage.
In accordance with embodiments of the present invention, an apparatus for obtaining webpage is provided, comprising: a webpage identifier acquisition module for receiving a webpage identifier through a browser; a webpage identifier error determination module for determining whether the webpage identifier comprises an error; a correction method matching module for, if the webpage identifier comprises an error, matching the error with a corresponding correction method in a pre-stored matching table for webpage identifier errors; a webpage identifier correction method module for correcting the webpage identifier in accordance with the matched correction method; and a webpage acquisition module for sending the corrected webpage identifier to a server to obtain a corresponding webpage.
In the embodiments of the present invention, if it is determined that the webpage identifier received by the browser includes an error, a corresponding correction method is directly matched in a pre-stored matching table for the error in the webpage identifier, the webpage identifier is corrected in accordance with the matched correction method, and a webpage is obtained in accordance with the corrected webpage identifier. Thus, errors in the webpage identifier can be automatically corrected in accordance with embodiments of the present invention, which saves time and enhances the browsing experiences.
BRIEF DESCRIPTION OF THE DRAWINGS
Figure 1 is an exemplary flowchart of the method for obtaining a webpage in accordance with the an embodiment of the present invention.
Figure 2 is an exemplary flowchart of the method for identifying an error in a webpage identifier in accordance with anembodiment of the present invention.
Figure 3 is an exemplary flowchart of the method for obtaining a webpage in accordance with another embodiment of the present invention.
Figure 4 is an exemplary structural diagram of the apparatus for obtaining a webpage in accordance with anembodiment of the present invention.
DESCRIPTION OF THE PREFERRED EMBODIMENTS
To better illustrate the technical features of the embodiments of the present invention, various preferred embodiments of the present invention will be briefly described in conjunction with the accompanying drawings.
Figure 1 is an exemplary flowchart of the method for obtaining a webpage in accordance with an embodiment of the present invention.
In step 101 , a webpage identifier is received through a browser.
In this embodiment, the webpage identifier is preferably an URL, i.e., a web address. In this step, a user enters a webpage identifier through a browser. For example, after a user enters a web address htrp://news.qq.com/zt2013/lianghui/ into a browser's address bar, the browser receives the web address.
In step 102, it is determined whether the webpage identifier comprises an error. Ifthe webpage identifier comprises an error, step 103 is performed; otherwise, step 105 is performed.
A uniform resource locator, abbreviated URL, also known as web address, is a specific character string that constitutes a reference to a resource. Not all the characters are allowed in a URL, and below is a common list of the allowed URL characters.
Unreserved May be encoded but it is not necessary
ABCDEFGHIJKLMNOPQRSTUVWXYZ
abcdefghijklmnopqrstuvwxyz
0123456789-_.~
Reserved
Have to be encoded sometimes
! *'();: (§> & = + $,/?%#[]
As you can see from the list of allowed URL characters, the white space character is not an allowed URL character. In addition, all the Chinese punctuation marks, such as the Chinese period 'Ό ", the Chinese colon " : ", and the Chinesecomma "; ", are not allowed URL characters. However, the user can inadvertently enter such characters while attending to enter an URL. In accordance with embodiments of the present invention, a URL containing a character that is not an allowed URL character can be corrected, and the not-allowed character can be either deleted or replaced by an allowed character.
In this embodiment, after receiving a webpage identifier through a browser, the browser obtains a webpage from the server in accordance with the webpage identifier. For example, after receiving the web address http://riews.qq.coT¾''zt2013/liarighi:n/, the browser obtains a corresponding webpage for this web address, which contains news report on the meetings of the NPC and CPPCC.
In this embodiment, whetherthe webpage identifier comprises an error is preferably determined by whether an error code is received from the server. If an error code is received from the server, then it is determined that the current webpage identifier comprises an error. Alternatively, other methods can be used to determine whether the webpage identifier entered by a user comprises an error. For example, after a user enters a webpage identifier into a browser's address bar, the webpage identifier can be checked character by character to determine whether the webpage identifier comprises an error.
In step 103, the error is matched with a corresponding correction method in a pre-stored matching table for webpage identifier errors.
Table 1 below contains a list of error types in the webpage identifier and corresponding correction methods.
Figure imgf000007_0001
etc.
Table 1 In accordance with the embodiment of the present invention, the error type for the error in the webpage identifier entered by the user is first identified, and then the error type is matched with a corresponding correction method. As shown in Table 1 , the error types for the error in the webpage identifier includes but not limited to: error on punctuation in the webpage identifier, error on the format of punctuation in the webpage identifier, and error on presence of a character between two punctuations etc.
In step 104, the error in the webpage identifier is corrected in accordance with the matched correction method to obtain a correct webpage identifier.
Once a correction method, such as those shown in Table 1, is matched, the error in the webpage identifier is corrected in accordance with the matched correction method. For example, if the error type for the error in the webpage identifier is an error on punctuation such as "http;", then the corresponding correction method for this error type would be replacing "http;" with "http:".
In step 105, the corrected webpage identifier is sent to a server to obtain a corresponding webpage.
In this embodiment, if it is determined that the webpage identifier received by the browser includes an error, a corresponding correction method is directly matched in a pre-stored matching table for the error in the webpage identifier, the webpage identifier is corrected in accordance with the matched correction method, and a webpage is obtained in accordance with the corrected webpage identifier. Thus, errors in the webpage identifier can be automatically corrected in accordance with embodiments of the present invention, which saves time and enhances the browsing experiences.
Figure 2 is an exemplary flowchart of the method for identifying an error type in a webpage identifier in accordance with anembodiment of the present invention. As shown in Figure 2, the error type in a webpage identifier may be identified using the following steps.
Step 201: Is there an error in punctuation?
Step 202:1s there an error for using a Chinese punctuation mark?
Step 203:1s there an error on blank space?
Step 204:1s there an error on character?
Step 205: Is there any other errors? Figure 3 is an exemplary flowchart of the method for obtaining a webpage in accordance with another embodiment of the present invention.
In step 301, a webpage identifier is received through a browser.
In step 302, the webpage identifier is sent to a server for obtaining a webpage.
The descriptions of step 101 and step 102 above can be referenced for implementation details of step 301 and step 302.
In step 303, it is determined whether an error code is received from the server; if so, step 304 is performed; otherwise, step 308 is performed.
Once an error code is received from the server, it can be determined that the current webpage identifier comprises an error. When a webpage identifier cannot be resolved by the DNS server, an error code (e.g., error 753) will be returned to the browser, indicating that the web address contains an error.
In step 304, it is determined whether the error in the webpage identifier is in the matching table for webpage identifier errors, if so, step 305 is performed; otherwise, step 301 is performed again.
In step 305, an error type for the error in the webpage identifier is obtained in the matching table for webpage identifier errors.
As shown in Table 1, the error types for the error in the webpage identifier includes but not limited to: error on punctuation in the webpage identifier, error on the format of punctuation in the webpage identifier, and error on presence of a character between two punctuations. In addition, each error type has a corresponding correction method which can correct the error in the webpage identifier.
In step 306, the error type is matched with a corresponding correction method.
In step 307, the error in the webpage identifier is corrected in accordance with the matched correction method to obtain a correct webpage identifier.
For example, if the error type for the error in the webpage identifier is an error on punctuation such as "http;", then the "http;" will be replaced with "http:" in accordance with the corresponding correction method for this error type.
In step 308, the corrected webpage identifier is sent to the server to obtain a corresponding webpage.
In the method for obtaining a webpage in accordance with an embodiment of the present invention, the step of determining whether the webpage identifier comprises an error comprises:determining whether the webpage identifier comprises a character that is not an allowed URL character;and if the webpage identifier comprises a character that is not an allowed URL character, replacing the character in the URL with a corresponding allowed URL character.
In the method for obtaining a webpage in accordance with another embodiment of the present invention, the step of determining whether the webpage identifier comprises an error comprises:determining whether the webpage identifier comprises a character that is not an allowed URL character;and if the webpage identifier comprises a character that is not an allowed URL character, deleting the character in the URL.
In this embodiment, when an error code is received from a server, it is determined that the webpage identifier sent to the server comprises an error; and an error type is obtained and matched with a corresponding correction method in a matching table for webpage identifier errors; then the error in the webpage identifier is corrected in accordance with the corresponding correction method, and finally, the corrected webpage identifier is sent to the server to obtain a corresponding webpage. Thus, errors in the webpage identifier can be automatically corrected in accordance with embodiments of the present invention, which saves time and enhances the browsing experiences.
Figure 4 is an exemplary structural diagram of the apparatus for obtaining a webpage in accordance with anembodiment of the present invention. The apparatus comprises: a webpage identifier acquisition module 41, a webpage identifier error determination module 42, a matching table searching module 43, a correction method matching module 44, a webpage identifier correction method module 45 and a webpage acquisition module 46.
In this embodiment, the webpage identifier acquisition module 4 lis configured for receiving a webpage identifier through a browser; thewebpage identifier error determination module 42 is configured for determining whether the webpage identifier comprises an error, wherein the webpage identifier preferably is an URL.
The matching table searching module 43 is configured for, if the webpage identifier comprises an error, further determining whether the error in the webpage identifier is in a pre- stored matching table for webpage identifier errors.
The correction method matching module 44 is configured for, if the error in the webpage identifier is in a pre-stored matching table for webpage identifier errors, further matching the error with a corresponding correction method in the pre-stored matching table for webpage identifier errors. The webpage identifier correction method module 45 is configured for correcting the webpage identifier in accordance with the matched correction method to generate a correct webpage identifier. The webpage acquisition module 46 is configured for sending the corrected webpage identifier to a server to obtain a corresponding webpage.
In a preferred embodiment, the webpage acquisition module 46 sends a website identifier to a server, if an error code is received from the server, then the webpage identifier error determination module 42 determines that the webpage identifier comprises an error.
In a preferred embodiment, the correction method matching module 44 comprises an error type acquisition module 441 and a method matching module 442, wherein the error type acquisition module 441 is configured forobtaining an error type for the error in the webpage identifier; and the method matching module 442 is configured for matching the error type with a corresponding correction method in a pre-stored matching table for webpage identifier errors;and the webpage identifier correction method module 45 is configured for correcting the webpage identifier in accordance with the matched correction method to generate a correct webpage identifier. The error types for the error in the webpage identifier includes but not limited to: error on punctuation in the webpage identifier, error on the format of punctuation in the webpage identifier, and error on presence of a character between two punctuations etc. Figure 2 can be referenced for further details.
In the apparatus for obtaining a webpage in accordance with an embodiment of the present invention, the step of determining whether the webpage identifier comprises an error comprises:determining whether the webpage identifier comprises a character that is not an allowed URL character;and if the webpage identifier comprises a character that is not an allowed URL character, replacing the character in the URL with a corresponding allowed URL character.
In the apparatus for obtaining a webpage in accordance with another embodiment of the present invention, the step of determining whether the webpage identifier comprises an error comprises:determining whether the webpage identifier comprises a character that is not an allowed URL character;and if the webpage identifier comprises a character that is not an allowed URL character, deleting the character in the URL.
The illustration of working principal among all the modules in an apparatus can reference to that of the method for obtaining a webpage in accordance with the above mentioned embodiments of the present invention.
In this embodiment, when an error code is received from a server, it is determined that the webpage identifier sent to the server comprises an error; and an error type is obtained and matched with a corresponding correction method in a matching table for webpage identifier errors; then the error in the webpage identifier is corrected in accordance with the corresponding correction method, and finally, the corrected webpage identifier is sent to the server to obtain a corresponding webpage. Thus, errors in the webpage identifier can be automatically corrected in accordance with embodiments of the present invention, which saves time and enhances the browsing experiences.
The various embodiments of the present invention are merely preferred embodiments, and are not intended to limit the scope of the present invention, which includes any modification, equivalent, or improvement that does not depart from the spirit and principles of the present invention, therefore, the scope of the present invention only is defined in accordance with the claims.

Claims

Claims
1. A method for obtaining a webpage, comprising:
receiving a webpage identifier through a browser;
determining whether the webpage identifier comprises an error;
if the webpage identifier comprises an error, matching the error with a corresponding correction method in a pre-stored matching table for webpage identifier errors;
correcting the webpage identifier in accordance with the matched correction method; and sending the corrected webpage identifier to a server to obtain a corresponding webpage.
2. The method of claim 1, wherein the step of matching the error with a corresponding correction method in a pre-stored matching table for webpage identifier errors comprises:
obtaining an error type for the error in the webpage identifier; and
matching the error type with a corresponding correction method in a pre-stored matching table for webpage identifier errors.
3. The method of claim 2, further comprising, prior to the step of matching the error type with a corresponding correction method in a pre-stored matching table for webpage identifier errors:
determining whether the error in the webpage identifier is in the matching table for webpage identifier errors; and
if the error in the webpage identifier is in the matching table for webpage identifier errors, obtaining the error type for the error in the webpage identifier.
4. The method of claim 1 , wherein the step of determining whether the webpage identifier comprises an error comprises:
sending the webpage identifier to the server to request a corresponding webpage; and if an error code is received from the server, determining that the webpage identifier comprises an error.
5. The method of claim 1, wherein the webpage identifier is an URL.
6. The method of claim 5, wherein the step of determining whether the webpage identifier comprises an error comprises: determining whether the webpage identifier comprises a character that is not an allowed URL character.
7. The method of claim 6, further comprising:
if the webpage identifier comprises a character that is not an allowed URL character, replacing the character in the URL with a corresponding allowed URL character.
8. The method of claim 6, further comprising:
if the webpage identifier comprises a character that is not an allowed URL character, deleting the character in the URL.
9. An apparatus for obtaining webpage, comprising:
a webpage identifier acquisition module for receiving a webpage identifier through a browser;
a webpage identifier error determination module for determining whether the webpage identifier comprises an error;
a correction method matching module for, if the webpage identifier comprises an error, matching the error with a corresponding correction method in a pre-stored matching table for webpage identifier errors;
a webpage identifier correction method module for correcting the webpage identifier in accordance with the matched correction method; and
a webpage acquisition module for sending the corrected webpage identifier to a server to obtain a corresponding webpage.
10. The apparatus of claim 9, wherein the correction method matching module comprises: an error type acquisition module configured for obtaining an error type for the error in the webpage identifier; and
a correction method matching module configured for matching the error type with a corresponding correction method in a pre-stored matching table for webpage identifier errors.
11. The apparatus of claim 10, further comprising a matching table searching module, wherein the matching table searching module is configured for determining whether the error in the webpage identifier is in the matching table for webpage identifier errors; and
the error type acquisition module is configured for, if the error in the webpage identifier is in the matching table for webpage identifier errors, obtaining the error type for the error in the webpage identifier
12. The apparatus of claim 9, wherein
the webpage acquisition module is further configured for sending the webpage identifier to the server to request a corresponding webpage; and
the webpage identifier error determination module is further configured for, if an error code is received from the server, determining that the webpage identifier comprises an error.
13. The apparatus of claim 9, wherein the webpage identifier is an URL.
14. The apparatus of claim 13, wherein the step of determining whether the webpage identifier comprises an error comprises:
determining whether the webpage identifier comprises a character that is not an allowed URL character.
15. The apparatus of claim 14, further comprising:
if the webpage identifier comprises a character that is not an allowed URL character, replacing the character in the URL with a corresponding allowed URL character.
16. The apparatus of claim 14, further comprising:
if the webpage identifier comprises a character that is not an allowed URL character, deleting the character in the URL.
PCT/CN2014/075365 2013-04-26 2014-04-15 Method and apparatus for obtaining webpages Ceased WO2014173243A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US14/838,050 US10110659B2 (en) 2013-04-26 2015-08-27 Method and apparatus for obtaining webpages

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310150009.6A CN104123125A (en) 2013-04-26 2013-04-26 Webpage resource acquisition method and device
CN201310150009.6 2013-04-26

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/838,050 Continuation US10110659B2 (en) 2013-04-26 2015-08-27 Method and apparatus for obtaining webpages

Publications (1)

Publication Number Publication Date
WO2014173243A1 true WO2014173243A1 (en) 2014-10-30

Family

ID=51768551

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075365 Ceased WO2014173243A1 (en) 2013-04-26 2014-04-15 Method and apparatus for obtaining webpages

Country Status (3)

Country Link
US (1) US10110659B2 (en)
CN (1) CN104123125A (en)
WO (1) WO2014173243A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6675078B2 (en) * 2016-03-15 2020-04-01 パナソニックIpマネジメント株式会社 Misrecognition and correction method, misrecognition and correction device, and misrecognition and correction program
CN107784011B (en) * 2016-08-30 2021-10-08 阿里巴巴(中国)有限公司 Webpage access method, client, webpage server and programmable device
CN106685972B (en) * 2016-12-30 2019-08-02 中广热点云科技有限公司 A kind of enhancing fault tolerant network video information process system and method
CN110020244B (en) * 2017-11-03 2022-10-04 北京搜狗科技发展有限公司 Method and device for correcting website information
CN108009230A (en) * 2017-11-29 2018-05-08 中煤航测遥感集团有限公司 Data processing method and device
CN108563618A (en) * 2018-03-15 2018-09-21 链家网(北京)科技有限公司 Change method and system on a kind of paper document line
CN111708963B (en) * 2020-05-22 2023-09-29 北京百度网讯科技有限公司 Page request processing methods, devices, electronic devices and storage media
CN112685211B (en) * 2021-01-04 2024-06-04 北京金山云网络技术有限公司 Error information display method and device, electronic equipment and medium
US11860946B2 (en) * 2022-01-11 2024-01-02 Kyndryl, Inc. Autonomous webpage content summation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551806A (en) * 2008-04-03 2009-10-07 北京搜狗科技发展有限公司 Personalized website navigation method and system
CN102566768A (en) * 2010-12-13 2012-07-11 腾讯科技(深圳)有限公司 Method and system for automatic character judgment and correction
CN102737029A (en) * 2011-04-02 2012-10-17 腾讯科技(深圳)有限公司 Searching method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080320167A1 (en) * 2005-02-09 2008-12-25 Dns Holding Sa Method and a Device for Recomposing an Url
CN100565524C (en) * 2007-03-27 2009-12-02 腾讯科技(深圳)有限公司 A kind of system, method and browser of preserving web page contents
CN101872350A (en) * 2009-04-24 2010-10-27 富士通株式会社 Web page text extraction method and device
CN102456063A (en) * 2011-03-02 2012-05-16 奇智软件(北京)有限公司 Method and system for correcting webpage access error

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551806A (en) * 2008-04-03 2009-10-07 北京搜狗科技发展有限公司 Personalized website navigation method and system
CN102566768A (en) * 2010-12-13 2012-07-11 腾讯科技(深圳)有限公司 Method and system for automatic character judgment and correction
CN102737029A (en) * 2011-04-02 2012-10-17 腾讯科技(深圳)有限公司 Searching method and system

Also Published As

Publication number Publication date
US10110659B2 (en) 2018-10-23
CN104123125A (en) 2014-10-29
US20150373082A1 (en) 2015-12-24

Similar Documents

Publication Publication Date Title
WO2014173243A1 (en) Method and apparatus for obtaining webpages
US20090144612A1 (en) Display of document data
CN101504673B (en) Method and system for recognizing doubtful fake website
CN111639275B (en) Routing information processing method, device, electronic equipment and computer storage medium
CN1289423A (en) web addressing
US9251223B2 (en) Alternative web pages suggestion based on language
US20150127838A1 (en) Page Operation Processing Method and Apparatus, and Terminal
CN103973461A (en) Notification message pushing method and message server
CN104102577B (en) Multi version web page access method of testing
CN103491089B (en) Code-transferring method and system in a kind of data convert based on HTTP
CN108737252B (en) Information pushing method and device based on block chain
CN107102908B (en) Data verification method, data fault tolerance method and device
US20240314102A1 (en) Domain name resolution method and apparatus, and computer device
US10878203B2 (en) Translation system
CN102456063A (en) Method and system for correcting webpage access error
US20160292228A1 (en) Methods, terminal device, cloud server and system for recommending websites
CN102566768A (en) Method and system for automatic character judgment and correction
CN115344801B (en) A method, apparatus, device, and medium for updating web page links.
JP2016009236A (en) Input support server, input support method, and input support program
CN102651019A (en) Method and device for parsing markup files
CN114338630A (en) Domain name access method, device, electronic equipment, storage medium and program product
US20160154893A1 (en) Determination device, determination method, and program
WO2014187182A1 (en) Method, apparatus and system for controlling address input
CN101771694A (en) Method for ensuring successful webpage browsing at client side and device therefor
CN104836864A (en) Domain name access error correction method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14789116

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18.03.2016)

122 Ep: pct application non-entry in european phase

Ref document number: 14789116

Country of ref document: EP

Kind code of ref document: A1