Based on being downloaded the method and system that file is recommended
Technical field
The application relates to the microcomputer data processing field, particularly relates to a kind of based on being downloaded the method and system that file is recommended.
Background technology
When the user surfs the Net through terminals such as computer, mobile phones, often need to download some files.The function of downloading can be provided by downloaded software independently, also can be provided by the download function module that is built in some application software, for example download plug-in in the browser or the like.Independently downloaded software or plug-in unit generate configuration information through the institute downloaded files address of wanting, according to configuration information generation configuration file, and the download of reading information such as the file in download tabulation realization file in these configuration files.
Generally, downloaded files often need that corresponding application software just can be opened, use etc.For example, for the pdf file, need to have installed on the terminal pdf reader and just can open this document and read, edit or the like operation.And for example, for video file, need corresponding video player just can open.If the corresponding application software of certain file is not installed on the terminal, then the user needs manually to search this application software on the net, could normally use this document after downloading and installing.In this process, need the user enough understandings to be arranged, and need know the title or the characteristic of the application software that can normally use this document for institute's downloaded files, can find corresponding application file accurately.This has increased request for utilization and the difficulty of user for file undoubtedly.
In addition, when certain file can be opened through a plurality of application software,, often be difficult to choice and choose which application software if the user does not understand these application software.Usually can choose at random one, at this moment, if when the function that a plurality of application software can realize is suitable, choosing at random to make troubles.But the function that can realize when a plurality of application software then may be made troubles not simultaneously, and a lot of users have to reselect new application software, then possibly cause resource waste.For example, for certain file, if the user is not because understanding for application software; Arbitrarily choose and download and installed the A application software; When follow-up use,, then need download and install the B application software if find that the B application software is better; The A application software is just unnecessary for the user so, and this has caused resource waste.
Summary of the invention
It is a kind of based on being downloaded the method and system that file is recommended that the application provides, and can't intelligent choose the problem of application software, waste system resource in the time of can solving the file download.
In order to address the above problem, the application discloses a kind of based on being downloaded the method that file is recommended, and may further comprise the steps:
Obtain the filename that is downloaded file;
Confirm the said file type that is downloaded file according to said filename;
According to the recommendation tables that said file type inquiry prestores, choose recommendation items with said file type coupling;
Obtain the recommendation items information of said recommendation items and show.
Further, the said filename that is downloaded file that obtains comprises:
Through from the specific fields of procotol, reading; Or
From the said URL that is downloaded file place downloading page, obtain; Or
From the said URL that is downloaded after file place downloading page is redirected, obtain.
Further, saidly confirm that according to said filename the said file type that is downloaded file comprises:
Obtain said filename and represent the suffix of file type;
Confirm file type according to said suffix.
Further, said method also comprises:
Confirm the priority of pairing at least two recommendation items of each file type in the said recommendation tables.
Further, the said recommendation items of mating with said file type of choosing comprises:
Confirm at least two recommendation items corresponding with said file type;
From said two recommendation items, choose a high recommendation items of priority at least according to priority level, or choose at least two recommendation items that priority comes the front.
Further, also comprise before in the recommendation items of choosing with said file type coupling:
The priority of the recommendation items of each file type correspondence in the said recommendation tables of real-time update.
Further, one or more factors are confirmed below the said priority basis:
User's usage quantity of recommendation items;
The user of recommendation items uses the favorable comment degree;
The stability of recommendation items;
The function that recommendation items had.
Further, also comprise before in the recommendation items of choosing with said file type coupling:
The corresponding recommendation items of each file type in the said recommendation tables of real-time update.
Further, said demonstration recommendation items information comprises at least a information below the demonstration:
The title of said recommendation items;
The function information of said recommendation items;
The download address link of said recommendation items.
Further, the said recommendation tables that prestores is stored in server end or local client, and said recommendation items information is through obtain from server end or from local client, obtain in real time.
Further, said recommendation items comprises: application software, plug-in unit or network resource information.
Further, after choosing the recommendation items of mating, also comprise with said file type:
Judge whether the said recommendation items of choosing is mounted, if not, then obtain the recommendation items information of said recommendation items and show.
Further, the said file that is downloaded shows in file in download tabulation, saidly after obtaining the filename that is downloaded file, also comprises:
Judge whether said file in download tabulation changes,, then refresh said file in download tabulation, and choose file again if having.
Further, saidly judge whether the tabulation of said file in download changes and comprise:
Judge whether the download items quantity in the said file in download tabulation changes, if, confirm that then said file in download tabulation changes, otherwise, confirm that then said file in download tabulation does not change.
Further, said recommendation items information is displayed in the file in download tabulation of downloading control, and with said to be downloaded file corresponding.
In order to address the above problem, disclosed herein as well is a kind ofly based on being downloaded the system that file is recommended, comprising:
The filename acquisition module is used to obtain the filename that is downloaded file;
The file type determination module is used for confirming the said file type that is downloaded file according to said filename;
Recommendation items is chosen module, is used for inquiring about the recommendation tables that prestores according to said file type, chooses the recommendation items with said file type coupling.
Display module is used to obtain the recommendation items information of said recommendation items and show.
Further, said filename acquisition module comprises:
The filename reading unit; Be used for reading through specific fields from procotol; Or from the URL that is downloaded file place downloading page, obtain, or from the said URL that is downloaded after file place downloading page is redirected, obtain.
Further, said file type determination module comprises:
The suffix acquiring unit is used to obtain the suffix that said filename is represented file type, and confirms file type according to said suffix.
Further, said system also comprises:
The priority determination module is used for confirming the priority of pairing at least two recommendation items of each file type of said recommendation tables.
Further, said recommendation items is chosen module and is comprised:
Recommendation items is confirmed the unit, is used for confirming at least two recommendation items corresponding with said file type; With
Recommendation items is chosen the unit, is used for choosing a high recommendation items of priority according to priority level from said at least two recommendation items, or chooses at least two recommendation items that priority comes the front.
Further, said system also comprises:
Priority update module is used for the priority of the corresponding recommendation items of each file type of the said recommendation tables of real-time update.
Further, said system also comprises:
The recommendation items update module is used for the corresponding recommendation items of each file type of the said recommendation tables of real-time update.
Further, said display module comprises following one or more unit:
The title display unit is used to show the title of said recommendation items;
The function information display unit is used to show the function information of said recommendation items;
The link display unit is used to show the download address link of said recommendation items.
Further, said system also comprises:
Judge module is used to judge whether the said recommendation items of choosing is mounted, and if not, then triggers display module and shows.
Further, the said file that is downloaded shows that said system also comprises in the file in download tabulation:
File in download tabulation monitoring modular is used to judge whether said file in download tabulation changes, if having, then refreshes said file in download tabulation and chooses file again.
Further, said file in download tabulation monitoring modular comprises:
The quantity statistics unit is used for judging whether the download items quantity of said file in download tabulation changes, if, confirm that then said file in download tabulation changes, otherwise, confirm that then said file in download tabulation does not change.
Compared with prior art, the application comprises following advantage:
The application chooses file wherein based on being downloaded the method that file recommends in the tabulation of file file in download; And definite its file type; Carry out the recommendation of corresponding application software, plug-in unit etc. according to file type; Can make the user confirm be fit to the application program or the information of this document faster, what need not the user and bring because search this application program or information separately is constant.Because application program of recommending or information are for collect and be stored in the recommendation tables in advance; Can confirm application program or the information that needs are recommended according to the factors such as usage quantity, favorable comment degree, stability or function of various application programs or information; Thereby make the application program or the more convenient practicality of information of recommendation; Avoid the situation that occurs repeatedly downloading because application program or information do not meet user expectation, can save system resource.
Preferably, after confirming the corresponding exemplary application software of each file type, also comprise the priority of real-time update recommendation items or recommendation items; Each recommendation items is adjusted in real time; Thereby guarantee that the recommendation items of at every turn choosing can both meet user expectation more accurately with suitable, avoids occurring repeatedly downloading because the recommendation items of choosing is inaccurate the situation of application program of the same type or information; User's user satisfaction can be improved, system resource can be saved simultaneously.
Certainly, arbitrary product of enforcement the application not necessarily need reach above-described all advantages simultaneously.
Description of drawings
In order to be illustrated more clearly in the application embodiment or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use among the embodiment below; Obviously, the accompanying drawing in describing below only is some embodiment of the application, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 be the application based on the process flow diagram that is downloaded the method embodiment one that file recommends;
Fig. 2 be the application based on the process flow diagram that is downloaded the method embodiment two that file recommends;
Fig. 3 be the application based on the process flow diagram that is downloaded the method embodiment three that file recommends;
Fig. 4 be the application based on the structural representation that is downloaded the system embodiment one that file recommends;
Fig. 5 be the application based on the structural representation that is downloaded the system embodiment two that file recommends;
Fig. 6 be the application based on the structural representation that is downloaded the system embodiment three that file recommends.
Embodiment
To combine the accompanying drawing among the application embodiment below, the technical scheme among the application embodiment is carried out clear, intactly description, obviously, described embodiment only is the application's part embodiment, rather than whole embodiment.Based on the embodiment among the application, the every other embodiment that those of ordinary skills obtained belongs to the scope that the application protects.
With reference to Fig. 1, a kind of based on being downloaded the method embodiment one that file is recommended of the application is shown, may further comprise the steps:
Step 101 is obtained the filename that is downloaded file.
Can be through from the specific fields of procotol, reading; For example the FileDisposition field of http agreement reads the filename that this is downloaded file; Also can analyze the url (URL) that is downloaded file place downloading page, from url, read filename, be sky if be downloaded the url of file place downloading page; Url after then can obtaining it and being redirected is from wherein reading filename.
Just being downloaded file and can being in downloaded files, also can be the file of having downloaded completion.Can be meant the file that the user directly clicks, manually chooses, it is fashionable to be meant that also new file in download adds, the new file in download that system default is chosen.In addition; When carrying out the file download, can show file in download with the form of file in download tabulation usually, and can begin the sequencing arrangement of download time according to file in download; That is, file in download the latest can be arranged in the heading in the file in download tabulation beginning download time.In general, according to the analysis to user custom, it also is the file in download that is in the heading position in the file in download tabulation that the user pays close attention to maximum.Therefore, be downloaded file and also can be meant the file that is arranged in file in download tabulation heading position.
Step 102 is confirmed the said file type that is downloaded file according to said filename.
Except comprising the title of this document, also can comprise the file type suffix of this document in the filename, obtain this suffix, just can confirm file type according to suffix.
Step 103 according to the recommendation tables that said file type inquiry prestores, is chosen the recommendation items with said file type coupling.
Comprise various file types and the exemplary application software corresponding in the recommendation tables that prestores in the system with each file type.After confirming file type, recommendation items that just can inquiry in this document type substitution recommendation tables is corresponding with said file type.Wherein, recommendation items comprises that application software, plug-in unit, network resource information equal to be downloaded file relevant application program or information.For example, for the pdf file, recommendation items can be the pdf reader, also can the pdf editing machine or the like.
Wherein, recommendation tables can be confirmed after collecting a large number of users data analysis, also can confirm according to professional knowledge according to the professional, specifically can confirm according to actual conditions.For example; The pairing recommendation items of a certain file type; Supposing that recommendation items is an application software, can be that the user uses maximum application software so, also can be a highest application software of user's favorable comment degree; Also can be a best application software of stability, or a most perfect application software of function.Be appreciated that it to be application program or the information that hope is promoted.For example, when a new application software occurs, can preferentially recommend this application software.
In the recommendation tables, can be the only corresponding recommendation items of each file type, i.e. application software, also can be corresponding as required two or more recommendation items, promptly a plurality of application software.When a plurality of recommendation items, the application also comprises the priority of setting said recommendation items.Wherein, the setting of the priority of recommendation items can be with reference to the method for aforementioned definite exemplary application software, and promptly the aspect confirms that the application does not limit this according to whether user's usage quantity, favorable comment degree, stability or function perfect etc.When each file type corresponded to rare two recommendation items, the application can choose the recommendation items with limit priority according to priority level when choosing recommendation items, and several of fronts that also can priority is higher are chosen simultaneously.That is, can confirm at least two recommendation items corresponding, choose a high recommendation items of priority according to the priority level of said at least two recommendation items, or choose at least two recommendation items that priority comes the front with said file type.
Be appreciated that the application also comprises: upgrade the corresponding recommendation items of each file type in the recommendation tables.
When each file type comprised two or more recommendation items in the recommendation tables, the application also comprised:
Upgrade the priority of the recommendation items of each file type correspondence in the recommendation tables.
Through upgrading the priority of recommendation items or recommendation items; Can adjust in real time each recommendation items; Thereby guarantee that the recommendation items of at every turn choosing can both meet user expectation more accurately with suitable, avoids occurring repeatedly downloading because the recommendation items of choosing is inaccurate the situation of application software of the same type; User's user satisfaction can be improved, system resource can be saved simultaneously.
Step 104 is obtained the recommendation items information of said recommendation items and is shown.
Wherein, can be directly the information of the recommendation items that is selected be presented in the interface at file in download tabulation place, and with said to be downloaded file corresponding, content displayed can only comprise the title of recommendation items.Preferably, more understand for recommendation items in order to make the user, content displayed can also comprise information such as the function introduction, developer of recommendation items.
Preferably; Content displayed can also comprise the download address link; Be that the user can directly click displaying contents and downloads said recommendation items, also can directly showing that the cross section increases download button, the user can be through clicking the download that this download button realizes this recommendation items.Wherein, the information of recommendation items can directly be stored in the recommendation items table that prestores, and also can be stored in server end, when needs, reads in real time, can also when needs, also can from local client, read with other stored in form at local client.
The application chooses file wherein based on being downloaded the method that file recommends in the tabulation of file file in download; And definite its file type; Carry out the recommendation of corresponding application software, plug-in unit etc. according to file type; Can make the user confirm be fit to the application program or the information of this document faster, what need not the user and bring because search this application program or information separately is constant.Because application program of recommending or information are for collect and be stored in the recommendation tables in advance; Can confirm application program or the information that needs are recommended according to the factors such as usage quantity, favorable comment degree, stability or function of various application programs or information; Thereby make the application program or the more convenient practicality of information of recommendation; Avoid the situation that occurs repeatedly downloading because application program or information do not meet user expectation, can save system resource.
Preferably, after confirming the corresponding exemplary application software of each file type, also comprise the priority of real-time update recommendation items or recommendation items; Each recommendation items is adjusted in real time; Thereby guarantee that the recommendation items of at every turn choosing can both meet user expectation more accurately with suitable, avoids occurring repeatedly downloading because the recommendation items of choosing is inaccurate the situation of application program of the same type or information; User's user satisfaction can be improved, system resource can be saved simultaneously.
With reference to Fig. 2, illustrate the application based on being downloaded the method embodiment two that file is recommended, further comprising the steps of after the step 103 of embodiment one:
Step 201 judges whether the said recommendation items of choosing is mounted, and if not, then carries out next step.
Because file type is limited; The recommendation items with said file type coupling that possibly occur choosing in the step 103 has been installed in the situation at terminal; At this moment, if the user is familiar with the application program installation situation at this terminal, then can find this situation; If the user is unfamiliar with the application program installation situation at terminal, then may duplicate the situation of installation.For this reason, avoid duplicating the situation of installation through the application based on being downloaded the automatic identification mode of system that file recommends.Concrete, can judge through the mode of scanning system registration table, through the title of the application program of having installed in the title of recommendation items and the registration table is mated; If can mate; Then the recommendation items of description selection is mounted, otherwise then explanation is not mounted.
Be mounted for the recommendation items of choosing; Can directly ignore this recommendation; Promptly do not recommend, can recommend an acquiescence yet, this acquiescence can be the application based on being downloaded the application program that system that file recommends hopes popularization.
Be appreciated that if a file type to plural recommendation items should be arranged, can also adopt following way in the recommendation items of choosing with said file type coupling:
Choose recommendation items with limit priority;
Judge whether said recommendation items is mounted, if then choose recommendation items with next priority;
Repeat a step, be selected all up to recommendation items.
Preferably; Because the user may manually delete some file in download in the file in download tabulation; Perhaps; Have new download items to add the file in download tabulation, in adopting the file in download tabulation beginning download time file in download the latest or the file in download that is positioned at heading when being downloaded file, being downloaded file may change because of user's deletion or newly downloaded 's adding.
Therefore, with reference to Fig. 3, illustrate the application based on being downloaded the method embodiment three that file is recommended, further comprising the steps of after the step 101 of embodiment one and/or embodiment two:
Step 301 judges whether the file in download tabulation changes, if having, then refreshes the file in download tabulation, and after choosing file again, returns step 101, otherwise, then carry out step 102.
Wherein, Judge whether file in download tabulation changes and when quantity changes, to confirm then that the file in download tabulation changes according to the quantity that adopts all download items in the current file in download tabulation of monitoring in real time; Otherwise, confirm that then the file in download tabulation does not change.
Preferably, the situation that the file in download tabulation is cleared also possibly occur, can not recommend this moment, a default application also can be set recommend.Being provided with of default application can be chosen according to actual conditions, for example, can be hope to be applied, user's favorable comment degree is the highest or the like, the application does not limit this.
With reference to Fig. 4, illustrate the application based on being downloaded the system embodiment one that file is recommended, comprise that filename acquisition module 10, file type determination module 20, recommendation items choose module 30 and display module 40.
Filename acquisition module 10 is used to obtain the filename that is downloaded file.Preferably; Filename acquisition module 10 comprises the filename reading unit; Be used for reading filename from the specific fields of procotol; For example the FileDisposition field through the http agreement reads, or from the URL that is downloaded file place downloading page, obtains, or from the said URL that is downloaded after file place downloading page is redirected, obtains.
File type determination module 20 is used for confirming the said file type that is downloaded file according to said filename.Preferably, file type determination module 20 comprises the suffix acquiring unit, is used to obtain the suffix that said filename is represented file type, and confirms file type according to said suffix.
Recommendation items is chosen module 30, is used for inquiring about the recommendation tables that prestores according to said file type, chooses the recommendation items of mating with said file type, obtains recommendation items information.
Display module 40 is used to show the recommendation items information of obtaining said recommendation items and shows.
Preferably, should also comprise the priority determination module, be used for confirming the priority of pairing at least two recommendation items of each file type of said recommendation tables based on being downloaded the system that file recommends.At this moment, recommendation items is chosen module 30 and can be comprised that recommendation items confirms that unit and recommendation items choose the unit.Recommendation items is confirmed the unit, is used for confirming at least two recommendation items corresponding with said file type.Recommendation items is chosen the unit, is used for choosing a high recommendation items of priority according to priority level from said at least two recommendation items, or chooses at least two recommendation items that priority comes the front.
Preferably, should also comprise priority update module, be used for the priority of the corresponding recommendation items of each file type of the said recommendation tables of real-time update based on being downloaded the system that file recommends.
Preferably, should also comprise the recommendation items update module, be used for the corresponding recommendation items of each file type of the said recommendation tables of real-time update based on being downloaded the system that file recommends.
Preferably, display module comprises following one or more unit: the title display unit is used to show the title of said recommendation items; The function information display unit is used to show the function information of said recommendation items; The link display unit is used to show the download address link of said recommendation items.
With reference to Fig. 5, illustrate the application based on being downloaded the system embodiment two that file is recommended, this system also comprises judge module 50, is used to judge whether the said recommendation items of choosing is mounted, and if not, then triggers display module 40 and shows.
Preferably, with reference to Fig. 6, illustrate the application based on being downloaded the system embodiment three that file is recommended; This system also comprises file in download tabulation monitoring modular 70, is used to judge whether said file in download tabulation changes, if having; Then refresh said file in download tabulation; And trigger filename acquisition module 10 and obtain the new filename that is downloaded file again, otherwise, then trigger file type determination module 20 and confirm file type.
Be appreciated that file in download tabulation monitoring modular comprises the quantity statistics unit, be used for judging whether the download items quantity of said file in download tabulation changes; If; Confirm that then said file in download tabulation changes, otherwise, confirm that then said file in download tabulation does not change.
The application chooses file wherein based on being downloaded the system that file recommends in the tabulation of file file in download; And definite its file type; Carry out the recommendation of corresponding application program according to file type; Can make the user confirm be fit to the application program of this document faster, what need not the user and bring because search this application program separately is constant.Because the application program of recommending is for collect and be stored in the recommendation tables in advance; Can confirm the application program that needs are recommended according to the factors such as usage quantity, favorable comment degree, stability or function of various application programs; Thereby the more convenient practicality of the application program that makes recommendation; Avoid the situation that occurs repeatedly downloading because application program does not meet user expectation, can save system resource.
Description through above embodiment can know, those skilled in the art can be well understood to the application and can realize by the mode that software adds essential general hardware platform.Based on such understanding; The part that the application's technical scheme contributes to prior art in essence in other words can be come out with the embodied of software product; This computer software product can be stored in the storage medium, like ROM/RAM, magnetic disc, CD etc., comprises that some instructions are with so that a computer equipment (can be a personal computer; Server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the application or embodiment.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and identical similar part is mutually referring to getting final product between each embodiment, and each embodiment stresses all is the difference with other embodiment.Especially, for device or system embodiment, because it is basically similar in appearance to method embodiment, so describe fairly simplely, relevant part gets final product referring to the part explanation of method embodiment.Apparatus and system embodiment described above only is schematic; Wherein said unit as the separating component explanation can or can not be physically to separate also; The parts that show as the unit can be or can not be physical locations also; Promptly can be positioned at a place, perhaps also can be distributed on a plurality of NEs.Can realize the purpose of present embodiment scheme according to the needs selection some or all of module wherein of reality.Those of ordinary skills promptly can understand and implement under the situation of not paying creative work.
More than carried out detailed introduction to the application provides based on being downloaded the method and system that file recommends; Used concrete example among this paper the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.