Metadata-Version: 2.1
Name: idm
Version: 0.47
Summary: Downloader with Internet Download Manager (Windows)
Home-page: https://github.com/cumulus13/pyidm
Author: Hadi Cahyadi LD
Author-email: cumulus13@gmail.com
Maintainer: cumulus13 Team
Maintainer-email: cumulus13@gmail.com
License: GPL
Project-URL: Documentation, https://github.com/cumulus13/pyidm
Project-URL: Code, https://github.com/cumulus13/pyidm
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Requires-Python: >=2.7
Description-Content-Type: text/markdown
License-File: LICENSE.rst
Requires-Dist: argparse
Requires-Dist: configset
Requires-Dist: pydebugger
Requires-Dist: make-colors
Requires-Dist: pypiwin32 ; platform_system == "Windows"
Requires-Dist: comtypes ; platform_system == "Windows"
Provides-Extra: pyidm

# idm

Downloader with Internet Download Manager (Windows)

## Installing

Install and update using [pip](https://pip.pypa.io/en/stable/quickstart/):

$ pip install idm

idm supports Python 2 and newer, Python 3 and newer, and PyPy.

## Example

What does it look like? Here is an example of a simple pyidm program:

```python
from idm import IDMan

downloader = IDMan()
url = "http://test.com/test.exe"

downloader.download(url, r"c:\DOWNLOADS", output=None, referrer=None, cookie=None, postData=None, user=None, password=None, confirm=False, lflag=None, clip=False)
```

And it will open "Internet Download Manager (IDM)"

or run on terminal

```bash
$ python idm.py "http://test.com/test.exe" -p C:\DOWNLOADS -o test_output.exe
```

Example use with headers as postData and cookies:

```python
from idm import IDMan

downloader = IDMan()
url = "http://test.com/test.exe"

headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3', 
    'Authorization': "Bearer KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9",
    'Cookie': 'accountToken=KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9',
}
cookies = {
    'accountToken': 'KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9'
}

downloader.download(url, r"c:\DOWNLOADS", output=None, referrer=None, cookie=cookie, postData=headers, user=None, password=None, confirm=False, lflag=None, clip=False)
```

## Support

- Python 2.7+, Python 3.x
- Windows (only), for Linux you can't use pywget (pip install pywget)

## Links

- License: [GPL](https://github.com/cumulus13/pyidm/blob/master/LICENSE.rst)
- Code: [https://github.com/cumulus13/pyidm](https://github.com/cumulus13/pyidm)
- Issue tracker: [https://github.com/cumulus13/pyidm/issues](https://github.com/cumulus13/pyidm/issues)
