fork download
  1. import re
  2. import requests
  3. with requests.Session() as c:
  4. url = 'https://w...content-available-to-author-only...t.com/users/login'
  5. NAME = 'omonim-ligivon'
  6. PASSWORD = '123qwerty'
  7. enter = c.get(url).content.decode()
  8. token = re.findall(r'(?<=ken\"\s{1}value=\")[a-z0-9]{20}(?=\")',enter)[0]
  9. key = re.findall(r'(?<=ey\"\svalue=\")\d{10}(?=\")', enter)[0]
  10. login_data = dict(username=NAME, password=PASSWORD,remember_me=1, validate_token=token, validate_key=key)
  11. c.post(url, data=login_data, headers={'Referer':'https://w...content-available-to-author-only...t.com/'})
Runtime error #stdin #stdout #stderr 0.04s 9440KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "./prog.py", line 2, in <module>
ImportError: No module named requests