Python爬取AppStore脚本获取评论数据Python脚本获取苹果软件评价
效果:
# -*- coding: utf-8 -*-
import urllib.request
import json
import xlsxwriter
page=1;
appid=726029718
workbook = xlsxwriter.Workbook('app评论.xlsx')
worksheet = workbook.add_worksheet()
format=workbook.add_format()
format.set_border(1)
format.set_border(1)
format_title = workbook.add_format()
format_title.set_border(1)
format_title.set_bg_color('#cccccc')
format_title.set_align('left')
format_title.set_bold()
title=['昵称','标题','评论内容']
worksheet.write_row('A1',title,format_title)
row=1
col=0
count=0
#默认循环10次
while page<11:
myurl="https://itunes.apple.com/rss/customerreviews/page="+str(page)+"/id="