title: How to download the complete project structure from cdnjs using Python
body: <p>I want to download the complete project from the cdnjs cloud to local folder. 
  I have tried this:</p>
  
  <pre><code>import requests
  files = requests.get("https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS-MML_HTMLorMML%2CSafe.js&amp;#038;ver=4.1")
  with open("mathjax.js","w") as file:
      file.write(files.text)
  </code></pre>
  
  <p>Now this download the js file. When I tried using the same code to get the project instead of the js file, the output was weird.  </p>
  
  <p>So I tried using the cdnjs and check what happens when I use cdnjs cloud and when I use local file.</p>
  
  <p>I have got this difference as shown in the images:  </p>
  
  <p><strong>Using cdnjs</strong>:<br>
  <a href="https://i.stack.imgur.com/mPQil.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mPQil.png" alt="cdnjs output"></a></p>
  
  <p><strong>Using Local file</strong>:<br>
  <a href="https://i.stack.imgur.com/3d6H7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3d6H7.png" alt="local output"></a>  </p>
  
  <p>How I can get the similar structure as I get when I use cdnjs?<br>
  Kindly, advise me.</p>