Summary of the invention
The invention provides a kind of document down loading method and device, file download suggesting method and device, to address the above problem at least.
According to an aspect of the present invention, provide a kind of document down loading method, having comprised: determined that download link clicked in browser is for need to call the link that third party's download tool is downloaded; In the situation that judge third party's download tool, do not support the first kernel of the current use of browser, to third party's download tool, send the browser information corresponding to the second kernel of browser, so that third party's download tool carries out the file download according to browser information and download link, wherein, third party's download tool is supported the second kernel.
Preferably, determine that download link clicked in browser, for need to call the link that third party's download tool is downloaded, comprising: judge the signature identification that whether comprises third party's download tool private link in download link; In the situation that judgment result is that, be to determine that download link clicked in browser is for need to call the link that third party's download tool is downloaded.
Preferably, the method also comprises: show to download suggestion, wherein, download suggestion comprise following one of at least: be used to indicate download target that download link points to whether carrying advertisement indication information, download the ratio that target is downloaded; In the situation that the user determines the lower target of downloading according to downloading suggestion, use predetermined display mode to show the download click on area of downloading target.
Preferably, indication information is to determine according to the advertisement alliance network address that server is collected in advance.
Preferably, the first kernel is the kernel not identical with the kernel of system intialization browser, and the second kernel is the kernel of system intialization browser.
Preferably, the first kernel is the Webkit core, and the second kernel is the Trident core.
According to a further aspect in the invention, provide a kind of file downloading device, having comprised: determination module, for determining that the clicked download link of browser is for need to call the link that third party's download tool is downloaded; Whether judge module, support the first kernel of the current use of browser be used to judging third party's download tool; Sending module, for in the situation that judge module the determination result is NO, to third party's download tool, send the browser information corresponding to the second kernel of browser, so that third party's download tool carries out the file download according to browser information and download link, wherein, third party's download tool is supported the second kernel.
Preferably, determination module comprises: whether judging unit comprises the signature identification of third party's download tool private link for judging download link; Determining unit, in the situation that judgment result is that of judge module is to determine that download link clicked in browser is for need to call the link that third party's download tool is downloaded.
Preferably, this device also comprises: the first display module, be used to showing, download suggestion, wherein, download suggestion comprise following one of at least: be used to indicate download target that download link points to whether carrying advertisement indication information, download the ratio that target is downloaded; The second display module, in the situation that the user determines the lower target of downloading according to downloading suggestion, used predetermined display mode to show the download click on area of downloading target.
Preferably, indication information is to determine according to the advertisement alliance network address that server is collected in advance.
Preferably, the first kernel is the kernel not identical with the kernel of system intialization browser, and the second kernel is the kernel of system intialization browser, and wherein, the first kernel is the Webkit core, and the second kernel is the Trident core.
According to a further aspect of the invention, provide a kind of file to download suggesting method, having comprised: the download acknowledgement window that is provided for confirming to carry out the file download for the user; In the situation that the user confirms to carry out the file download, provide for the download suggestion that needs download file to the user.
Preferably, downloading suggestion is to formulate according to the advertisement alliance network address that server is collected in advance, wherein, download suggestion comprise following one of at least: be used to indicate download target that download link points to whether carrying advertisement indication information, download the ratio that target is downloaded.
Preferably, in the situation that the file failed download, the method also comprises: will need the download link that download file is corresponding to be defined as unsuccessfully download link, and the relevant information of failed download link is aggregated in preset download link reference information.
According to of the present invention, provide a kind of file to download proposing apparatus also on the one hand, having comprised: module is provided, is used to the user to be provided for confirming to carry out the download acknowledgement window of file download; Formulate module, in the situation that the user confirms to carry out the file download, advise for the user formulates for the download that needs download file.
By the present invention, employing is not in the situation that third party's download tool is supported the first kernel of the current use of browser, mode to browser information corresponding to second kernel (support of third party's download tool) of third party's download tool transmission browser, the user, without the manual switchover kernel, has reached and has improved the effect that the user experiences.
Embodiment
Hereinafter with reference to accompanying drawing, also describe in conjunction with the embodiments the present invention in detail.It should be noted that, in the situation that do not conflict, embodiment and the feature in embodiment in the application can combine mutually.
At present, along with the range of application of multinuclear browser is more and more wider, especially used the double-core browser of Webkit kernel (also referred to as very fast kernel) and Trident core (also referred to as compatible kernel) to be applied gradually, it is more and more diversified that the file downloading mode also becomes.But, for mode that third party's download tool carries out the file download, but have the problem that can't carry out the file download under certain condition for current relatively commonly used passing through.Below take the double-core browser and describe as example: for example, when the double-core browser (is operated under certain kernel, the Webkit kernel) time, it does not support third party's specific download instruments such as sudden peal of thunder download to download, thereby, the user is in the situation that use the Webkit kernel, if want by third party's download tool download file, need manually the Webkit kernel to be switched to the Trident kernel, this not only just requires the user that what is familiar with is very fast kernel (Webkit), what is compatible kernel (Trident), also need the user to carry out manual switchover, must cause user's user to experience lower.
The embodiment provided below the present invention can overcome the user well to be used during third party's download tool carries out the process of file download, and what easily occur experiences too low problem because needs carry out the user that manual switchover causes.
Following examples can be applied in browser, this browser can be the browser of using on computers, it can be also perhaps the browser be used on mobile device, here the browser of indication includes but not limited to the double-core browser, for example, along with the development of technology, following multinuclear browser is also complete can be adopted the technical scheme that this example provides or be equal to the technical scheme that the present embodiment provides.
The present embodiment provides a kind of document down loading method, and Fig. 1 is the document down loading method flow chart according to the embodiment of the present invention, and as shown in Figure 1, the method comprises the following steps (step S102-step S104):
Step S102, determine that download link clicked in browser is for need to call the link that third party's download tool is downloaded;
Step S104, in the situation that judge third party's download tool, do not support the first kernel of the current use of browser, to third party's download tool, send the browser information corresponding to the second kernel of browser, so that third party's download tool carries out the file download according to browser information and download link, wherein, third party's download tool is supported the second kernel.
Above-mentioned steps by the present embodiment, when the kernel of browser use is not supported third party's download tool, to the 3rd, give the instrument of carrying and send browser information, make third party's download tool think that this browser is supported by this third party's download tool, download thereby can successfully call third party's download tool.So just, without user's manual switchover kernel, can improve the user and experience.
In the present embodiment, the first kernel is the kernel not identical with the kernel of system intialization browser, and the second kernel is the kernel of system intialization browser.In actual applications, computer, server and other the multiple intelligent terminal computer system of installing is integrated with monokaryon browser relatively more commonly used (alleged system intialization browser, for example IE browser namely) usually.In view of the plurality of advantages of current multinuclear browser (especially double-core browser), the user is in the system use procedure, if when sensation monokaryon browser can't meet its user demand, the probability that the multinuclear browser is installed was very large.Here the current double-core browser of take is example, and the browser kernel that the double-core browser is adopted carries out brief description: the following two kinds of browser kernels of the many employings of double-core browser: the Trident kernel that the IE browser that (1) microsoft system carries uses; (2) the Webkit kernel of the browser of apple system or the use of the Chrome of Google browser.At home, a lot of double-core browsers all can simultaneously compatible these two kinds of kernels.Based on this, in a preferred implementation of the present embodiment, the first kernel can adopt the Webkit core; The second kernel can adopt the Trident core, certainly, is not limited to this.The browser that use has different core can make the user more freely according to downloading the in good time switching that need to carry out kernel.
When the user clicks download link, can there be a lot of modes to distinguish this download link and whether need to call third party's download tool, the present embodiment provides a kind of preferred mode: first judge the signature identification that whether comprises third party's download tool private link in download link, in the situation that judgment result is that, be to determine that download link clicked in browser is for need to call the link that third party's download tool is downloaded.This optimal way can improve the accuracy rate of judgement download link type.
In addition, in passing through the file of browser downloads, it is the business download website that quite a few document source is arranged.The main operating income of these business comes from advertisement, and therefore, the download website of quite a few is used with fraudulent advertisement and inveigled the user to click to obtain income.When the user clicks Software advertisement, also can eject a Download Info acknowledgement window allows the user confirm to download, but distinguish whether be oneself to need the file of downloading by the information that the Download Info acknowledgement window provides, for major part does not possess the user of computer major technical ability, do not have sizable difficulty, therefore cause the user of user when each software download site is downloaded software to experience very poor.
In order to address this problem, in the present embodiment, can also show and download suggestion to the user, this download suggestion can offer the user at any time in whole downloading process.Preferably, this download suggestion can comprise following one of at least: be used to indicate download target that download link points to whether carrying advertisement indication information, download the ratio that target is downloaded; In the situation that the user determines the lower target of downloading according to downloading suggestion, use predetermined display mode to show the download click on area of downloading target.
Fig. 2 downloads the suggesting method flow chart according to the file of the embodiment of the present invention, and as shown in Figure 2, the method comprises the following steps:
Step S202, the download acknowledgement window that is provided for confirming to carry out the file download for the user;
Step S204, in the situation that the user confirms to carry out the file download, provide for the download suggestion that needs download file to the user.
By this step, can whether select to continue to download to provide good help for the user, that is: (1) is by the download target that is provided for indicating download link to the user and the points to indication information of carrying advertisement whether, the user is learnt and download in target whether by businessman, implanted advertisement, if advertisement is arranged, the user can select to stop downloading the more suitable download link of searching separately, has avoided being stopped over download time by advertisement, if no, the user gets final product relieved download; (2) by the ratio that target is downloaded of downloading is provided to the user, can make the user learn actual download the user of this download target account for the ratio that the user of this file destination is downloaded in all plans, whether the user just can determine the reliability of this file destination indirectly like this, download thereby consider.Need explanation, in actual applications, be used to indicate download target that download link points to whether carrying advertisement indication information and download the ratio that target is downloaded and can use separately, also can be combined with.
In a preferred implementation of the present embodiment, downloading suggestion is to determine according to the advertisement alliance network address that server is collected in advance.Here it is emphasized that advertisement alliance network address is by such as servers such as Cloud Servers, collecting and form according to the mass advertising link occurred in user's downloading process.In actual applications, to the user, providing while downloading suggestion is exactly to carry out first that the user confirms to carry out the download link of down operation and any one network address in advertisement alliance network address contrasts, if find the network address identical with download link, assert that namely download link is the advertisement network address.Like this, whether the user can proceed to attempt downloading still to exit the download flow process according to downloading the further decision of suggestion.
Preferably, in the situation that the file failed download can also will need the download link that download file is corresponding to be defined as unsuccessfully download link, and the relevant information of failed download link is aggregated in preset download link reference information.Like this, subsequent user can be with reference to after this download link reference information before download, then determines whether to proceed current file and download.
The present embodiment also provides a kind of file downloading device, and this device is for realizing above-mentioned document down loading method.Fig. 3 A is the structured flowchart according to the file downloading device of the embodiment of the present invention, and as shown in Figure 3A, this document download apparatus can comprise: determination module 10 judge modules 20 and sending module 30.Wherein, determination module 10, for determining that download link that the user clicks at browser is for need to call the link that third party's download tool is downloaded; Whether judge module 20, support the first kernel of the current use of browser be used to judging third party's download tool; Sending module 30, for in the situation that judge module the determination result is NO, to third party's download tool, send the browser information corresponding to the second kernel of browser, so that third party's download tool carries out the file download according to browser information and download link, wherein, third party's download tool is supported the second kernel.
Fig. 3 B is the structured flowchart according to the file downloading device of an optimal way of the embodiment of the present invention, as shown in Figure 3 B, determination module 10 in this device can comprise: whether judging unit 12 comprises the signature identification of third party's download tool private link for judging download link; Determining unit 14, in the situation that judgment result is that of judge module is to determine that download link clicked in browser is for need to call the link that third party's download tool is downloaded.
Preferably, this device can also comprise: the first display module 40, for showing, download suggestion, wherein, download suggestion comprise following one of at least: be used to indicate download target that download link points to whether carrying advertisement indication information, download the ratio that target is downloaded; The second display module 50, in the situation that the user determines the lower target of downloading according to downloading suggestion, used predetermined display mode to show the download click on area of downloading target.
Preferably, the first kernel is the kernel not identical with the kernel of system intialization browser, and the second kernel is the kernel of system intialization browser, and wherein, the first kernel can be the Webkit core, and the second kernel is the Trident core.For example, for PC, if the system of its use is microsoft system, the Trident kernel that uses of the IE browser that carries of system is the kernel of the preset browser of said system, and the double-core browser of the upper installation of PC can be the browser that comprises Trident core and two kernels of Webkit core.
The present embodiment also provides a kind of file to download proposing apparatus, this device is downloaded suggesting method for implementing above-mentioned a kind of file, Fig. 4 downloads the structured flowchart of proposing apparatus according to the file of the embodiment of the present invention, as shown in Figure 4, this document download proposing apparatus comprises: module 30 is provided and formulates module 40.Wherein, provide module 30, be used to the user to be provided for confirming to carry out the download acknowledgement window of file download; Formulate module 40, in the situation that the user confirms to carry out the file download, advise for the user formulates for the download that needs download file.
Preferably, download suggestion and be and formulate the advertisement alliance network address that module collects in advance according to server and formulate, wherein, download suggestion comprise following one of at least: prompting message, the user of carrying advertisement download ratio.
In actual applications, to the user, providing while downloading suggestion is exactly to carry out first that the user confirms to carry out the download link of down operation and any one network address in advertisement alliance network address contrasts, if find the network address identical with download link, assert that namely download link is the advertisement network address.Like this, whether the user can proceed to attempt downloading still to exit the download flow process according to downloading the further decision of suggestion.
Below take and have Webkit/Trident(Chrome/IE) the double-core browser be example, the document down loading method that above-described embodiment is provided and device and file are downloaded suggesting method and device carries out further description.
Fig. 5 is document down loading method flow chart according to the preferred embodiment of the invention, and as shown in Figure 5, the browser in the preferred embodiment is Webkit/Trident(Chrome/IE) the double-core browser, as shown in Figure 5, the concrete steps of this method for down loading are described below:
Step S502, the user opens webpage by the double-core browser, and after clicking a web page interlinkage;
Step S504, the double-core browser kernel is resolved web page interlinkage, judges the particular type of this web page interlinkage;
Step S506, determine when web page interlinkage that the user clicks is general link, is also non-download link, execution step S512;
Step S508, determine that the web page interlinkage that the user clicks is common download link, is also the download private link of non-third party's download tool, execution step S516;
Step S510, determine that the web page interlinkage that the user clicks is the download private link (user selects browser to be operated under the Webkit kernel) of third party's download tool (for example, a sudden peal of thunder is downloaded software), execution step S514;
Step S512, browser normally open webpage and resolve, and the display web page content;
Step S514, return to IE kernel browser attribute to the download Special chain of third party's download tool, the camouflage of Chrome kernel browser become to the IE kernel browser, so that the download Special chain of third party's download tool is normally carried out down operation;
Here need further description: in correlation technique, when the web page interlinkage of user's click is the download Special chain of third party's download tool, the download Special chain of third party's download tool is by javascript Query Browser attribute (useragent), when the double-core browser works in Chrome kernel lower time, to the download Special chain of third party's download tool, return to the Chrome kernel information as follows:
>>navigator.appVersion
"5.0(Windows?NT6.1)AppleWebKit/537.1(KHTML,like?Gecko)Chrome/21.0.1180.71Safari/537.1LBBROWSER"
The download Special chain of third party's download tool is according to the above-mentioned information of returning, and can recognize current browser is not the IE browser, thereby causes the download Special chain of third party's download tool to lose efficacy, and finally causes failed download.
And for step S514, it is mainly to realize by such mode:
The double-core browser works in Chrome kernel lower time, to the download Special chain of third party's download tool, returns to the IE kernel information as follows:
>>navigator.appVersion
"4.0(compatible;MSIE7.0;Windows?NT6.1;Trident/5.0;SLCC2;.NET?CLR2.0.50727;.NET?CLR3.5.30729;.NET?CLR3.0.30729;Media?Center?PC6.0;.NET4.0C;Tablet?PC2.0;.NET4.0E;InfoPath.3)"。
Step S516, to user's ejector pin to needing the download acknowledgement window of download file.
Below in conjunction with Fig. 6, above-mentioned steps S514 is described from the enterprising line correlation of principle.
Fig. 6 is the principle flow chart that third party's download tool downloads of slinging under the Webkit core according to the preferred embodiment of the invention, as shown in Figure 6, comprises the following steps:
Step S602, determine that the double-core browser works in Chrome kernel (Webkit kernel), and namely the user is switched on the Webkit kernel from the Trident kernel of IE browser;
Step S604, the attribute of webpage javescript Query Browser, namely carry out related resolution to the attribute of current double-core browser;
Step S606, in resolving, judge the tag file sign (being also " webthunder.js ") that whether comprises the download Special chain of third party's download tool in browser scanning webpage, if judgment result is that, be, perform step S608, otherwise, execution step S612;
Step S608, return to IE kernel browser attribute to the download Special chain of third party's download tool, and the camouflage of Chrome kernel browser is become to the IE kernel browser;
Step S610, the third party's download tool of correctly slinging, third party's download tool is downloaded Special chain by it and is normally carried out down operation.
By document down loading method and file download suggesting method that above-described embodiment provides, can find out, above-described embodiment is mainly that user agent (useragent) by forging the IE browser is not (that is: in the situation that third party's download tool is supported the first kernel of the current use of browser, browser information corresponding to the second kernel to the support of third party's download tool transmission third party download tool) mode, the user can be sling such as third party's download tools such as sudden peal of thunder downloads in direct click under very fast core, do not need the manual switchover kernel, do not need to learn to understand the relevant knowledge such as multinuclear browsers such as browser double-cores, as normal use monokaryon browser, use the download Special chain of third party's download tool.
Below in conjunction with Fig. 7 and preferred embodiment, the document down loading method that above-described embodiment provides is described in detail.
Fig. 7 is that file is downloaded the suggesting method flow chart according to the preferred embodiment of the invention, and as shown in Figure 7, this flow process comprises the following steps:
Step S702, point out the download acknowledgement window that whether continues to download to the user, and judge whether the user confirms to download, and if so, performs step S704, if not, performs step S712;
Step S704, the file that the advertisement alliance address of collecting according to high in the clouds is about to download to the user provide and download suggestion;
Preferably, according to the source (being download link) of download file, determine the document source information of file destination, for example, document source is in alliance of Baidu, obtain simultaneously the history that file destination is corresponding and download label information, the historical label information of downloading comprises that server collected other users and downloading the advisory information of uploading after this document, in Download Info acknowledgement window as shown in Figure 8, show the title of file destination, document source information and user download ratio, wherein, the source-information of file destination can help to determine to be needed download before user's download file, the historical label information of downloading can provide other users the suggestion after downloading this document to the user, thereby avoid the user to download wrong file and lose time and bandwidth.As shown in Figure 8, the Download Info acknowledgement window is provided with confirming button and cancel button, to receive user's input.
Step S706, determine that the user is seeing that downloading rear definite the proceeding of suggestion downloads, follow-up execution step S710;
Step S708, determine that the user is seeing that downloading rear discovery of suggestion is advertisement or overdue hitting, and carries out to cancel and downloads;
Step S710, where the animation effect that flies out can find download button if being pointed to the user, and to the user, represent download progress on interface;
Step S712, server background starts intelligent decision and downloads which kind of downloading mode of use, and in the situation that determine use double-core downloading mode, execution step S714;
Step S714, use P2P download tool (download tool such as the third party such as a sudden peal of thunder, whirlwind) to start to accelerate to download or use the primary download of very fast core (Chrome), can guarantee the high success rate of downloading, in the situation that download successful, execution step S716, in the situation that failed download, execution step S718;
Step S716, the prompting user file is downloaded successfully;
Step S718, prompting user file failed download;
Step S720, in the situation that the file failed download reports to server background by the relevant information of this failed download and upgrades the downloading mode used to other users next time;
Step S722, regularly the special messenger examines and upgrades and perfect service device intelligent decision logic.
It should be noted that, above-mentioned each step shown in Figure 6, above-mentioned each step shown in Figure 7 can independently be carried out, also can be by each step shown in Figure 6 and each step shown in Figure 7 in conjunction with execution.
Certainly, in actual applications, can improve rear execution to above-mentioned Fig. 6 and each step shown in Figure 7.In downloading process, the primary download of double-core browser is downloaded core by Chrome and is realized, the P2P multithreading is downloaded by whirlwind SDK and is realized, the double-core browser judges by default intelligent rules, for file to be downloaded, determine downloading mode, use speed that the P2P multithreading downloads and the success rate of the primary download of browser thereby reach to take into account.
Fig. 8 is the prompting interface schematic diagram of downloading according to the preferred embodiment of the invention suggestion, as shown in Figure 8, after output Download Info acknowledgement window, the information that the user shows according to the Download Info window determines whether to start to download, when browser, receive the beginning down operation of user's input, be also that the user is while clicking the confirming button of Download Info window, browser continues the part of having downloaded and continues to download, when browser, receive the cancellation down operation of user's input, be also that the user is while clicking the cancel button of Download Info window, browser stops current download, exit downloading task.
For example, when browser is not downloaded, downloading display icon is grey, when browser downloads, downloading display icon is light tone, after the user, clicking the confirming button of Download Info window, browser starts to download, and the Download Info window is hidden, control simultaneously the download display icon and be converted to light tone by grey, download demonstration and change, allow user awareness to there being task to download, and avoid the Download Info window to block the content that browser interface is showing.Preferably, after being converted to light tone, show in real time current download progress information, realize by browser master interface display download progress, allow user awareness arrive the progress of downloading task, for example by showing that " 1/2 " expression is current, downloaded 1/2nd.Preferably, browser, in hiding Download Info window, is exported a default animation, and the starting point of the moving track of this default animation is the Download Info acknowledgement window, terminal is for downloading display icon, to realize the visual cues to the user, for example, when the user clicks confirming button, the position that browser calculates confirming button and downloads display icon, from confirming button, skid off camber line one, fly into the download display icon, offer the better directive property of user.
Fig. 9 is the schematic diagram upgraded downloading suggestion according to the preferred embodiment of the invention, in downloading process, can use intelligent rules to carry out the intelligent decision of smart download pattern, wherein intelligent rules comprises local basis logic rules and the service end rule that can adjust at any time of controlling beyond the clouds, the priority of service end rule is higher than home town ruling, as shown in Figure 9, when browser is determined downloading mode according to preset rules, at first the inquiry service end gauage, if service end has the rule of correspondence, use the service end rule to download, also namely according to the definite downloading mode of service end rule, download, if service end is without corresponding rule, use the local rule of downloading, also namely according to the local basis logic rules, determine that downloading mode downloads.When the browser downloads failure, upgrade preset rules, guarantee that next user downloads successfully.
In another embodiment, also provide a kind of software, the technical scheme that this software is described for carrying out above-described embodiment and preferred implementation.
In another embodiment, also provide a kind of storage medium, in this storage medium, stored above-mentioned software, this storage medium includes but not limited to: CD, floppy disk, hard disk, scratch pad memory etc.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, perhaps be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, and in some cases, can carry out step shown or that describe with the order be different from herein, perhaps they are made into respectively to each integrated circuit modules, perhaps a plurality of modules in them or step being made into to the single integrated circuit module realizes.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.