title: Automatically Downloading Files from an ASPX Website in Python
body: <p>This is my first time posting on stack overflow, and I look forward to getting more involved with the community. I need to download, rename, and save many Excel files from an ASPX website, but I cannot access these Excel files directly via a URL (i.e., the URL does not end with "excelfilename.csv"). What I can do is go to a URL which initiates the download of the file. An example of the URL is below.</p>
  
  <p><a href="https://www.websitename.com/something/ASPXthing.aspx?ReportName=ExcelFileName&amp;Date=SomeDate&amp;reportformat=csv" rel="nofollow">https://www.websitename.com/something/ASPXthing.aspx?ReportName=ExcelFileName&amp;Date=SomeDate&amp;reportformat=csv</a></p>
  
  <p>The inputs that I want to vary via loops are "ExcelFileName" and "SomeDate". I know one can fetch these files with urllib when the Excel files can be accessed directly via a URL, but how can I do it with a URL like this one?</p>
  
  <p>Thanks in advance for helping out!</p>