BeautifulSoup爬虫
来源:互联网 发布:网络监察大队报名 编辑:程序博客网 时间:2024/05/16 08:49
在csdn首页上查看脚本时看到这么一句话:
<meta content="GzEltai8cI" name="baidu-site-verification"/>
想打印出其中的name
我是这样做的:
import requests
from bs4 import BeautifulSoup
soup = BeautifulSoup(requests.get("http://www.csdn.net/",'lxml'))
print(soup.find("meta",{"content":"GzEltai8cI "})['name'])
编辑环境:python3+ jupyter
阅读全文
0 0
- 爬虫:BeautifulSoup
- BeautifulSoup 爬虫
- BeautifulSoup爬虫
- BeautifulSoup 爬虫
- [爬虫] Python爬虫 urllib BeautifulSoup
- 爬虫之BeautifulSoup
- python爬虫之BeautifulSoup
- python爬虫之-BeautifulSoup
- 第一个BeautifulSoup爬虫
- python beautifulsoup 爬虫学习
- 爬虫----BeautifulSoup 模块
- 网络爬虫:BeautifulSoup
- 网络爬虫之beautifulsoup
- Beautifulsoup爬虫步骤
- Mooc爬虫03-BeautifulSoup
- python爬虫之BeautifulSoup
- BeautifulSoup-爬虫实战
- python-爬虫-beautifulsoup
- linux脚本编程之shell实现彩色进度条
- 关闭colorbox刷新页面
- html2canvas在iOS下微信中的相关使用的总结
- 天天向上
- opencv+视频亮度检测
- BeautifulSoup爬虫
- @RestController
- 第一篇博客
- [转]Linux查看磁盘使用情况命令
- Javascript是一种什么样的语言,它有哪些特点?
- VT-x is disabled in the BIOS.(VERR_VMX_MSR_VMON_DISABLED)
- React Native入门(一)之安装,环境搭建
- Linux简单安装
- android四种常用的消息传递机制/模式的比较