Optimized for python 3.6
Project for downloading - in an semi-automatic way - solo images and complete albums from imgur.
For installing the requirements, in your venv or anaconda env, just run the following command:
pip install -r requirements.txt
.
└── imgur-album_downloader
├── data
│ └── downloaded-images
│ ├── img-1.jpg
│ ├── ...
│ └── img-25.jpg
├── docs
│ └── CREDITS
├── src
│ ├── __init__.py
│ ├── helpers.py
│ ├── imgur.py
│ └── settings.json
├── tests
│ └── unittests
│ ├── __init__.py
│ └── test_helpers.py
├── .gitignore
├── LICENSE
├── README.md
└── requirements.txt
- data: The data dir. Group of non-script support files.
- docs: The documentation dir.
- src: The scripts & source code dir.
- tests: The unittests dir.
Section aimed on clarifying some running issues.
For running it, at the ~/src
directory just run:
python imgur.py 'imgur_url' 'filepath'
or, if importing it as a module, just run:
from imgur import ImgurDownload
if __name__ == '__main__':
ImgurDownload('imgur_url', 'filepath').__call__()
{
"client_id": "client_id",
"client_secret": "client_secret"
}
obs: in order to run this application you must have a json file at ~/src/settings.json
. This json must follow the structure above.