Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 6#!/usr/bin/env python
- # -*- coding: utf-8 -*-
- import requests
- import urllib
- from requests.auth import HTTPDigestAuth
- from bs4 import BeautifulSoup
- from requests_oauthlib import OAuth1
- import re
- import sys
- import os
- donotcache = 1468514900760
- password = 'NB7kTJwlI42QToSJNpSugbMO2gf56KNBh8VFw0N88fvRhgIf9Q=='
- username = 'chita199853'
- rsatimestamp = '147767350000'
- phone_cod = input('Введите код с мобильного: ')
- url = 'https://steamcommunity.com/login/dologin/'
- dann = { 'donotcache':donotcache,
- 'password':password,
- 'username':username,
- 'twofactorcode':phone_cod,
- 'emailaut':'',
- 'loginfriendlyname':'',
- 'captchagid':'-1',
- 'captcha_text':'',
- 'emailsteamid':'',
- 'rsatimestamp':rsatimestamp,
- 'remember_login':'true'
- }
- session = requests.Session()
- r = session.post(url,dann) #>тправка пост запроса)
- session.cookies
- steam = urllib.request.urlopen('http://steamcommunity.com/id/chita199853/home/')
- soup = BeautifulSoup(steam, "html.parser")
- print(r.url)
- result = r.text
- #print(r.text)
- session.cookies
- reg = re.search('false',r.text)
- print(reg)
- if reg == None:
- print('GOOD!!!')
- else:
- print('BAD!!')
- print(soup)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement