title: Issue with downloading a file from a given URL and saving it using Google Colab
body: <p>I have some URLs of some java files located in GitHub. I want to pass the URL to a method, download the file and save it with a different unique name.</p>
  <p>This is the code I wrote and it has the issue mentioned below the code snippet.</p>
  <pre><code>!pip install wget
  
  import wget
  from datetime import datetime
  
  
  def download_file(url):
  
     # Creating file name
     now_time =datetime.now()
     millisec = now_time.timestamp() * 10000
     millisec = str(millisec).split('.')[0]
     partial_name = url.split('/')[-1].split('.')[0]
     file_name = partial_name + millisec + '.java'
  
     # Download the file and save in colab location
     wget.download(url, file_name)
  
     return file_name
  </code></pre>
  <p>A sample URL I pass to this method is 'https://github.com/e32wong/CloCom/blob/master/CloneDigger.java'</p>
  <p>The issue is,   <strong>the downloaded java file's content appears as an HTML content full of tags.</strong>  But, the original file on GitHub is a simple java file.</p>
  <p>I want to save the file as it is. Any solution to this, please.</p>