本文主要是介绍雪球内容的爬虫,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
#首先导入包
import json import requests
#因为不能访问 所以加头 但是实际用上的并不多
#例如
headers = {#Accept: */*#Accept-Encoding: gzip, deflate, br#Accept-Language: zh-CN,zh;q=0.9#Connection: keep-alive'Cookie': 'aliyungf_tc=AQAAAODXGFvpEAQAUhVFeWRkaVV0fMTp; xq_a_token=584d0cf8d5a5a9809761f2244d8d272bac729ed4; xq_a_token.sig=x0gT9jm6qnwd-ddLu66T3A8KiVA; xq_r_token=98f278457fc4e1e5eb0846e36a7296e642b8138a; xq_r_token.sig=2Uxv_DgYTcCjz7qx4j570JpNHIs; _ga=GA1.2.1278557409.1534336403; _gid=GA1.2.702155725.1534336403; _gat_gtag_UA_16079156_4=1; Hm_lvt_1db88642e346389874251b5a1eded6e3=1534336403; Hm_lpvt_1db88642e346389874251b5a1eded6e3=1534336403; u=301534336403406; device_id=33d1e8b88c47f086de994a2eb451d350',#Host: xueqiu.com#Refere
这篇关于雪球内容的爬虫的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!