Skip to content

Instantly share code, notes, and snippets.

@tayyebi
Created March 10, 2019 13:49
Show Gist options
  • Save tayyebi/bf8977cbadeff0dbb196fbd4cf154dbc to your computer and use it in GitHub Desktop.
Save tayyebi/bf8977cbadeff0dbb196fbd4cf154dbc to your computer and use it in GitHub Desktop.
Python fake browser
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