2019年7月25日
摘要: 1 先select到改数据上层的标签,取第一个[0],然后attrs获取单标签里面的内容,或者get_text获取成对标签内文本2 find就是明确了标签之后,是唯一的,就可以使用find(标签名).get_text(),不需要加0 import requests from bs4 import BeautifulSoup def search(url): response = re... 阅读全文
posted @ 2019-07-25 17:32 Andy_ouyang 阅读(226) 评论(0) 推荐(0) 编辑