If I try to login to my account and it is not successful then I would have phrase try again in url source page. So I tried to write python script to login to my account and do stuff:
Update
token=...#by xpath
session=requests.Session('http://example.com')
response=session.get('http://example.com')
cook=session.cookies
postdata={'token':token, 'arg1':'', 'arg2':'', 'name[user]': user, 'name[password]':password, 'arg3': 'Sign in'}
postresp=requests.post(url='http://example.com/sth', cookies=cook, data=post_data)
print postresp.content
Is there something wrong with postdata or etc?
I also sat cookies.

