You need to create a new session with
requests.Session()
.import sys import getpass import hashlib import requests BASE_URL = 'https://www.flightsim.com/' def do_login(credentials): session = requests.Session() session.get(BASE_URL) req = session.post(BASE_URL + LOGIN_PAGE, params={'do': 'login'}, data=credentials) if req.status_code != 200: print('Login not successful') sys.exit(1) # session is now logged in return session def get_credentials(): username = input('Username: ') password = getpass.getpass() password_md5 = hashlib.md5(password.encode()).hexdigest() return { 'cookieuser': 1, 'do': 'login', 's': '', 'securitytoken': 'guest', 'vb_login_md5_password': password_md5, 'vb_login_md5_password_utf': password_md5, 'vb_login_password': '', 'vb_login_password_hint': 'Password', 'vb_login_username': username, } credentials = get_credentials() session = do_login() Seeking files, works without session. Downloading files, needs a valid login of an user. I made some example code, to try it out, but until now no success.EDIT: It seems, that the user is still not logged in. Maybe I'm sending wrong parameters to the form.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!