Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: utf-8 -*-
- import requests
- from bs4 import BeautifulSoup
- class bosslike(object):
- def auth_(self):
- session = requests.session()
- url = 'http://bosslike.ru/login/'
- params = {'UserLogin[login]': u'pu2ok54y.iap@20minutemail.it',
- 'UserLogin[password]': u'pu2ok54y.iap@20minutemail.it',
- 'submitLogin': u'Войти'}
- headers = {
- 'Host': 'bosslike.ru',
- 'Accept': '*/*',
- 'Accept-Language': 'en-US,en;q=0.9',
- 'Accept-Encoding': 'gzip, deflate, br',
- 'Content-Type': 'application/x-www-form-urlencoded',
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64; rv:51.0) Gecko/20100101 Firefox/51.0',
- 'Set-Cookie': 'PHPSESSID=65168a6ed4ac12e3045b89571cc1c1be; path=/; HttpOnly',
- 'CF-RAY': '42fc9c20768985e9-ARN',
- 'Location': 'http://bosslike.ru/tasks/my/',
- 'Referer': 'http://bosslike.ru/login/'
- }
- r = session.post(url,params,headers)
- print(r.text)
- if __name__ == '__main__':
- bosslike = bosslike()
- bosslike.auth_()
Add Comment
Please, Sign In to add comment