import requests session = requests.session() params = {'username':'username','password':'password'} s = session.post("http://pythonscraping.com/pages/cookies/welcome.php", params) print("Cookie is set to:") print(s.cookies.get_dict()) print("-----------") print("Going to profile page...") s = session.get("http://pythonscraping.com/pages/cookies/profile.php") print(s.text)
by: 发表于:2017-09-19 09:42:55 顶(0) | 踩(0) 回复
??
回复评论