首页 > 解决方案 > 使用新的搜索控制台通过 R 获取 Googlebot 抓取错误

问题描述

所以问题是我有一个运行良好的代码,用于获得 Googlebot 抓取错误数量的自动化。我为此使用了 SearchconsoleR 包。

最近我假设由于 Search Console 中的更改,这不再起作用。到目前为止,有没有人遇到过(并解决过)这个问题?

所以之前的代码可以正常工作几个月:

Errors <- crawl_errors(website, category = "all", platform = c("web"), latestCountsOnly = T)

现在我得到以下错误代码:

Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 2.4 seconds...
2019-05-15 14:41:02> Request Status Code: 404
Error : lexical error: invalid char in json text.
                                       Not Found
                     (right here) ------^

Not Found
Error: lexical error: invalid char in json text.
                                       Not Found
                     (right here) ------^
In addition: Warning message:
No JSON content found in request 

尝试查看包的文档,但尚未找到任何相关更新。如果有人有任何指示,他们将不胜感激。

提前致谢

标签: rgoogle-search-console

解决方案


恐怕此功能已从 Search Console API 中删除。


推荐阅读