idm


Nameidm JSON
Version 0.49 PyPI version JSON
download
home_pagehttps://github.com/cumulus13/pyidm
SummaryDownloader with Internet Download Manager (Windows)
upload_time2024-09-01 04:58:00
maintainercumulus13 Team
docs_urlNone
authorHadi Cahyadi LD
requires_python>=2.7
licenseGPL
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            

# 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", "test_output.exe")
```

And "Internet Download Manager (IDM)" will open then immediately download the URL

or run on terminal/cmd

```bash
> python idm.py "http://test.com/test.exe" -p C:\DOWNLOADS -o test_output.exe -c -ua "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" -r "http://test.com/test.exe" -U admin -P admin123 -D "Authorization=Bearer KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9\nCookie=accountToken=KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9" -C "accountToken=KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9;"

```

Example use with headers as postData, cookies and other parameters:

```python
from idm import IDMan

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

headers = { 
    'Authorization': "Bearer KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9",
    'Cookie': 'accountToken=KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9',
}
cookies = {
    'accountToken': 'KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9'
}

username = "admin"
password = "admin123"
confirm = True
user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36"

downloader.download(url, r"c:\DOWNLOADS", "test_output.exe", "http://test.com/test.exe", cookie, headers, username, password, confirm, user_agent)
```

## Command line usage
you can use `idm` or `pyidm`
```bash
usage: idm/pyidm [-h] [-p PATH] [-o OUTPUT] [-c] [-r REFERRER] [-C COOKIE] [-D POST_DATA] [-U USERNAME] [-P PASSWORD]
              [-ua USER_AGENT] [--config CONFIG]
              [URLS ...]

Command line downloader with/Via Internet Download Manager(IDM), type 'c' for get url from clipboard

positional arguments:
  URLS                  url to download, or "c" to get url from clipboard

options:
  -h, --help            show this help message and exit
  -p PATH, --path PATH  Path to save
  -o OUTPUT, --output OUTPUT
                        Save with different name
  -c, --confirm         Confirm before download
  -r REFERRER, --referrer REFERRER
                        Url referrer
  -C COOKIE, --cookie COOKIE
                        Cookie string or dict
  -D POST_DATA, --post-data POST_DATA
                        Post Data string or dict
  -U USERNAME, --username USERNAME
                        Username if require
  -P PASSWORD, --password PASSWORD
                        Password if require
  -ua USER_AGENT, --user-agent USER_AGENT
                        Send with custom User-Agent string
  --config CONFIG       set config, format section:option:value, for list valid section/option type "doc"
```
## Support

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

## Tips
`always provide ‘referrer’, some sites must have referrer in header`

## 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)

## Author
[Hadi Cahyadi](mailto:cumulus13@gmail.com)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/cumulus13/pyidm",
    "name": "idm",
    "maintainer": "cumulus13 Team",
    "docs_url": null,
    "requires_python": ">=2.7",
    "maintainer_email": "cumulus13@gmail.com",
    "keywords": null,
    "author": "Hadi Cahyadi LD",
    "author_email": "cumulus13@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a7/1b/397e50d21fd84289f2542d03d70519ad325c5810af4ec51abe7d19e913c1/idm-0.49.tar.gz",
    "platform": null,
    "description": "\r\n\r\n# idm\r\n\r\nDownloader with Internet Download Manager (Windows)\r\n\r\n## Installing\r\n\r\nInstall and update using [pip](https://pip.pypa.io/en/stable/quickstart/):\r\n\r\n$ pip install idm\r\n\r\nidm supports Python 2 and newer, Python 3 and newer, and PyPy.\r\n\r\n## Example\r\n\r\nWhat does it look like? Here is an example of a simple pyidm program:\r\n\r\n```python\r\nfrom idm import IDMan\r\n\r\ndownloader = IDMan()\r\nurl = \"http://test.com/test.exe\"\r\n\r\ndownloader.download(url, r\"c:\\DOWNLOADS\", \"test_output.exe\")\r\n```\r\n\r\nAnd \"Internet Download Manager (IDM)\" will open then immediately download the URL\r\n\r\nor run on terminal/cmd\r\n\r\n```bash\r\n> python idm.py \"http://test.com/test.exe\" -p C:\\DOWNLOADS -o test_output.exe -c -ua \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36\" -r \"http://test.com/test.exe\" -U admin -P admin123 -D \"Authorization=Bearer KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9\\nCookie=accountToken=KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9\" -C \"accountToken=KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9;\"\r\n\r\n```\r\n\r\nExample use with headers as postData, cookies and other parameters:\r\n\r\n```python\r\nfrom idm import IDMan\r\n\r\ndownloader = IDMan()\r\nurl = \"http://test.com/test.exe\"\r\n\r\nheaders = { \r\n    'Authorization': \"Bearer KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9\",\r\n    'Cookie': 'accountToken=KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9',\r\n}\r\ncookies = {\r\n    'accountToken': 'KN9WW7k5gKgCnQLpnmWWM7LytAuSUwb9'\r\n}\r\n\r\nusername = \"admin\"\r\npassword = \"admin123\"\r\nconfirm = True\r\nuser_agent = \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36\"\r\n\r\ndownloader.download(url, r\"c:\\DOWNLOADS\", \"test_output.exe\", \"http://test.com/test.exe\", cookie, headers, username, password, confirm, user_agent)\r\n```\r\n\r\n## Command line usage\r\nyou can use `idm` or `pyidm`\r\n```bash\r\nusage: idm/pyidm [-h] [-p PATH] [-o OUTPUT] [-c] [-r REFERRER] [-C COOKIE] [-D POST_DATA] [-U USERNAME] [-P PASSWORD]\r\n              [-ua USER_AGENT] [--config CONFIG]\r\n              [URLS ...]\r\n\r\nCommand line downloader with/Via Internet Download Manager(IDM), type 'c' for get url from clipboard\r\n\r\npositional arguments:\r\n  URLS                  url to download, or \"c\" to get url from clipboard\r\n\r\noptions:\r\n  -h, --help            show this help message and exit\r\n  -p PATH, --path PATH  Path to save\r\n  -o OUTPUT, --output OUTPUT\r\n                        Save with different name\r\n  -c, --confirm         Confirm before download\r\n  -r REFERRER, --referrer REFERRER\r\n                        Url referrer\r\n  -C COOKIE, --cookie COOKIE\r\n                        Cookie string or dict\r\n  -D POST_DATA, --post-data POST_DATA\r\n                        Post Data string or dict\r\n  -U USERNAME, --username USERNAME\r\n                        Username if require\r\n  -P PASSWORD, --password PASSWORD\r\n                        Password if require\r\n  -ua USER_AGENT, --user-agent USER_AGENT\r\n                        Send with custom User-Agent string\r\n  --config CONFIG       set config, format section:option:value, for list valid section/option type \"doc\"\r\n```\r\n## Support\r\n\r\n- Python 2.7+, Python 3.x\r\n- Windows (only), for Linux you can't use pywget (pip install pywget)\r\n\r\n## Tips\r\n`always provide \u2018referrer\u2019, some sites must have referrer in header`\r\n\r\n## Links\r\n\r\n- License: [GPL](https://github.com/cumulus13/pyidm/blob/master/LICENSE.rst)\r\n- Code: [https://github.com/cumulus13/pyidm](https://github.com/cumulus13/pyidm)\r\n- Issue tracker: [https://github.com/cumulus13/pyidm/issues](https://github.com/cumulus13/pyidm/issues)\r\n\r\n## Author\r\n[Hadi Cahyadi](mailto:cumulus13@gmail.com)\r\n",
    "bugtrack_url": null,
    "license": "GPL",
    "summary": "Downloader with Internet Download Manager (Windows)",
    "version": "0.49",
    "project_urls": {
        "Code": "https://github.com/cumulus13/pyidm",
        "Documentation": "https://github.com/cumulus13/pyidm",
        "Homepage": "https://github.com/cumulus13/pyidm"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b7639eb7f14bbe095b4e4bc6ee921fac5938f2ab7d847ad47cbf690526df7a02",
                "md5": "f6586d098f4df8eb439abbc40cc55bf9",
                "sha256": "f0ead5197fc150d42dbc5820ebb143b5f705a3328d9b6a5b797353379de4ddea"
            },
            "downloads": -1,
            "filename": "idm-0.49-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f6586d098f4df8eb439abbc40cc55bf9",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=2.7",
            "size": 9916,
            "upload_time": "2024-09-01T04:57:58",
            "upload_time_iso_8601": "2024-09-01T04:57:58.698484Z",
            "url": "https://files.pythonhosted.org/packages/b7/63/9eb7f14bbe095b4e4bc6ee921fac5938f2ab7d847ad47cbf690526df7a02/idm-0.49-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a71b397e50d21fd84289f2542d03d70519ad325c5810af4ec51abe7d19e913c1",
                "md5": "66a3d87acba147640b1d41a4d1213609",
                "sha256": "ecdb64d2bc5af565302ec0200beda784c7129eb311bf9be628da0b5b0c7992e1"
            },
            "downloads": -1,
            "filename": "idm-0.49.tar.gz",
            "has_sig": false,
            "md5_digest": "66a3d87acba147640b1d41a4d1213609",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=2.7",
            "size": 7164,
            "upload_time": "2024-09-01T04:58:00",
            "upload_time_iso_8601": "2024-09-01T04:58:00.492270Z",
            "url": "https://files.pythonhosted.org/packages/a7/1b/397e50d21fd84289f2542d03d70519ad325c5810af4ec51abe7d19e913c1/idm-0.49.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-01 04:58:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "cumulus13",
    "github_project": "pyidm",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "idm"
}
        
Elapsed time: 0.35177s