title: Downloading PDF files though a list in python
body: <p>So, I have a big list of links to pdf files that I need to download (500+) and I was trying to make a program to download them all because I don't want to manually do them. This is what I have and when I try to run it, the console just opens up and closes.</p>
  
  <p>(I am not originally from python, I know C# so this is new to me)</p>
  
  <pre class="lang-c prettyprint-override"><code>import wget
  
  def main():
      f = open("list.txt", "r")
  
      f1 = f.readlines()
      for x in f1:
          wget.download(x, 'C:/Users/ALEXJ/OneDrive/Desktop/Books')
          print("Downloaded" + x)
  </code></pre>