python authentication with requests library via POST
问题 I read several similar topic.. I try to follow the others examples but I'm still stuck in the middle of nowhere.. I have basic skills of python programming and little knowledge about http protocol, my two goals are: -succesfull authentication to a website via requests library -fetch data from the website after the login while the session is active This is the code: import requests targetws = 'https://secure.advfn.com/login/secure' s = requests.session() payload_data = {'login_username': 'xxx'