Git Product home page Git Product logo

python-idm-helper's Introduction

python-idm-helper

Python IDM Helper will let you send any link inside python directly to IDM.

You can use this to automate your tool if you want better download speed with IDM.


EXAMPLE USAGE:

url = 'http://www.internetdownloadmanager.com/idman401.exe'

output_folder = Path.cwd()
output_filename = 'idman.exe'
user_agent = None
flag = 3    # see above the flag information
idm = IDMHelper(url, str(output_folder), output_filename, flag)
idm.send_link_to_idm()      # for simple method with limited parameters
# idm.send_link_to_idm2()   # with all parameters

PARAMETERS

  • bstrUrl - Url to download
  • bstrReferer - Referer
  • bstrCookies - cookies
  • bstrData - PostData (if using POST method)
  • bstrUser - UserName (if server requires authentication)
  • bstrPassword - Password
  • bstrLocalPath - LocalPath (where to save a file on your computer)
  • bstrLocalFileName - LocalFileName (file name to save with)
  • lFlags - Flags, can be zero or a combination of the following values:
    • 1 - do not show any confirmations dialogs;
    • 2 - add to queue only, do not start downloading.
  • reserved1 - can be used to set a specific user-agent header with the following way: reserved1.vt = VT_BSTR;
    reserved1.bstrVal = pbstrUA;
    if you don’t need to specify a user agent, then reserved1.vt should be set to VT_EMPTY;
  • reserved2 - not used, you should set reserved2.vt to *VT_EMPTY*;

API REFERENCES:


python-idm-helper's People

Contributors

zackmark29 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-idm-helper's Issues

possible to select m3u8 highest resolution stream

videos with multiple resolutions work fine downloading as a video but not if add from python-idm-dialog.

every think seems to match in the download details but always just get the .m3u8 which shows the multiple streams if open in text editor.

seems like needs a way to tell it what stream resolution to download out the four offered.

/sep/video/fba7edd6,aafc3e54,753a6a70,2153e31d,467c9899/audio/7d58f52c,97fcf5a8,9cdc7790/master.json?query_string_ranges=1&base64_init=1

if cannot be done I'll just keep using browser dialog.

error on latest IDM version

Traceback (most recent call last):
File "C:\Users\ad\Downloads\Compressed\python-idm-helper-main\python-idm-helper-main\idm\IDMHelper.py", line 93, in
idm.send_link_to_idm(url=url,output_folder=output_folder, output_file_name=output_filename,flag=flag)
File "C:\Users\ad\Downloads\Compressed\python-idm-helper-main\python-idm-helper-main\idm\IDMHelper.py", line 67, in send_link_to_idm
self._idm.SendLinkToIDM(
_ctypes.COMError: (-2147467263, 'Not implemented', (None, None, None, 0, None))

`flag = 1 # see above the flag information
idm = IDMHelper()
# idm.send_link_to_idm()
url = 'https://v3-xg-web-pc.ixigua.com/eaad3823451cf23979760899f407ca23/64eff868/video/tos/cn/tos-cn-ve-4/732962424e4a420a97ffcbcd993d3ff8/?a=1768&ch=0&cr=0&dr=0&er=0&cd=0%7C0%7C0%7C0&cv=1&br=1815&bt=1815&cs=0&ds=4&ft=eInJ72BHjw~9woZLDkLnzJLO5jiTBz0iXv84-flMyeF&mime_type=video_mp4&qs=0&rc=NTpoaDo3OWloZjUzOTs5O0BpMzp4cWQ6ZjlqaDMzNDczM0A0NjYwLWExNl8xYy0uMGMvYSNxbDRzcjQwNTRgLS1kLS9zcw%3D%3D&btag=e00028000&dy_q=1693444470&l=20230831091430B04D8048DE2C0EA65D89'
output_folder='E:/CODE/IXIGUA/ixigua'

output_filename='如果没有监控,我们不会在此相遇 .mp4'
referer='https://www.ixigua.com/7173957970072601128'
user_agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36'
idm.send_link_to_idm(url=url,output_folder=output_folder, output_file_name=output_filename,flag=flag)`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.