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
相關文章
相關標籤/搜索