title: How to download a pdf with python or curl?
body: <p>I want to download a PDF file using Python. I am aware that there are several SO Q&amp;A about this issue. However, I was only able to find cases where the <code>URL</code> follows this format <code>http://www.example.com/example.pdf</code>.</p>
  
  <p>The <code>URL</code> I use to download the file is the following: <code>http://dof.gob.mx/nota_to_pdf.php?fecha=25/07/2018&amp;edicion=MAT</code>. If I open a browser and paste the <code>URL</code> in the search bar, I am taken to a blank page where I am prompted to save the file.</p>
  
  <p>When I try to use the methods shown in several tutorial sites, or try to follow the advise I find in other SO questions, I am only able to download the HTML, the same thing happens when I try to do it using <code>curl</code> in the terminal.</p>
  
  <p>Any help will be deeply appreciated.</p>