session.visit('<url_where_is_login_form>')
name = session.at_xpath('//*[@name="username"]')
name.set('<login>')
password = session.at_xpath('//*[@name="password"]')
password.set('<password>')
name.form().submit()
session.visit('<url to visit with proper cookies>')
Python dryscrape scrape page with cookies