VBA:通过HttpRequest提取页面标题

时间:2017-12-24 16:05:57

标签: excel-vba vba excel

我通常使用以下代码来抓取网站。

Dim html As New HTMLDocument
html.body.innerHTML = HttpReq.responseText

使用此代码,“html.getElementsByTagName(”title“)(0).innerText”返回空字符串。有没有办法使用DOM获取页面标题?

提前致谢

0 个答案:

没有答案