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
from http import cookies
donotcache = 14685323275321
password = 'qNy59bu9uA2+uDvD'
username = 'chita199853'
rsatimestamp = '1657784350000'
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) #>оправка пост запроса
s = requests.get(url)
cook = dict()
r.text
print(r.text)
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
from http import cookies
donotcache = 14685323275321
password = 'qNy59bu9uA2+uDvD'
username = 'chita199853'
rsatimestamp = '1657784350000'
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) #>оправка пост запроса
s = requests.get(url)
cook = dict()
r.text
print(r.text)
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!!')