I'm trying to download file with Python using IE:
from win32com.client import DispatchWithEvents
class EventHandler(object):
def OnDownloadBegin(self):
pass
ie = DispatchWithEvents("InternetExplorer.Application", EventHandler)
ie.Visible = 0
ie.Navigate('http://website/file.xml')
After this, I'm getting a window asking the user where to save the file. How can I save this file automatically from python?
I need to use some browser, not urllib or mechanize, because before downloading file I need to interact with some ajax functionality.