class documentation
class Downloader(object):
The Downloader
This is the main downloader module. It will save all the requested data into the basedir folder, if requested it can overwrite already downloaded data (replacetree). One downloader work with one fetcher and can use many different Savers.
| Parameters | |
| basedir | A base folder path to save files. |
| replacetree | A flag to indicate that the folder should be replaced (overwrite files) |
| show | A flag to indicate that a print-out of the request should be shown |
| fetcher | A fetcher instance. |
| saverlist | A list of Saver type objects. |
| Method | enable |
Request to save RAW data before QC |
| Method | isgood |
A check method for the Downloader |
| Method | work |
Main download method. |
| Method | __init__ |
Undocumented |
| Method | _buildfolder |
Undocumented |
| Method | _makefolders |
Undocumented |
| Method | _resume |
Undocumented |
| Instance Variable | __saveraw |
Undocumented |
| Instance Variable | _basedir |
Undocumented |
| Instance Variable | _fetcher |
Undocumented |
| Instance Variable | _force |
Undocumented |
| Instance Variable | _savers |
Undocumented |
| Instance Variable | _show |
Undocumented |
def work(self, request):
Main download method.
This method will receive a request object, download the data and save it to the base folder
| Parameters | |
request:request | A request to work on |
| Returns | |
None | Undocumented |