豆瓣影评爬虫——导出excel
#导入库
import requests
from bs4 import BeautifulSoup
import xlwt
import time
#创建worbook
workbook = xlwt.Workbook(encoding='utf-8', style_compression=0)
sheet = workbook.add_sheet('movie', cell_overwrite_ok = True)
sheet.write(0, 0, 'Users')
sheet.write(0, 1, 'Rating')
sheet.write(0, 2, 'Review'