Re: Client side web programming

2006-01-12 Thread Pramod Subramanyan

Neil Hodgson wrote:
> Pramod Subramanyan wrote:
>
> > Using cookielib and urllib2, I've come up with a workable solution. Its
> > damn slow though - which is probably orkut's fault - deletes about
> > 10-15 scraps a minute - so to get through 14000 scraps its probably
> > gonna take around 23 hours.
>
> It'll be interesting to see if it completes or whether orkut has a
> load limiter that stops you after a certain amount of traffic.
>
> Neil

It seems like the programmers at orkut have screwed up, because I
didn't really have 14000 scraps, only around 1000. My requests timed
out about 5 times in that span, but its hard to say whether it was a
load limiter because orkut is somewhat unreliable anyway.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Client side web programming

2006-01-10 Thread Pramod Subramanyan

Luiz Geron wrote:
> Maybe this will be useful to you:
> http://www.python.org/pypi/mechanoid/0.6.8

Actually I found this thing when I was googling. But there isn't too
much documentation, which is why I posted here.

Using cookielib and urllib2, I've come up with a workable solution. Its
damn slow though - which is probably orkut's fault - deletes about
10-15 scraps a minute - so to get through 14000 scraps its probably
gonna take around 23 hours.

Anyway, thanks a lot everybody.
Pramod

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Client side web programming

2006-01-10 Thread Pramod Subramanyan

Fuzzyman wrote:
> And this one for cookie handling:
>
> http://www.voidspace.org.uk/python/articles/cookielib.shtml
> 
> All the best,
> 
> Fuzzyman

Cool! Thanks a lot.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Client side web programming

2006-01-10 Thread Pramod Subramanyan

Michele Simionato wrote:
> > Pramod Subramanyan asked aboyt urllib2:
>
> Look at this article:
>
> http://www.voidspace.org.uk/python/articles/urllib2.shtml
> 
>Michele Simionato

Thanks! This is the sort of thing I need.

-- 
http://mail.python.org/mailman/listinfo/python-list


Client side web programming

2006-01-10 Thread Pramod Subramanyan
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

-- 
http://mail.python.org/mailman/listinfo/python-list