[Tutor] Guidance if possible

Wayne Werner wayne at waynewerner.com
Fri Apr 12 13:11:33 CEST 2013


On Fri, 12 Apr 2013, Alan Gauld wrote:

> On 11/04/13 23:33, Scurvy Scott wrote:
>
>> the other for something like this. I have no intention of doing
>> anything professional/shady/annoying with this code and want to write
>> it purely for my own amusement as well as to learn and obviously to
>> perhaps win something cool.
>
> Seems reasonable to me.
>
> Try looking at the http, urllib and cookie stuff in the stdlib.

Ick httplib/urllib - if you want to write code for getting information off 
a website, the 
requests module is the way to go:

http://docs.python-requests.org/en/latest/

It makes http requests pretty trivial.

HTH,
Wayne


More information about the Tutor mailing list