cookies
程序员文章站
2024-03-20 13:34:28
...
import requests
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36'}
cookies = {'cookie': '....'}
url = '...'
r = requests.get(url, cookies = cookies, headers = headers)
with open('2.txt', 'wb+') as f:
f.write(r.content)
上一篇: 【NOIP模拟赛】小奇颓废赛 Day1
下一篇: AngularJs实现简单的购物车