获取URL页面源代码
import urllib2
from bs4 import BeautifulSoup
page=urllib2.urlopen("http://www.imdb.com/title/tt1619029/keywords?ref_=tt_stry_kw")soup=BeautifulSoup(page,"lxml")
获取单个页面关键词写入
获取URL页面源代码
import urllib2
from bs4 import BeautifulSoup
page=urllib2.urlopen("http://www.imdb.com/title/tt1619029/keywords?ref_=tt_stry_kw")soup=BeautifulSoup(page,"lxml")
获取单个页面关键词写入
本文标题:Beautifulsoup python使用爬取IMDB电影关键
本文链接:https://www.haomeiwen.com/subject/pqzxmttx.html
网友评论