Chrome浏览器从href链接中提取数据

时间:2019-04-02 22:38:09

标签: google-chrome console

我正在尝试通过网站上的链接进行迭代,并直接从链接中“提取”数据(即特定的文本片段)。

例如,链接可能是这样的:

var href = "https://medium.com/s/story/the-climate-change-cost-of-the-presidential-campaign-305fcc98f917'

...,我想提取标题:

document.getElementsByClassName("elevate-h1 u-marginBottom12 u-md-marginBottom8")[0].innerText

如何将Chrome浏览器“导航”到该站点并拉出(并存储)数据?

0 个答案:

没有答案
相关问题