Client side web programming

Pramod Subramanyan pramod.sub at gmail.com
Tue Jan 10 09:24:51 EST 2006


Hi,

Well the trouble is that my orkut scrapbook is flooded. So I reckoned
that I'd write some sort of a script to delete the 14800 or so scraps.
Now the big problem is that I don't really have too much knowledge
about web programming. I have a rough idea about HTTP, HTTPS, cookies
etc. but I don't really know the specifics.

Question 1: Orkut seems to use a cookie to keep track of who I am. How
long will this cookie be valid? Supposing I login using Mozilla and
then get hold of this cookie, then use my Python script and send the
same cookie whilst send a "POST" request to delete the entry, will
orkut be fooled?

Question 2: How do I send a specific cookie along with my request? The
whole documentation for urllib2 is rather general and seems to assume
thorough knowledge of how those protocols work.

Question 3: Is there a simpler way?

Question 4: Pointers to further information?

Thanks,
Pramod




More information about the Python-list mailing list