How to make URLLIB .urlopen(url1) .urlopen(url2) session related ?

X

Xu, C.S.

How can I make 2 visits to a website session related with python's urllib?
For example, I want my first visit to login ebay.com, next visit to
obtain my listed items info on ebay. How can I make it?

Most web servers use session management (most use cookies), but how
can I tackle session communications at client side?

Appreciate any helps.
 
P

Peter Hansen

Xu said:
How can I make 2 visits to a website session related with python's urllib?
For example, I want my first visit to login ebay.com, next visit to
obtain my listed items info on ebay. How can I make it?

Most web servers use session management (most use cookies), but how
can I tackle session communications at client side?

http://wwwsearch.sourceforge.net/ClientCookie/

-Peter
 
J

JanC

(e-mail address removed) (John J. Lee) schreef:
Cookies aren't the only state,

Your "Referer" handler works good too... :)

But the "HTTP-EQUIV"/"Refresh" handler seems to have some problems.
(I'll mail you about this when I know what exactly triggers the problem I
have--I suspect some illegal HTML...)
 
X

Xu, C.S.

ClientCookie works great with ebay, and a few other sites I'm interested.

I'd like to donate a few bucks for the author to buy several cups of
coffee during writing more interesting python modules. Where should I
send the money to? Paypal, or check?

ClientCookie will save me a lot time, guaranteed!
 
J

John J. Lee

ClientCookie works great with ebay, and a few other sites I'm interested.

I'd like to donate a few bucks for the author to buy several cups of
coffee during writing more interesting python modules. Where should I
send the money to? Paypal, or check?
[...]

Rest assured my postal address will quickly find its way to you! :))


John
 

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
473,731
Messages
2,569,432
Members
44,832
Latest member
GlennSmall

Latest Threads

Top