title: Automatically changing name of downloaded files using Python
body: <p>This script loops through a list of url's which download csv files:</p>
  
  <pre><code>#!/usr/bin/python
  
  import subprocess
  
  file = open('links20151111.txt','r')
  for url in file:
          print ('[+] downloadin ' + url.strip())
          subprocess.call(['wget', '--content-disposition', url.strip()])
  </code></pre>
  
  <p>The url's do not contain the file names.</p>
  
  <p>The thing that needs to be done is to replace all "-" with "_" in the file names.
  A file name could be like this, "traffic_injuries_2001-2014.csv".</p>