65013511

Date: 2020-11-25 22:26:56
Score: 7
Natty: 4.5
Report link

I have a similar problem, I have to download a file from a site with selenium python, but it is a rar instead of a zip. I tried this:

profile = webdriver.FirefoxProfile()
profile.set_preference('browser.download.folderList', 2)
profile.set_preference('browser.download.manager.showWhenStarting', False)
profile.set_preference('browser.download.dir', '/tmp')
profile.set_preference('browser.helperApps.neverAsk.saveToDisk', 'archive/rar')

but it does not work. I also tried

profile = webdriver.FirefoxProfile()
profile.set_preference('browser.download.folderList', 2)
profile.set_preference('browser.download.manager.showWhenStarting', False)
profile.set_preference('browser.download.dir', '/tmp')
profile.set_preference('browser.helperApps.neverAsk.saveToDisk', 'application/rar')

Any ideas what i am missing?

Reasons:
  • Blacklisted phrase (1): I have a similar problem
  • Blacklisted phrase (1): I have to do
  • Blacklisted phrase (1): Any ideas
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2): I have a similar problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Neskelogth