Downloading files from an HTTP that looks like a FTP
Question: Thinking that I was dealing with a ftp site, I tried to login to
e4ftl01.cr.usgs.gov/ using this Python simple script:

    
    
    import ftplib
    ftp = ftolib.FTP("e4ftl01.cr.usgs.gov")
    ftp.login()
    

I got this error:

    
    
    socket.error: [Errno 101] Network is unreachable
    

which is probably because the site is actually HTTP.

Now, my goal is to download files from the folders within the site, and it
seems like ftplib is not working in this case, or am I wrong? What solution
would you suggest?


Answer: Well, I found this simple solution:

    
    
    import urllib
    urllib.urlretrieve("http://e4ftl01.cr.usgs.gov/MOLT/MOD11A1.005/2012.07.11/BROWSE.MOD11A1.A2012193.h00v08.005.2012196013549.1.jpg","Downloaded.jpg")
    

