python实现定时爬取API数据并入库
1、爬取数据功能 import requests url = 'https://xxxxxxxxxxxxxxxxxxx' # API res = requests.get(url) if res: print('获取成功') res.encoding = 'utf-8' page_data = res.json() ...
1、爬取数据功能 import requests url = 'https://xxxxxxxxxxxxxxxxxxx' # API res = requests.get(url) if res: print('获取成功') res.encoding = 'utf-8' page_data = res.json() ...