模拟豆瓣登录

import requests
# url = 'https://www.douban.com/accounts/login'
# params = {
#     'source':'index_nav',
#     'form_email':'xxxxx',
#     'form_password':'xxxx'
# }
# html = requests.post(url,params)
# print(html.text)
url = 'https://www.douban.com/'
headers = {
    'Cookie':'xxxxxxxxxxxxxx'
}
html = requests.get(url,headers=headers)
print(html.text)

 

已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: 护眼 设计师:闪电赇 返回首页