Created
March 10, 2019 13:49
-
-
Save tayyebi/bf8977cbadeff0dbb196fbd4cf154dbc to your computer and use it in GitHub Desktop.
Python fake browser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
payload = { | |
'Username': 'tayyebi', | |
'Password': '123', | |
'Login': '', | |
} | |
with requests.Session() as s: | |
p = s.post('http://sariab.pressz.ir/ajax/log/in', data=payload) | |
print (p.cookies) | |
r = s.get('http://sariab.pressz.ir/ajax/say/post') | |
print (r.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment