直接上脚本.
import time
import requests
def weibodown():
all_list = []
page = 0
api_long_url = f'https://weibo.com/ajax/statuses/longtext?id='
header = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0',
'accept': 'application/json, text/plain, */*',
'x-requested-with': 'XMLHttpRequest',
'cookie': '这里填写使用网页开发工具获取的cookie值'
}
if __name__ == '__main__':
weibodown()
温馨提示! 你需要支付 ¥5.00 元后才能查看付费内容