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 Dry Scrape с файлами cookie