473,387 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Client side web programming

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

Jan 10 '06 #1
8 1442
> Pramod Subramanyan asked aboyt urllib2:

Look at this article:

http://www.voidspace.org.uk/python/a.../urllib2.shtml

Michele Simionato

Jan 10 '06 #2
And this one for cookie handling:

http://www.voidspace.org.uk/python/a...ookielib.shtml

All the best,

Fuzzyman

Jan 10 '06 #3

Michele Simionato wrote:
Pramod Subramanyan asked aboyt urllib2:


Look at this article:

http://www.voidspace.org.uk/python/a.../urllib2.shtml

Michele Simionato


Thanks! This is the sort of thing I need.

Jan 10 '06 #4

Fuzzyman wrote:
And this one for cookie handling:

http://www.voidspace.org.uk/python/a...ookielib.shtml

All the best,

Fuzzyman


Cool! Thanks a lot.

Jan 10 '06 #5
Maybe this will be useful to you:
http://www.python.org/pypi/mechanoid/0.6.8

Jan 10 '06 #6

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

Jan 11 '06 #7
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
Jan 11 '06 #8

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.

Jan 12 '06 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Matt | last post by:
I think this is the basic concept in ASP server-side development. My boss told me web application is NOT client-server application. I argued with him because browser is the client, and the server...
1
by: Matthew Louden | last post by:
Personally, I am totally confused with the following control terms and usage and advantages of each one in ASP.NET web application. Here's what I know so far.. 1. HTML Client Control: understood...
4
by: Bob T | last post by:
Hi All, I am trying to pass a variable from my VB asp.net script (from for example Sub Page_Load in mypage.aspx.vb) to my Client side script. I have found and looked at a very good example...
2
by: Ivan Samuelson | last post by:
Does anyone know of a book that covers client-side programming in ASP.NET? I have no problem programming on the server-side, but I'm at a loss on the client-side, including how to program either in...
4
by: rs | last post by:
how I the client tell the server that the socket is closed? or this there an even that informs the server that the clients socket is close? Oh, I am using vb.net 2003 Thanks
6
by: Marc | last post by:
How could I directly trigger a very simple on localhost and a known port listening server from my internet browser client? Local host means the little server would be running on the client machine,...
3
by: DevX | last post by:
Hi to all, An ex-coworker of mine is learning ASP .NET for building web application. Because I had 3 years experience in .NET programming (but zero on web programming and ASP .NET) he asked me a...
5
by: Ankur | last post by:
Hi Folks, I am new for this group. I want to clarify one thing what's a basic difference between Client Side Java Script and Server Side Java Script. how we can differentiate it. Why we called...
3
by: sasimca007 | last post by:
Hello friends, I want to know what is the difference between 1.) client-side project and server-side project 2.) client-side programming and server-side...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.