Python爬蟲實列:新浪微博熱門話題

1.先找到數據所在的url 2.寫代碼獲取數據,並保存 import requests import time import sys import os import xlwt, xlrd import xlutils.copy #傳入要爬取的頁數page,將獲取的熱門話題名稱、類別、討論數、閱讀數存到二維列表中 def get_hot_topic(page): topic_list =
相關文章
相關標籤/搜索