-
Notifications
You must be signed in to change notification settings - Fork 0
rundimeco/extract_and_overwrite
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This program aims at simplifying the download and extraction of zip files. The initial use case is the frequent download and extraction of the same zip files form the same urls. It is a pain to do it by hand, for instance because some OS will rename the path of the extracted files if there is a previous version. Without proper configuration, unzipping numerous times the same zip file will result in the creation of numerous directories. Sometimes, you will prefer to overwrite existing ones. For instance, if you unzip a file named toto.zip and the directory "toto" already exists, your new data will ne extracted in "toto(1)" then "toto(2)" etc... You will find below a quick explanation of the files you have to configure. Please note that by default it uses data from the french chess federation (our use case). [FILES] main.py main program config.txt configuration file (see below for format) proxy(optional) proxy settings (see below for format) ------------ [config.txt] ------------ For each ZIPFILE you want to donwload, indicate its URL and the PATH it will be stored (cheminZIP). Indicate as well the PATH where it will be unzipped (cheminFILES). The format is: [ZIPFILE] NB: it is juste a name url: URL cheminZIP: PATH chemin: PATH ------------ [proxy] ------------ If tour connected through a proxy, this file must be created. The format is a python dictionary where the attributes are the protocols, and the values are the proxy url+ proxy port. If your proxy for http protocol is "proxy.toto.com" and the port is 666, the proxy file should contain these informations: {'http':'proxy.toto.com:666} If for the ftp protocol you have a proxy called proxy.titi.com and the port is 69, your proxy file will be like this: {'http' : 'proxy.toto.com:666', 'ftp' : 'proxy.titi.com:69'}
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published