... # 电脑端微博爬取需要Cookie,具有时效性,需要自行更新,Cookie保存在cookie.txt
with open('cookie.txt', 'r') as f:
cookie = f.read()
...