Summary of the invention
The application is mainly to provide a kind of method for down loading, router and computer readable storage medium, can be improved downloading
Efficiency.
In order to solve the above technical problems, the technical solution that the application uses is: a kind of method for down loading is provided, under described
Support method includes: the web page interlinkage that router obtains target to be downloaded;The router access is corresponding with the web page interlinkage
For webpage to obtain the information to be downloaded of the target to be downloaded, the information to be downloaded includes the downloading of the target to be downloaded
Location;The router is downloaded the target to be downloaded according to the download address.
Wherein, the information to be downloaded further includes the playback progress of the target to be downloaded, and the router is according to
The step of download address is downloaded the target to be downloaded include: the router according to the address to be downloaded to described
The content that target to be downloaded does not play is downloaded.
Wherein, the information to be downloaded further includes the update progress of the target to be downloaded, and the router is according to
It includes: that the router judges whether the target to be downloaded publishes in instalments that download address, which is downloaded step to the target to be downloaded,
Terminate;If not publishing in instalments end, the router obtains the renewal time of the target to be downloaded;The router is in the update
The target to be downloaded that time downloading updates.
Wherein, the step of router is downloaded the target to be downloaded according to the download address includes: institute
The currently used speed in router monitoring broadband is stated, to calculate the remaining operating speed in the broadband;The router distribution is small
In or equal to the remaining operating speed speed of download so that the router according to the speed of download to described under
Target is carried to be downloaded.
Wherein, the step of currently used state in router monitoring broadband include: the router according to it is current when
Between the use state of corresponding with current time time is obtained in history usage record, using as the currently used shape
State.
Wherein, router access webpage corresponding with the web page interlinkage with obtain the target to be downloaded under
The step of information carrying ceases includes: that the router downloads webpage corresponding with the web page interlinkage;The router is logged in history
The user name and password of the webpage are obtained in record;The router logs in the webpage to obtain the information to be downloaded.
Wherein, it is also wrapped after the step of router is downloaded the target to be downloaded according to the download address
It includes: the target to be downloaded after the completion of the router storage downloading;After the completion of the router generation and the downloading
The corresponding file link of target to be downloaded.
Wherein, the step of router is downloaded the target to be downloaded according to the download address includes: institute
State router according to can memory space calculate the download formats of the target to be downloaded;The router is according to the download address
The target to be downloaded is downloaded with the download formats.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of router, the road
It include processor and memory by device, the processor couples the memory, and the processor executes instruction at work
To realize such as above-mentioned method.
In order to solve the above technical problems, another technical solution that the application uses is: providing a kind of computer-readable deposit
Storage media, is stored thereon with computer program, and the computer program is executed by processor to realize such as above-mentioned method.
The beneficial effect of the application is: being in contrast to the prior art, the application obtains mesh to be downloaded by router
Target web page interlinkage;Router access webpage corresponding with web page interlinkage is to obtain the information to be downloaded of target to be downloaded, under
Information carrying breath includes the download address of target to be downloaded;The method that router is downloaded target to be downloaded according to download address,
So that user does not need to log in application program or links downloading manually according to address, download efficiency is improved.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiment is only a part of the embodiment of the application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Referring to Fig. 1, Fig. 1 is the flow diagram of method for down loading first embodiment provided by the present application, in the present embodiment
Method for down loading include:
S110: router obtains the web page interlinkage of target to be downloaded;
Specifically, router can obtain the web page interlinkage of target to be downloaded by the terminal connecting with router communication, tool
When body is implemented, the web page interlinkage of target to be downloaded can be sent to router, user by terminal, such as mobile phone or computer by user
Download command can also be clicked in terminal, terminal obtains the web page interlinkage of target to be downloaded according to the download command, and will include
The downloading request of the web page interlinkage is sent to router.
In a practical application scene, when user's target to be downloaded by terminal plays, for example the target to be downloaded is
Film, terminal obtains the playback progress of target to be downloaded to judge whether target to be downloaded finishes, if not finishing, eventually
End obtains the web page interlinkage of target to be downloaded, and the web page interlinkage is sent to router;In another practical application scene,
When user's target to be downloaded by terminal plays, for example the target to be downloaded is TV play, and terminal obtains target to be downloaded
Update progress is to judge whether target to be downloaded publishes in instalments end, if not publishing in instalments end, terminal is the webpage for obtaining target to be downloaded
Link, and the web page interlinkage is sent to router.
S120: router access webpage corresponding with web page interlinkage is to obtain the information to be downloaded of target to be downloaded;
Wherein, which includes the download address of target to be downloaded, title, can also include target to be downloaded
Playback progress, for example target to be downloaded is film, the as playback progress of film, can also include target to be downloaded update into
Degree, such as target to be downloaded are the TV play in the state of publishing in instalments.
Referring to Fig. 2, Fig. 2 is the idiographic flow schematic diagram of mono- embodiment of step S120 in Fig. 1, in an embodiment
In, step S120 is specifically included:
S120a: router downloads webpage corresponding with web page interlinkage;
Specifically, after router receives the web page interlinkage that terminal is sent, it is corresponding with web page interlinkage by the Internet download
Webpage.
S120b: router logs in the user name and password that webpage is obtained in record in history;
Wherein, which logs in that record can be the history Download History of router namely router is downloaded in history
The webpage is logged in the process and using user name and password when is recorded, be also possible to user in historical time and pass through terminal landing
The webpage and using username and password when is recorded, by obtaining the user name and password of webpage in historical record, do not need
User is manually entered, and improves convenience.
It should be understood that prompt then can be transmitted in router when not having the user name of the webpage and password in historical record
Information, to remind user to input user name and password.
S120c: router logon web page is to obtain information to be downloaded.
Specifically, logging in the webpage after router gets login user name and password, and webpage is independently divided
Analysis is to obtain information to be downloaded.
S130: router is downloaded target to be downloaded according to download address.
Optionally, router is downloaded according to the content that download address does not play target to be downloaded, is actually answered one
With in scene, when user watches, movie or television is acute, and when not finishing watching and needing to download, router downloads movie or television play not
The content of broadcasting, so that the content that direct viewing does not play when user watches next time, without repeating to watch or adjust
Progress bar improves convenience for users, and can save the memory space of router, certainly, can also be in other application scenarios
The full content of target to be downloaded is downloaded, so that user repeatedly watches.
It is the idiographic flow schematic diagram of mono- embodiment of step S130 in Fig. 1 refering to Fig. 3, Fig. 3, in this embodiment,
Step S130 is specifically included:
S130a: router judges whether target to be downloaded publishes in instalments end:
Specifically, in this embodiment, the information to be downloaded in step S120 includes the update progress of target to be downloaded,
Router judges whether target to be downloaded publishes in instalments end by the update progress, if not publishing in instalments end, thens follow the steps S130b,
If publishing in instalments end, terminates or otherwise target to be downloaded is downloaded.
S130b: router obtains the renewal time of target to be downloaded;
Specifically, router obtains the renewal time of target to be downloaded by the history renewal time of webpage.
S130c: the target to be downloaded that router is updated in renewal time downloading.
Specifically, router in renewal time each time, refreshes webpage with updated according to download address downloading
Target to be downloaded, it is to be updated without manual refreshing webpage etc., improve convenience for users.
Referring to Fig. 4, Fig. 4 is the idiographic flow schematic diagram of another embodiment of step S130 in Fig. 1, in another implementation
In mode, step S130 is specifically included:
S1301: router monitors the currently used speed in broadband, to calculate the remaining operating speed in the broadband;
Specifically, currently used speed of the broadband according to the currently used condition monitoring broadband in broadband, for example broadband is worked as
Preceding operating speed is 3M, and total speed in broadband is 10M, then remaining operating speed is 7M.
Optionally, in another practical application scene, router obtained in history usage record according to current time with
The operating speed of current time corresponding time, using as currently used speed, for example, the use equipment in such as broadband on daytime compared with
More, operating speed is larger, and the use equipment at night is less, and operating speed is lower.
S1302: router distribution is less than or equal to the speed of download of remaining operating speed, so that router is according to downloading
Speed is downloaded target to be downloaded.
Specifically, router, according to the remaining operating speed calculated in step S1301, distribution does not influence currently making for broadband
With the speed of download of speed, so that not influencing width when router is downloaded target to be downloaded according to the speed of download
The normal use of the currently used equipment of band, for example, total speed in broadband is 10M, currently used speed is 3M, then can distribute and be less than
Or the speed of download equal to 7M is downloaded, when operating speed be 0, then can distribute at full speed download.
Optionally, after the completion of downloading in step S130, router sends the prompt that downloading is completed, to remind user to download
It completes, which can be prompted by the prompt information being sent to the user terminal, can also be mentioned by router itself
Show, for example router makes a sound or light prompt.
Method for down loading in the present embodiment obtains the web page interlinkage of target to be downloaded by router;Router access and net
Page links corresponding webpage to obtain the information to be downloaded of target to be downloaded, and information to be downloaded includes the downloading of target to be downloaded
Location;The method that router is downloaded target to be downloaded according to download address so that user do not need to log in application program or
Downloading manually is linked according to address, improves download efficiency.
It is the flow diagram of method for down loading second embodiment provided by the present application refering to Fig. 5, Fig. 5, in the present embodiment
Step S210 and S220 is identical as the step S110 and S120 in above-mentioned first embodiment, and details are not described herein, in the present embodiment
Method for down loading further include:
S230: router is downloaded target to be downloaded according to download address;
It is the idiographic flow schematic diagram of mono- embodiment of step S230 in Fig. 5 refering to Fig. 6, Fig. 6, in an embodiment
In, step S230 is specifically included:
S2301: router according to can memory space calculate the download formats of target to be downloaded;
Specifically, router obtain router can memory space size, and calculate target to be downloaded under different
Carry under format, such as the file size under super clear format, high-definition format or SD format, thus selection can memory space can hold
The download formats received, when can memory space can accommodate multiple download formats when, can preferentially select higher format to be downloaded.
Optionally, when router can be downloaded target of the memory space inadequate to accommodate any download formats when,
Router deletes stored file in memory space, and deletion mode can be deleted according to the sequencing of history download time
It removes, more long file of preferential erasing time download time can also be deleted according to the size of file, preferentially be deleted biggish
File deletes file compatible with the size of target to be downloaded.
S2302: router is downloaded target to be downloaded with download formats according to download address.
Optionally, target to be downloaded can also be downloaded with preset download formats in step S230, set-up mode
It can be in such a way that user independently sets.
S240: the target to be downloaded after the completion of router storage downloading;
Specifically, the storage that the target to be downloaded after the completion of downloading is stored in router is empty after the completion of router downloading
Between in, and can according to the title of target to be downloaded formed file, the target to be downloaded after the completion of downloading is stored in this document
In folder.
S250: router generates file corresponding with the target to be downloaded after the completion of downloading and links.
Specifically, when router storage downloading after the completion of target to be downloaded after, generate with download after the completion of it is to be downloaded
The corresponding file link of target, and this document link is sent to the user terminal, so that user can be linked by this document
Target to be downloaded is directly played at the terminal, or passes through the mesh to be downloaded after the completion of this document link at the terminal inquiry downloading
Target store path, thus the target to be downloaded after the completion of copying the downloading.
Method for down loading in the present embodiment further passes through the target to be downloaded after the completion of router storage downloading, router
The method that file corresponding with the target to be downloaded after the completion of downloading links is generated, so that the target to be downloaded after the completion of downloading exists
While being not take up the memory space of terminal, user can also directly play the target to be downloaded after the completion of downloading by terminal.
It is the schematic block diagram of router embodiment provided by the present application refering to Fig. 7, Fig. 7, the router packet in the present embodiment
Processor 310 and memory 320 are included, processor 310 is coupled with memory 320, and processor 310 is executed instruction at work with reality
Method for down loading in existing any of the above-described embodiment.
Wherein, processor 310 can also be known as CPU (Central Processing Unit, central processing unit).Place
Managing device 310 may be a kind of IC chip, the processing capacity with signal.Processor 310 can also be general processor,
Digital signal processor (DSP), specific integrated circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable patrol
Collect device, discrete gate or transistor logic, discrete hardware components.General processor can be microprocessor or this at
Reason device is also possible to any conventional processor, but is not limited only to this.
It is the schematic block diagram of computer readable storage medium embodiment provided by the present application, the present embodiment refering to Fig. 8, Fig. 8
In computer-readable recording medium storage have computer program 410, which can be executed by processor with reality
Method for down loading in existing any of the above-described embodiment.
Optionally, which can be USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The terminal devices such as the medium or computer of sequence code, server, mobile phone, plate.
Above is only an example of the present application, it is not intended to limit the scope of the patents of the application, it is all to utilize this Shen
Please equivalent structure or equivalent flow shift made by specification and accompanying drawing content, be applied directly or indirectly in other relevant skills
Art field similarly includes in the scope of patent protection of the application.