web-scraping - 使用scrapy从类名中获取元素内的文本
问题描述
如何使用scrapy python的类名从以下元素中获取第一个文本,我的意思是“引用到Scrape”?
<div class="col-md-8">
<h1>
<a href="/" style="text-decoration: none">Quotes to Scrape</a>
</h1>
</div>
谢谢你的时间。
解决方案
推荐阅读
- apache - 强制 https 在我网站的索引页面上不起作用
- php - 关联数组映射
- php - 读取 CakePHP 3.x 中验证规则的属性以在 js 函数中使用
- javascript - 如何异步多次调用 promise 函数来用给定数量的值填充数组?
- imap - IMAP 设置无法使用 Godaddy 设置
- mongodb - Mongodb:是否可以仅关闭来自本地主机的连接的身份验证?
- c# - API 中的 post 方法未按预期工作
- swift - 问:如何添加多个对象 AR 检测
- python - 抓取 Twitter 数据时出现 JSONDecodeError
- google-maps - [浏览器][cordova.js][xhrStatusChangeHandler] 无法 XHR config.xml:未找到