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.
import wgetdef 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)