Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import base64
- cookies = {
- 'rsess_id': 'pqklv72pdbduc2u7okus1atcun287ka8',
- 'token_stat': '5d1ba089594-09d',
- 'e5982dc': '0cfe0ef3a357503c4a4538414b870ca1',
- 'top100_id': 't1.4511585.1888377750.1612261193532',
- 'last_visit': '1612250600080::1612261400080',
- }
- headers = {
- 'Connection': 'keep-alive',
- 'Pragma': 'no-cache',
- 'Cache-Control': 'no-cache',
- 'Accept': 'application/json, text/javascript, */*; q=0.01',
- 'DNT': '1',
- 'X-Requested-With': 'XMLHttpRequest',
- 'X-REESTR-TOKEN': 'r158251afeg',
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 OPR/73.0.3856.344',
- 'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
- 'Origin': 'https://rosreester.net',
- 'Sec-Fetch-Site': 'same-origin',
- 'Sec-Fetch-Mode': 'cors',
- 'Sec-Fetch-Dest': 'empty',
- 'Referer': 'https://rosreester.net/',
- 'Accept-Language': 'ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7',
- }
- address = 'Москва Славянская 4с1'
- encoded = base64.b64encode(str.encode(address))
- data = {
- 'b': encoded,
- 'p': '1'
- }
- response = requests.post('https://rosreester.net/ajax/get_egrn_by_b.json', headers=headers, cookies=cookies, data=data)
- final_result = response.json()
Add Comment
Please, Sign In to add comment