User Pass
Home Sign Up Contact Log In
Forum > Goal Line Blitz 2 > Greasemonkey Scripts > Scripting with Python: login
kaiijy
offline
Link
 
Just in case you know a bit of Python and want to script GLB2, this is how you can log in using the requests module. I also use Beautiful Soup to print the source code.

import requests
from bs4 import BeautifulSoup as bs

login = {
'action': 'login',
'user_name':'your username',
'password':'your password'
}

with requests.Session() as c:
c.post('http://glb2.warriorgeneral.com/game/login', data=login)
r = c.get('http://glb2.warriorgeneral.com/game/hof?season=3&type=off_data&position=WR&league_id=0&tier=All')
soup = bs(r.content)

print(soup.prettify())

The forum will probably strip out the tabs, so I created a gist here: https://gist.github.com/philgruneich/10545034

Remember to replace your username and your password with your credentials
 


You are not logged in. Please log in if you want to post a reply.