Multi-Page login WITH Cookies (POST Data)

2007-05-17 Thread Pyro

Before i go into some detail i would like to start off by saying that this
is NOT an advertising bot or anything like that.

I am a web programmer designing a website in PHP and it requires users to
login. I am building a program that will login as the administrator and
browse the forums looking for any inappropriate activity. Here is how i have
my login setup (it needs to be setup like this).

http://pyro.allblizz.com/python/login1.php (Just Username) (username =
'thisname')
http://pyro.allblizz.com/python/login2.php (Just Password) (password =
'whatpassword')
http://pyro.allblizz.com/python/home.php (Home)
(links are valid, and working submit system)

Now, without cookies (just POST data) I am able to get this to work.

[code]
#!/usr/bin/python
import sys
from urllib2 import urlopen
from ClientForm import ParseResponse
forms = ParseResponse(urlopen("http://pyro.allblizz.com/login1.php";))[0]
forms["username"] = "thisname"
forms2 = ParseResponse(urlopen(forms.click()))[0]
forms2["password"] = "whatpassword"
print urlopen(forms2.click()).read()
[/code]

If you go and fill out the username and passwords using a web browser, you
are able to login but, when i use this code it does not work. (Because the
cookies are not being stored)

After we are able to get a succussful login, i need a way that i can browse
my site always including this cookie, like if i went to open up a page, it
would use the cookie we got from logging in.

Thanks alot guys
~Cody
-- 
http://mail.python.org/mailman/listinfo/python-list

py2exe compiling

2007-05-21 Thread Pyro

Hello,

I have just finished my script and am ready to distrabute it. I am having a
little trouble using py2exe though.

here is what i have at the top of my file for imports:

import string, array, sgmllib, re, sys, cookielib, urllib2, random,
ConfigParser, time
from urllib2 import urlopen
from ClientForm import ParseResponse
from configobj import ConfigObj


Now, there are some other file attributes i need a bit of help with.

icon = nigel.ico
file name = name
file author = cody woolaver
file version = 0.1.3
file comments = uhhh, a comment ^^

Thanks for your help
~Cody Woolaver
-- 
http://mail.python.org/mailman/listinfo/python-list

Your message to Pyro-users awaits moderator approval

2007-07-10 Thread pyro-users-bounces
Your mail to 'Pyro-users' with the subject

test

Is being held until the list moderator can review it for approval.

The reason it is being held:

Post by non-member to a members-only list

Either the message will get posted to the list, or you will receive
notification of the moderator's decision.  If you would like to cancel
this posting, please visit the following URL:


http://emergent.brynmawr.edu/mailman/confirm/pyro-users/b516bf2af8963d4ecb9bf5598ad61f36f94235f3

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