python 爬取豆瓣电影评论并进行词云展示

fushaobo98102 13 0 PDF 2020-12-23 03:12:51

# -*-coding:utf-8-*- import urllib.request from bs4 import BeautifulSoup def getHtml(url): """获取url页面""" headers = {'User-Agent':'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36'} req = urllib.request.Request(url,headers=heade

用户评论
请输入评论内容
评分:
暂无评论