[Tutor] python myspace module?
nephish
nephish at xit.net
Wed Oct 26 04:10:59 CEST 2005
Hey there Ed,
if you pull this off, let us know. i have wanted to do this very
thing, but just don't have the time.
sk
On Tue, 2005-10-25 at 14:24 -0700, Danny Yoo wrote:
>
> On Tue, 25 Oct 2005, Ed Hotchkiss wrote:
>
> > looking to write a myspace wrapper/module. what is the best way
> > (hopefully using the stdlib not an outside module) to connect to a
> > website and (if possible, otherwise ill have to code it?) access forms
> > with GET POST blah blah blah ...
>
> Hi Ed,
>
> We do have some rudimentary access by using libraries like urllib and
> urllib2. Let's look at urllib for the moment:
>
> http://www.python.org/doc/lib/module-urllib.html
>
> By default, it send GET queries, but if we pass in a data argument to its
> open() function, it can perform a POST. So for really quick-and-dirty
> stuff, urllib can do the trick.
>
>
> For anything more sophisticated, we may want to look at some tools like
> mechanize:
>
> http://wwwsearch.sourceforge.net/mechanize/
>
> which can help provide the illusion of a stateful session with a web
> server.
>
>
> Best of wishes!
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
More information about the Tutor
mailing list