title: CSV File Loop Only Loops Once
body: <p>The script does essentially what I want it to do but it only produces one file. The goal is for the file to read all the links in one column, download each file, rename it to names in the names in a different column and add .jpeg exstention to each one</p>
  
  <pre><code>import csv
  import urllib.request
  import openpyxl
  import shutil, os
  with open("C:\\OB\\827.csv") as csvfile:
      reader = csv.reader(csvfile, delimiter=',', quotechar='|')
      for column in reader:
       fileurl = column[12]
       filename = column[9]
      test = urllib.request.urlretrieve(fileurl, "C:\\OB\\" + filename +".jpeg")
      print(test)
  </code></pre>
  
  <blockquote>
    <p>('C:\OB\Brian Weeks.jpeg', )</p>
  </blockquote>
  
  <p>I get the file I actually want but just 1 of 12 or so. What am I doing wrong here?</p>