title: urllib: Get name of file from direct download link
body: <p><strong>Python 3.</strong> Probably need to use urllib to do this,</p>
  
  <p>I need to know how to send a request to a direct download link, and get the name of the file it attempts to save.</p>
  
  <p>(As an example, a KSP mod from CurseForge: <a href="https://kerbal.curseforge.com/projects/mechjeb/files/2355387/download" rel="noreferrer">https://kerbal.curseforge.com/projects/mechjeb/files/2355387/download</a>)</p>
  
  <p>Of course, the file ID (<code>2355387</code>) will be changed. It could be from any project, but always on CurseForge. (If that makes a difference on the way it's downloaded.)</p>
  
  <p>That example link results in the file:</p>
  
  <p><img src="https://i.imgur.com/5MYHKNn.png" alt="Download Screenshot"></p>
  
  <p>How can I return that file name in Python?</p>
  
  <p><strong>Edit:</strong> I should note that I want to avoid saving the file, reading the name, then deleting it if possible. That seems like the worst way to do this.</p>