how to download a file in python using idm

Solutions on MaxInterview for how to download a file in python using idm by the best coders in the world

showing results for - "how to download a file in python using idm"
Anna
10 Nov 2019
1import comtypes.client as cc
2import comtypes
3
4referrer = ""
5cookie = ""
6postData = ""
7user = ""
8password = ""
9cc.GetModule(["{PUT_UUID_HERE}",1,0])
10# not sure about the syntax here, but cc.GetModule will tell you the name of the wrapper it generated
11import comtypes.gen.IDManLib as IDMan
12idm1 = cc.CreateObject("IDMan.CIDMLinkTransmitter", None, None, IDMan.ICIDMLinkTransmitter2)
13idm1.SendLinkToIDM("http://www.internetdownloadmanager.com/idman401.exe",
14referrer, cookie, postData, user, password, r"C:\\", "idman401.exe", 0)