CN106919600A - One kind failure network address access method and terminal - Google Patents

One kind failure network address access method and terminal Download PDF

Info

Publication number
CN106919600A
CN106919600A CN201510996598.9A CN201510996598A CN106919600A CN 106919600 A CN106919600 A CN 106919600A CN 201510996598 A CN201510996598 A CN 201510996598A CN 106919600 A CN106919600 A CN 106919600A
Authority
CN
China
Prior art keywords
network address
browser
address
url
failure
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510996598.9A
Other languages
Chinese (zh)
Inventor
朱宏浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201510996598.9A priority Critical patent/CN106919600A/en
Publication of CN106919600A publication Critical patent/CN106919600A/en
Pending legal-status Critical Current

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/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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

Embodiments of the invention provide a kind of failure network address access method and terminal, are related to Internet communication technology, solve the participation for needing user in the prior art, can just obtain the problem of the corresponding web cache of failure network address.The method includes:When the network address for judging browser loading is as failure network address, the search entry address of the search engine in the browser and the failure network address generate a uniform resource position mark URL;The corresponding web page contents of URL are obtained from network according to URL;The web page contents are parsed, the hyperlink address of the target web caching of failure network address is obtained from the web page contents;The hyperlink address is loaded by browser, shows that the target web is cached.

Description

One kind failure network address access method and terminal
Technical field
The present invention relates to Internet communication technology field, more particularly to a kind of failure network address access method and terminal.
Background technology
People can obtain bulk information by browser from internet, but in some cases, when we use it is clear The search engine look in device carries out Webpage search (for example, the web page contents pointed by network address are removed or the corresponding net of the network address Standing to access) when, a certain Search Results are clicked on it is possible that situation about cannot access.
But, because the internet search engine of current main-stream all possesses climbing for " web cache " function, i.e. search engine Worm robot can periodically capture the website page that it is scanned, and its web data then is cached into search engine In web cache database, therefore, the most Webpages in internet all there are the history mirror back-up page, i.e., mutually Search engine network when Search Results are provided to client, the chained address of " web cache " can be simultaneously provided to use Family.So when user has found that search is linked as a failure link, the user just can be linked by clicking on " web cache ", be come Obtain the web cache of the search engine provider.But, above-mentioned " web cache " link is to need user to pass through to visit by hand The mode asked accesses what search engine site was obtained, and whole process needs the participation of user, and operating efficiency is too low.
The content of the invention
Embodiments of the invention provide a kind of failure Web access method and terminal, and solve needs user in the prior art Participation, can just obtain the problem of the failure corresponding web cache of network address.
First aspect, there is provided one kind failure network address access method, including:
When the network address for judging browser loading is as failure network address, the search of the search engine in the browser enters Port address and the failure network address generate a uniform resource position mark URL;
The corresponding web page contents of the URL are obtained from network according to the URL;
The web page contents are parsed, the hyperlink of the target web caching of the failure network address is obtained from the web page contents Ground connection location;
The hyperlink address is loaded by the browser, the target web caching is shown.
A kind of second aspect, there is provided terminal, including:
Generation module, during for judging the network address of browser loading when terminal as failure network address, according in the browser Search engine search entry address and the failure network address generate a uniform resource position mark URL;
First acquisition module, the URL for being generated according to the generation module obtains the URL correspondences from network Web page contents;
Second acquisition module, for parsing the web page contents that first acquisition module is obtained, from the webpage The hyperlink address of the target web caching of the failure network address is obtained in appearance;
Display module, for loading the hyperlink address that second acquisition module is obtained by the browser, Show the target web caching.
Failure network address access method and terminal that embodiments of the invention are provided, when the network address for judging browser loading is mistake During effect network address, the search entry address of the search engine in the browser and failure network address generate a unified resource Finger URL URL, then obtains the corresponding web page contents of URL according to the URL from network, then, parses the web page contents, and from The hyperlink address of the target web caching of the failure network address is obtained in the web page contents, finally, this is loaded by browser and is surpassed Chained address, so as to show that the target web is cached.
Compared to the parameter that prior art needs user, the corresponding web cache of failure network address, the application can be obtained In terminal find network address fail when, without the parameter of user, directly generating can get the corresponding institute of the failure network address There is the URL of web cache, then, the target of the failure network address is got from the corresponding web page contents of the URL of network-feedback The hyperlink address of web cache, finally loads the hyperlink address, so that the user is without any participation, just can be The corresponding web page contents of failure network address are browsed in browser page, so as to when user needs, be automatically performed cache web pages Loading, lifted user's operating experience, enhance the experience of browser.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be in embodiment or description of the prior art The required accompanying drawing for using is briefly described, it should be apparent that, drawings in the following description are only some realities of the invention Example is applied, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of structural representation of system architecture provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic flow sheet of network address access method that fails provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of terminal provided in an embodiment of the present invention;
Fig. 4 is the structural representation of another terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
In network system architecture as shown in Figure 1, the system architecture is included eventually terminal applies in the embodiment of the present invention End 11, network 12 and server 13.
Wherein, above-mentioned terminal can be smart mobile phone, intelligent watch, panel computer, notebook computer, super movement People's computer (English:Ultra-mobile Personal Computer, referred to as:UMPC), net book, personal digital assistant (English:Personal Digital Assistant, referred to as:The terminal device such as PDA), and not limited to this.Additionally, the terminal 11 On various telecommunication customer end applications, such as JICQ, mailbox client, social platform software etc. can be installed.On The network 12 stated is used to be provided between terminal 11 and server 13 medium of communication link, and the network 12 can include various companies Connect type, such as wired, wireless communication link or fiber optic cables etc..Above-mentioned server 13 can be to provide various services Server, the server 13 such as can be stored, be analyzed at the treatment to the data that receive, and result is fed back into end End 11.User can be interacted by network 12 with using terminal 11 with server 13, with messaging, for example, user can pass through Terminal 11 obtains web cache by network 12 from server 13.It should be noted that the terminal in system architecture in Fig. 1 11st, the number of network 12 and server 13 is only in Fig. 1 a kind of example, in practical application, can be according to specific application Scene carrys out quantification.
The web cache referred in the present invention, is also snapshots of web pages (Web Cache).The internet hunt of current main-stream draws Hold up and all possess " web cache " function, i.e. search engine webpage is backed up in webpage, there is the server of oneself In caching, when user click in a search engine " snapshots of web pages " link when, search engine by Spider (spider) system at that time The Web page content revealing for capturing and preserving out, referred to as " snapshots of web pages ".
The terms "and/or", only a kind of incidence relation for describing affiliated partner, represents there may be three kinds of passes System, for example, A and/or B, can represent:Individualism A, while there is A and B, individualism B these three situations.In addition, herein Middle character "/", typicallys represent forward-backward correlation pair as if a kind of relation of "or".
Embodiments of the invention provide a kind of failure network address access method, as shown in Fig. 2 the method specifically includes following step Suddenly:
201st, when the network address for judging browser loading is as failure network address, search engine of the terminal in browser is searched Rope entry address and failure network address generate a URL (English:Uniform Resoure Locator, letter Claim:URL).
It is exemplary, the search entrance of the search engine in above-mentioned browser be browser acquiescence search engine and/ Or the search entry address of any search engine in browser.Specifically, search of the terminal in browser in step 201 The process that the search entry address of engine and failure network address generate a URL is specifically included:Terminal is by the search in browser The search entry address of engine is combined as prefix with the failure network address, generates the URL.
For example, the search entrance URL of Baidu is:http://www.baidu.com/sThe form of wd=%s, if we Search target is URL1, then the final target URL that is combined into is:http://www.baidu.com/sWd=URL1.
Exemplary, failure network address access method provided by the present invention can apply in Internet-browser, operate Two aspects are mainly reflected on interface:1), when terminal judges the network address of browser loading as failure network address, browsed currently Whether the function of a prompting user " using the web cache of search engine provider " is added in the device page, when user confirms to make With rear, failure network address access method provided by the present invention will be started;2) button, is increased by the address field of browser, User can be located at the web cache of search engine provider database by the button, direct access target network address, rather than Access real target network address website;3), in the setting options of browser, the switching of " web cache provider " is increased Option, different search engine providers is used for user's selection.
Exemplary, generally, generally using HTTP (English:Hyper Text Transfer Protocol, referred to as:HTTP) conditional code (HTTP Status Code) judges the validity of network address.Specifically, terminal judges Browser loading network address whether be fail network address detailed process include:Terminal extracts the hypertext association of the network address of browser loading View HTTP conditional codes, based on HTTP conditional codes, judge whether the network address is failure network address.
HTTP conditional codes are made up of three ten's digits, are used to point out the success or failure of web access requests, such as Fruit failure then indicates the causes.HTTP conditional codes are divided into five types, and type is represented by the first digit of HTTP conditional codes:
For example, with 3 digit numerical codes of 1 beginning, including:
100 (client should continue to send request);101 (server has had understood that the request of client, and will pass through Upgrade (upgrading) message informing clients complete this request using different agreements);102 (by Web DAV (Web- Based Distributed Authoring and Versioning, a kind of communication protocol based on the agreements of HTTP 1.1) expand The conditional code of exhibition, representative treatment will continue to perform), represent that request is received, it is necessary to continue with, this kind of response is interim Response, only comprising statusline and some optional response headers, and is terminated with null, but due to not having in HTTP/1.0 agreements Any conditional code with 1 beginning is defined, so unless under some experimental conditions, server is forbidden being sent to such client The response of such conditional code.
With 3 digit numerical codes of 2 beginnings, including:
200 (request has succeeded, and the desired head response of request or data volume will be returned with this response);201 (ask Be implemented, and have a new resource according to request the need for and set up);202 (server has received request, but still It is untreated);203 (server has been successfully processed request, but the entity head metamessage for returning is had on original server The determination set of effect, but from local or third-party copy);204 (server is successfully processed request, but need not Any physical contents are returned, and wishes to return to the metamessage that have updated);205 (server is successfully processed request, and does not have Return to any content),;206 (server has been successfully processed part GET request);207 (are expanded by Web DAV (RFC2518) The conditional code of exhibition, the message body after representative will be an XML message), represent request succeed being serviced device receive, understanding, And receive.
With 3 beginning 3 digit numerical codes, 300 (user or browser can voluntarily select an address for first-selection carry out weight Orientation);301 (requested resource forever moves to new position, and any reference to this resource should all be used in the future One of several URI (universal resource identifier) that this response is returned);302 (resource of request is now interim from different URI Respond request);303 (response of correspondence current request can be found on another URI, and client should be with GET Mode accesses that resource);304 (if client have sent a GET request for SNNP and the request has been allowed to, and The content (since the last visit or according to the condition of request) of document does not have change, then server should return to this shape State code);305 (requested resource must could be accessed by specified agency);306 (in the specification of latest edition, 306 Conditional code has been no longer used);307 (resource of request is now interim from different URI respond requests), expression needs client End takes further to operate could complete request, and generally, these conditional codes are used for redirecting, and follow-up request address (resets To target) indicated in the position field of this secondary response.
With 3 digit numerical codes of 4 beginnings, including:
400 (it is semantic wrong, current request cannot being serviced device understand that required parameter is wrong);401 (current request needs User's checking);402 (conditional code is reserved for possible demand in the future), 403 (server has understood that request, but It is that refusal performs it);404 (request fails, and the resource obtained desired by request is not found on the server);405 (request rows In the requesting method specified be consequently not used for asking corresponding resource);406 (content character of the resource of request cannot meet please The condition in head is sought, thus response entity cannot be generated);407 (it is similar with 401 responses, only client must agency take Authentication is carried out on business device);408 (request timed outs);409 and the current state of requested resource between (due to having punching Prominent, request cannot be completed);410 (requested resource is no longer available on the server, and without any of turn Hair address);411 (server refusal receives request in the case of without defining Content-Length);412 (servers When providing prerequisite in head field of the checking in request, one or more could not be met);413 (server refusals Treatment current request, because the solid data size that the request is submitted to has exceeded the scope that server is ready or can be processed); 414 (the URI length of request has exceeded the length that server can be explained, therefore server refusal provides service to the request); 415 (for the method and requested resource of current request, the entity submitted in request is not the lattice supported in server Formula, therefore ask to be rejected);416 (if Range request headers are contained in request, and any data specified in Range Usable range of the scope all with Current resource is misaligned, while not defining If-Range request headers again in request, then service Device should just return to 416 conditional codes);417 (the expected content specified in request header Expect cannot being serviced device meet, or Person this server is a proxy server, and it has the clear evidence to prove on the next node of current route, The content of Expect cannot be satisfied);421 (IP address from where active client has exceeded clothes to the connection number of server The maximum magnitude of business device license);422 (request form is correct, but due to containing semantic error, it is impossible to respond);424 (due to The mistake that certain request before occurs, causes current request to fail);425 (in Web Dav Advanced Collections Defined in draft, but do not appear in《Web DAV ordered set agreements》In (RFC 3658));426 (client should be switched to TLS/1.0);429 (being extended by Microsoft, representing request should be retried after appropriate operation has been performed), represent client Appear likely to there occurs mistake, hamper the treatment of server.
With 3 digit numerical codes of 5 beginnings, including:
500 (server encounters a situation do not expected, result in it cannot complete to ask treatment);501 (server do not support current request required for certain function);502 (attempt holding as gateway or the server of factorage During row request, invalid response is received from upstream server);503 (because interim server is safeguarded or is overloaded, service Device cannot currently process request);504 (when attempting performing request as gateway or the server of factorage, fail in time from Upstream server receives response);505 (server is not supported, or refuses the HTTP versions for supporting to use in the request);506 (by《Transparent content agreement protocol》(RFC 2295) extends, and representative server has internal configuration error);507 (server without Method storage completes content necessary to request), 509 (servers reach bandwidth limitation);510 (the strategies required for obtaining resource Do not meet), represent that server is wrong during request is processed or abnormality occurs, it is also possible to be clothes Business device recognizes that the treatment to asking cannot be completed with current software and hardware resources.
202nd, terminal obtains the corresponding web page contents of URL according to URL from network.
203rd, terminal parses the web page contents, and the hyperlink of the target web caching of failure network address is obtained from web page contents Address.
Exemplary, step 203 specifically includes following steps:
203a, terminal are arranged web page contents correspondence code data according to dom tree shape structure.
203b, terminal search the hyperlink ground connection of the target web caching of failure network address from the code data for rearranging Location.
Wherein, above-mentioned target web caching in the code data that rearranges with failure network address matching degree highest net Caching of page, it is generally the case that the web cache for making number one be and failure network address matching degree highest web cache.
Exemplary, if search engine is by taking Baidu as an example, terminal-pair web page contents correspondence code data is according to document object Model (English:Document Object Model, referred to as:DOM) tree structure is recombinated, and then looks up in dom tree One content is the node element of " Baidu's snapshot ", if finding, extracts the href property values of the node element, and should Href property values then notify that browser loading should as CACHE_URL (hyperlink address that i.e. target web is cached) CACHE_URL, so as to show that the target web is cached in browser page.
If for example, after finding the node element that first content is " Baidu's snapshot ", the href attributes of the node element are:
Href=http://cache.baiducontent.com/cM=9f65cb4a8c8507ed4fece7631053 92230e54f7296c8a9a027fa3c215cc794f041a26b5b462675513d2b56b6776b8482ca0a06b382 00250a09bbf9f4badeacf77&P=907dc54ad5c34afb0be2963f4b449e&Newp= 9e74dd1082904ead02bd9b7d0d1d8a231610db2151d3db4f&User=baidu&Fm=sc& amp;Query=www%2Exbox%2Ecom&Qid=c52d84f7000053de&P1=1;
Then the href property values of the node element are:
http://cache.baiducontent.com/cM=9f65cb4a8c8507ed4fece763105392230e 54f7296c8a9a027fa3c215cc794f041a26b5b462675513d2b56b6776b8482ca0a06b38200250a 09bbf9f4badeacf77&P=907dc54ad5c34afb0be2963f4b449e&Newp= 9e74dd1082904ead02bd9b7d0d1d8a231610db2151d3db4f&User=baidu&Fm=sc& amp;Query=www%2Exbox%2Ecom&Qid=c52d84f7000053de&P1=1
General, web page contents correspondence code data is properly termed as web page code, and web page code refers to just in webpage making During need some special " language " for using, designer produces net by carrying out tissue layout to these " language " Page, our the final effects seen are only after " translation " is then carried out to code by browser.Commonly used during current Web- Designing Code has HyperText Markup Language (English:Hyper Text Markup Language, referred to as:HTML), JavaScript, Active Server Pages (English:Active Server Pages, referred to as:ASP), HyperText Preprocessor (English: Hypertext Preprocessor, referred to as:PHP), CGI (English:Common Gateway Interface, Referred to as:CGI) etc., wherein HTML is most basic web page code.Wherein, web page contents correspondence code data can in the present embodiment Being terminal direct access in analyzing web page content.
204th, terminal loads hyperlink address, display target web cache by browser.
The failure network address access method that embodiments of the invention are provided, when the network address for judging browser loading is failure network address When, the search entry address of the search engine in browser and failure network address generate a uniform resource position mark URL, Then the corresponding web page contents of URL are obtained from network according to the URL, then, the web page contents is parsed, and from the web page contents The hyperlink address of the middle target web caching for obtaining the failure network address, finally, the hyperlink address is loaded by browser, from And show the target web and cache.
Compared to the parameter that prior art needs user, the corresponding web cache of failure network address, the application can be obtained In terminal find network address fail when, without the parameter of user, directly generating can get the corresponding institute of the failure network address There is the URL of web cache, then, the target of the failure network address is got from the corresponding web page contents of the URL of network-feedback The hyperlink address of web cache, finally loads the hyperlink address, so that the user is without any participation, just can be The corresponding web page contents of failure network address are browsed in browser page, so as to when user needs, be automatically performed cache web pages Loading, lifted user's operating experience, enhance the experience of browser.
Embodiments of the invention provide a kind of terminal, and the terminal is used to realize above-mentioned failure network address access method, such as schemes 3rd, shown in 4, the terminal 3 includes:Generation module 31, the first acquisition module 32, the second acquisition module 33 and display module 34, its In:
Generation module 31, during for judging the network address of browser loading when terminal as failure network address, according to the browser In search engine search entry address and failure network address generate a URL.
First acquisition module 32, the URL for being generated according to generation module 31 obtains the corresponding nets of the URL from network Page content.
Second acquisition module 33, for parsing the web page contents that the first acquisition module 32 is obtained, obtains from web page contents The hyperlink address of the target web caching of the network address that fails.
Display module 34, for loading the hyperlink address that the second acquisition module 33 is obtained, display target by browser Web cache.
Exemplary, the search entry address of the search engine in the above-mentioned browser is the browser acquiescence The search entry address of search engine.
Optionally, the first acquisition module 32 specifically for:By the search entry address of the search engine in the browser As prefix, combined with failure network address, generate URL.
Optionally, the second acquisition module 33 specifically for:
Web page contents correspondence code data is arranged according to dom tree shape structure;
The hyperlink address of the target web caching of failure network address is searched from the code data for rearranging;Wherein, should With failure network address matching degree highest web cache in the code data that target web caching is rearranged for described in.
Optionally.As shown in figure 4, the terminal 3 also includes:Extraction module 35 and judge module 36, wherein:
Extraction module 35, the HTTP conditional codes of the network address for extracting browser loading.
Judge module 36, for the HTTP conditional codes extracted based on extraction module 35, judges whether the network address is failure net Location.
The terminal that embodiments of the invention are provided, when the terminal judges the network address of browser loading as failure network address, root A uniform resource position mark URL is generated according to the search entry address and failure network address of the search engine in browser, then The corresponding web page contents of URL are obtained from network according to the URL, then, the web page contents is parsed, and obtained from the web page contents The hyperlink address of the target web caching of the failure network address is taken, finally, the hyperlink address is loaded by browser, so that aobvious Show that the target web is cached.
Compared to the parameter that prior art needs user, the corresponding web cache of failure network address, the application can be obtained In terminal find network address fail when, without the parameter of user, directly generating can get the corresponding institute of the failure network address There is the URL of web cache, then, the target of the failure network address is got from the corresponding web page contents of the URL of network-feedback The hyperlink address of web cache, finally loads the hyperlink address, so that the user is without any participation, just can be The corresponding web page contents of failure network address are browsed in browser page, so as to when user needs, be automatically performed cache web pages Loading, lifted user's operating experience, enhance the experience of browser.
In several embodiments provided herein, it should be understood that disclosed terminal and method, can be by it Its mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, only Only a kind of division of logic function, can there is other dividing mode when actually realizing, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed Coupling each other or direct-coupling or communication connection can be the INDIRECT COUPLINGs or logical of device or unit by some interfaces Letter connection, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that the independent physics of unit includes, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can both be realized in the form of hardware, it would however also be possible to employ hardware adds the form of SFU software functional unit to realize.
The above-mentioned integrated unit realized in the form of SFU software functional unit, can store and be deposited in an embodied on computer readable In storage media.Above-mentioned SFU software functional unit storage is in a storage medium, including some instructions are used to so that a computer Equipment (can be personal computer, server, or network equipment etc.) performs the portion of each embodiment methods described of the invention Step by step.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (English:Read-Only Memory, letter Claim:ROM), random access memory (English:Random Access Memory, referred to as:RAM), magnetic disc or CD etc. are various Can be with the medium of store program codes.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It still may be used Modified with to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (10)

1. a kind of failure network address access method, it is characterised in that including:
When the network address for judging browser loading is as failure network address, the search entrance ground of the search engine in the browser Location and the failure network address generate a uniform resource position mark URL;
The corresponding web page contents of the URL are obtained from network according to the URL;
The web page contents are parsed, the hyperlink ground connection of the target web caching of the failure network address is obtained from the web page contents Location;
The hyperlink address is loaded by the browser, the target web caching is shown.
2. method according to claim 1, it is characterised in that the search entrance of the search engine in the browser is institute State the search entry address of any search engine in the search engine or the browser of browser acquiescence.
3. method according to claim 1 and 2, it is characterised in that the search engine in the browser Search entry address and the failure network address generate a URL and specifically include:
Using the search entry address of the search engine in the browser as prefix, combined with the failure network address, generate institute State URL.
4. method according to claim 1, it is characterised in that the parsing web page contents, from the web page contents The hyperlink address of the middle target web caching for obtaining the failure network address is specifically included:
The corresponding code data of the web page contents is arranged according to DOM Document Object Model dom tree shape structure;
The hyperlink address of the target web caching of the failure network address is searched from the code data for rearranging;Wherein, institute State target web caching in the code data for rearranging with the failure network address matching degree highest web cache.
5. method according to claim 1, it is characterised in that described when the network address that judges browser loading is the network address that fails When, the search entry address of the search engine in the browser and the failure network address generate a unified resource and determine Before position accords with URL, methods described also includes:
Extract the hyper text protocol HTTP conditional codes of the network address of the browser loading;
Based on the HTTP conditional codes, judge whether the network address is failure network address.
6. a kind of terminal, it is characterised in that including:
Generation module, during for judging the network address of browser loading when terminal as failure network address, searching in the browser The search entry address and the failure network address that index is held up generate a uniform resource position mark URL;
First acquisition module, the URL for being generated according to the generation module obtains the corresponding nets of the URL from network Page content;
Second acquisition module, for parsing the web page contents that first acquisition module is obtained, from the web page contents Obtain the hyperlink address of the target web caching of the failure network address;
Display module, for loading the hyperlink address that second acquisition module is obtained by the browser, display The target web caching.
7. terminal according to claim 6, it is characterised in that the search entrance of the search engine in the browser is institute State the search entry address of any search engine in the search engine or the browser of browser acquiescence.
8. the method according to claim 6 or 7, it is characterised in that first acquisition module specifically for:Will be described clear Combine with the failure network address, the generation URL as prefix the search entry address of the search engine look in device.
9. terminal according to claim 6, it is characterised in that second acquisition module, specifically for:
Web page contents correspondence code data is arranged according to DOM Document Object Model dom tree shape structure;
The hyperlink address of the target web caching of the failure network address is searched from the code data for rearranging;Wherein, institute State target web caching in the code data for rearranging with the failure network address matching degree highest web cache.
10. terminal according to claim 6, it is characterised in that the terminal also includes:
Extraction module, the hyper text protocol HTTP conditional codes of the network address for extracting the browser loading;
Judge module, for the HTTP conditional codes extracted based on the extraction module, judges whether the network address is failure Network address.
CN201510996598.9A 2015-12-25 2015-12-25 One kind failure network address access method and terminal Pending CN106919600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510996598.9A CN106919600A (en) 2015-12-25 2015-12-25 One kind failure network address access method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510996598.9A CN106919600A (en) 2015-12-25 2015-12-25 One kind failure network address access method and terminal

Publications (1)

Publication Number Publication Date
CN106919600A true CN106919600A (en) 2017-07-04

Family

ID=59455642

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510996598.9A Pending CN106919600A (en) 2015-12-25 2015-12-25 One kind failure network address access method and terminal

Country Status (1)

Country Link
CN (1) CN106919600A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111046310A (en) * 2019-12-12 2020-04-21 北京奇艺世纪科技有限公司 Page processing method, device, server and computer readable storage medium
CN112328922A (en) * 2020-11-30 2021-02-05 联想(北京)有限公司 Processing method and device
CN112395525A (en) * 2020-11-30 2021-02-23 上海二三四五网络科技有限公司 Method and device for controlling webpage browsing in mobile terminal browser

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096418B1 (en) * 2000-02-02 2006-08-22 Persistence Software, Inc. Dynamic web page cache
CN102929984A (en) * 2012-10-18 2013-02-13 北京奇虎科技有限公司 Website failure searching method and device
CN102929985A (en) * 2012-10-18 2013-02-13 北京奇虎科技有限公司 Method and system for displaying collected webpage
CN102937981A (en) * 2012-10-18 2013-02-20 北京奇虎科技有限公司 Webpage representing system and method
CN103678487A (en) * 2013-11-08 2014-03-26 北京奇虎科技有限公司 Method and device for generating web page snapshot
CN104915404A (en) * 2015-06-01 2015-09-16 安一恒通(北京)科技有限公司 Method and device for accessing invalid website

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096418B1 (en) * 2000-02-02 2006-08-22 Persistence Software, Inc. Dynamic web page cache
CN102929984A (en) * 2012-10-18 2013-02-13 北京奇虎科技有限公司 Website failure searching method and device
CN102929985A (en) * 2012-10-18 2013-02-13 北京奇虎科技有限公司 Method and system for displaying collected webpage
CN102937981A (en) * 2012-10-18 2013-02-20 北京奇虎科技有限公司 Webpage representing system and method
CN103678487A (en) * 2013-11-08 2014-03-26 北京奇虎科技有限公司 Method and device for generating web page snapshot
CN104915404A (en) * 2015-06-01 2015-09-16 安一恒通(北京)科技有限公司 Method and device for accessing invalid website

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ZUSKTE: "百度谷歌搜索引擎参数详解", 《CSDN博客》 *
清新每一天: "在搜索引擎中搜索关键字得到的结果页数的获取技巧", 《CSDN博客》 *
百度: "百度搜索URL参数你知道多少", 《百度经验》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111046310A (en) * 2019-12-12 2020-04-21 北京奇艺世纪科技有限公司 Page processing method, device, server and computer readable storage medium
CN111046310B (en) * 2019-12-12 2024-03-19 北京奇艺世纪科技有限公司 Page processing method, device, server and computer readable storage medium
CN112328922A (en) * 2020-11-30 2021-02-05 联想(北京)有限公司 Processing method and device
CN112395525A (en) * 2020-11-30 2021-02-23 上海二三四五网络科技有限公司 Method and device for controlling webpage browsing in mobile terminal browser

Similar Documents

Publication Publication Date Title
CN100367276C (en) Method and appts for searching within a computer network
CN102929984B (en) Inefficacy address searching method and apparatus
US6785769B1 (en) Multi-version data caching
CN102521251B (en) Method for directly realizing personalized search, device for realizing method, and search server
JP3807961B2 (en) Session management method, session management system and program
US8452925B2 (en) System, method and computer program product for automatically updating content in a cache
US8819819B1 (en) Method and system for automatically obtaining webpage content in the presence of javascript
CN103383687B (en) A kind of page processing method and device
US6625624B1 (en) Information access system and method for archiving web pages
US8131753B2 (en) Apparatus and method for accessing and indexing dynamic web pages
CN105930528B (en) Webpage caching method and server
WO1998009447A2 (en) Apparatus and method for tracking world wide web browser requests across distinct domains
CN102945259B (en) A kind of searching method based on collection and searcher
US20090094377A1 (en) Method and system for accelerating browsing sessions
US20070005606A1 (en) Approach for requesting web pages from a web server using web-page specific cookie data
CN102929985A (en) Method and system for displaying collected webpage
CN103617267B (en) Socialized extension search method, device and system
EP1303820A2 (en) Dynamic web page caching system and method
CN1351729A (en) Handling a request for information provided by a networks site
WO2014047739A1 (en) System and method of automatic generation and insertion of analytic tracking codes
EP2593882A1 (en) Method and apparatus of processing nested fragment caching of a web page
CN107590145A (en) A kind for the treatment of method and apparatus of page static resource
CN106897336A (en) Web page files sending method, webpage rendering intent and device, webpage rendering system
WO2020207022A1 (en) Scrapy-based data crawling method and system, terminal device, and storage medium
CN102937981A (en) Webpage representing system and method

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170704