Client side web programming

P

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
 
P

Pramod Subramanyan

Luiz said:

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
 
N

Neil Hodgson

Pramod said:
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
 
P

Pramod Subramanyan

Neil said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,276
Messages
2,571,384
Members
48,073
Latest member
ImogenePal

Latest Threads

Top