python爬虫的BeautifulSoup库 如何获取tr td的某几列值?
#-*-coding:utf-8-*-importrequests,sysfrombs4importBeautifulSoupurl='http://www.zuihao...
# -*- coding: utf-8 -*-import requests,sysfrom bs4 import BeautifulSoupurl='http://www.zuihaodaxue.cn/zuihaodaxuepaiming2016.html'response = requests.get(url)soup=BeautifulSoup(response.content,'lxml')如何获取该网页截图中的5列标题以及内容
展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询