[Tutor] DEALING WITH API

Emile van Sebille emile at fenx.com
Fri Aug 7 19:46:00 CEST 2015


On 8/7/2015 2:14 AM, Gaurav Lathwal wrote:
> Hello everyone. :))
>
> This time I am trying to fetch the required data using the API of the
> website.
> But, the problem I am having is I don't know how to make the request
> properly.
> When I enter the required URL in my browser, it downloads a .tgz which
> includes all the updates that have taken place on the website in the last
> 24 hours.


I'd normally use wget to retrieve tgz files and not a browser.

Emile



> So, when I use urlopen on the same url, & I try to read it, all I get is
> gibberish.
>
> Any help, please ?
> If I am unable to solve this problem, I am quitting programming, I have had
> enough bad experiences. :\ :\
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>




More information about the Tutor mailing list