方案一: 利用selenium+phantomjs无界面浏览器的形式访问网站,再获取cookie值: 方案二: 利用cookielib库获取: (1)Python2 (2)Python3 方案三: 利用requests库获取: Python3 相关文章: