Downloader Object¶
-
class
getwebfilesinator.downloaders.downloaders_defaults.
Downloader
(client)[source]¶ Class for create downloaders for GetWebFilesInator
-
cfg
= None¶ The configuration object.
-
client
= None¶ The client object.
-
download
(sfile)[source]¶ Process a sfile
Parameters: sfile (Edo) – a Edo object (which is a dict with attributes) Return type: any. This method can return:
False
: if we want to stop processing the file.True
orNone
: if we want the client guess the action from the filename.'zip'
or'plain'
: to force the action to take.- a
callable
which acceptssfile
andcfg
as parameters if we want to pass the action to take.
-
get_type
= ''¶ Name of the get_type used to map the downloader.
-
guess_priority
= 0¶ Gives a priority for the
guess_type
type method
-