
March 20th, 2007, 02:46 AM
|
|
Registered User
|
|
Join Date: Dec 2005
Location: Infront of my keyboard
Posts: 19
  
Time spent in forums: 19 h 3 m 29 sec
Reputation Power: 0
|
|
Ogame
I'm trying to make a program log into Ogame using Twill. In the end, it would be a simple checker - it runs in the background, and if someone is attacking you, it warns you. Origionally I was using urllib2 but that wasnt working either
Code:
import twill
from twill.commands import *
agent('ie6')
go('http://ogame.org/portal/?lang=org&frameset=1')
add_auth(None, "http://www.ogame.org/portal/?lang=org&frameset=1", "myusername", "mypassword")
"http://www.ogame.org"
uni = 'ogame476.de'
myusername = 'xxx'
mypassword = 'xxx'
formvalue('formular', 'Uni', uni)
formvalue('formular', 'login', myusername)
formvalue('formular', 'pass', mypassword)
showforms()
submit(submit_button='6')
but it never seems to log in, just drop back to the main page. If anyone has any suggestions, they would be welcome.
|