title: How to change the download location using python and selenium webdriver
body: <p>I've written the code to download files for each month in a range of years for every precinct and place. However, since I can't change the name of the files through selenium, I was hoping to download each place's files into a separate folder. Here's my code</p>
  
  <pre><code>        options = webdriver.ChromeOptions()
          options.add_argument('download.default_directory=/Users/name/Downloads/' + p)
          driver = webdriver.Chrome(chrome_options=options, executable_path="/Users/name/Downloads/chromedriver")
          driver.get("https://jpwebsite.harriscountytx.gov/PublicExtracts/search.jsp")
  </code></pre>
  
  <p>where <code>p</code> is the id of a particular precinct and place. Unfortunately the files are downloaded to <code>/Users/name/Downloads</code>. I've added chromedriver to <code>PATH</code> and just used </p>
  
  <pre><code>driver = webdriver.Chrome(chrome_options=options)
  </code></pre>
  
  <p>but that gives me this: </p>
  
  <pre><code>[Errno 2] No such file or directory. 
  </code></pre>
  
  <p>What am I doing wrong? Thanks!</p>