On Fri, Aug 7, 2015 at 1:46 PM, Emile van Sebille <em...@fenx.com> wrote: > 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. > > There is a third party module called Requests which is much easier to use than the standard python urllib stuff. Check it out. http://docs.python-requests.org/en/latest/
> > 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@python.org >> To unsubscribe or change subscription options: >> https://mail.python.org/mailman/listinfo/tutor >> > > > _______________________________________________ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor -- Joel Goldstick http://joelgoldstick.com _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor