import re
import requests
with requests.Session() as c:
url = 'https://w...content-available-to-author-only...t.com/users/login'
NAME = 'omonim-ligivon'
PASSWORD = '123qwerty'
enter = c.get(url).content.decode()
token = re.findall(r'(?<=ken\"\s{1}value=\")[a-z0-9]{20}(?=\")',enter)[0]
key = re.findall(r'(?<=ey\"\svalue=\")\d{10}(?=\")', enter)[0]
login_data = dict(username=NAME, password=PASSWORD,remember_me=1, validate_token=token, validate_key=key)
c.post(url, data=login_data, headers={'Referer':'https://w...content-available-to-author-only...t.com/'})
aW1wb3J0IHJlCmltcG9ydCByZXF1ZXN0cwp3aXRoIHJlcXVlc3RzLlNlc3Npb24oKSBhcyBjOgogICAgdXJsID0gJ2h0dHBzOi8vdy4uLmNvbnRlbnQtYXZhaWxhYmxlLXRvLWF1dGhvci1vbmx5Li4udC5jb20vdXNlcnMvbG9naW4nCiAgICBOQU1FID0gJ29tb25pbS1saWdpdm9uJwogICAgUEFTU1dPUkQgPSAnMTIzcXdlcnR5JwogICAgZW50ZXIgPSBjLmdldCh1cmwpLmNvbnRlbnQuZGVjb2RlKCkKICAgIHRva2VuID0gcmUuZmluZGFsbChyJyg/PD1rZW5cIlxzezF9dmFsdWU9XCIpW2EtejAtOV17MjB9KD89XCIpJyxlbnRlcilbMF0KICAgIGtleSA9IHJlLmZpbmRhbGwocicoPzw9ZXlcIlxzdmFsdWU9XCIpXGR7MTB9KD89XCIpJywgZW50ZXIpWzBdCiAgICBsb2dpbl9kYXRhID0gZGljdCh1c2VybmFtZT1OQU1FLCBwYXNzd29yZD1QQVNTV09SRCxyZW1lbWJlcl9tZT0xLCB2YWxpZGF0ZV90b2tlbj10b2tlbiwgdmFsaWRhdGVfa2V5PWtleSkKICAgIGMucG9zdCh1cmwsIGRhdGE9bG9naW5fZGF0YSwgaGVhZGVycz17J1JlZmVyZXInOidodHRwczovL3cuLi5jb250ZW50LWF2YWlsYWJsZS10by1hdXRob3Itb25seS4uLnQuY29tLyd9KQ==