Re: log in to a website

2005-06-20 Thread passion_to_be_free
Works like a gem!  Thanks a ton.  ClientForm and ClientCookie are great!

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


import via pathname

2005-06-20 Thread passion_to_be_free
Okay, so in my li'l python script I'm importing a few 3rd party modules
that I have installed on my comp.  I need to distribute this script to
several other people, but I won't have access to install the modules on
their comp's.  I'm thinking I'll include these modules with my script
and deliver them as a bundle. When I write my script, is there a way to
declare the import statements and specify a relative path to where the
modules are located?

I know this is wrong syntax, but I think it demonstrates what I'm
trying to do:

import myModule path = /modules/myModule
import myModule2 path = /modules/myModule2

Something like that.  Is it possible?

-Thx

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


Re: import via pathname

2005-06-20 Thread passion_to_be_free
AhhI see.  I played around with the sys.path function...and it
looks like python automatically looks in the same directory as my
script first.  Then is searches to all the other pre-defined paths.  So
it works for me to just keep my main script in the same directory as
the two modules I'm using.  

Thx!

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


log in to a website

2005-06-16 Thread passion_to_be_free
I'm learning python, and my goal is to write a script that will log
into a website for me. The site uses HTTPS, the form uses the "POST"
method.

>From what I've been able to find so far, it looks like i need to use
the urllib2 module...does anyone know where I can find some good sample
code to read up on how to do this?

-Thx

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