python+beautifulsoup爬取豆瓣电影TOP250

import urllib.request from bs4 import BeautifulSoup import re # 豆瓣电影top250 def __getHtml(): data = [] pageNum = 1 pageSize = 0 try: while(pageSize <= 225): # headers = {'User-Agent':'Mozilla
相关文章
相关标签/搜索