joyzoursky / docker-python-chromedriver

Dockerfile for running Python Selenium in headless Chrome (Python 2.7 / 3.6 / 3.7 / 3.8 / Alpine based Python / Chromedriver / Selenium / Xvfb included in different versions)
https://hub.docker.com/r/joyzoursky/python-chromedriver/
MIT License
638 stars 196 forks source link

download folder path? #8

Open vincentzhou2013 opened 5 years ago

vincentzhou2013 commented 5 years ago

I'm using this container to download a file from a web site. but I cannot find the download folder anyway. Could you give me the download folder path or if it doesn't exist, how to create it? Thanks.

timothyshort commented 5 years ago

I'm in the same boat. Just using my local (or Vagrant), I can use

options.add_experimental_option(
        'prefs', {
            'download.default_directory': '/usr/workspace/',
            'download.prompt_for_download': False,
            'download.directory_upgrade': True,
            'safebrowsing.enabled': False,
            'safebrowsing.disable_download_protection': True
        }
)

but this does not seem to work here. It looks like it's putting temporary or partial download files in the /tmp folder. $ ls -a /tmp will show files that seem to correspond with the downloads, but it doesn't apear to do it correctly.

berwinjoule commented 5 years ago

I'm using this container to download a file from a web site. but I cannot find the download folder anyway. Could you give me the download folder path or if it doesn't exist, how to create it? Thanks.