Advertisement
iraklidd

python rs.ge requests

Oct 23rd, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. import requests
  2.  
  3. headers = {
  4. 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36'
  5. }
  6.  
  7. login_data = {
  8. 'PageID': '068dacca-7e82-4f6a-9267-a51d168f7ff6',
  9. 'pageID': '068dacca-7e82-4f6a-9267-a51d168f7ff6',
  10. 'SessionID': 'oc3x4hkrhnplq0slbti4nzui',
  11. 'username': 'tbilisi',
  12. 'password': '123456',
  13. 'form_id': 'aspnetForm',
  14. 'latitude': '',
  15. 'longitude': '',
  16. 'check': '0',
  17. 'screen': '1366',
  18. 'vcode': ''
  19. }
  20.  
  21. with requests.Session() as s:
  22. url = 'https://eservices.rs.ge/Login.aspx/'
  23. r = s.get(url, headers=headers)
  24. r = s.post(url, data=login_data, headers=headers)
  25. print(r.content)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement