Is there any possible to get Google Webmaster Tool (GWT) datas using PHP?

社会主义新天地 提交于 2019-11-30 21:52:48

[..] I have searched some of the API Documents and Implements, [..]
[..] I have used two files in PHP for this GWT API, [..]

I am the author of the code that you quote (GWTdata PHP class) and first off want to make clear that this code is neither released by Google nor makes use of an official API, but is rather a custom script processing data from the web interface.

[..] returning few of the datas only from the GWT. [..]

A couple of weeks ago, there were some changes to the Google Webmaster Tools web interface (which, again, was/is used to process data requests). Thus, it broke some functionality of the PHP class GWTdata - such as downloading the crawl errors.

[..] Can anyone help me in this, to achieve all those datas and make it as excel file to generate using PHP. [..]

Unfortunately, for the most data there is nothing I/we can do about it (since the data is just not accessable any longer).

[..] Still I'm not getting the major parts / datas like,
1. Crawl errors [..]

Anyway, you can use this followup project to get the crawl errors.

GwtCrawlErrors (Download website crawl errors from Google Webmaster Tools as CSV):
https://github.com/eyecatchup/GWT_CrawlErrors-php

The Google API Client for PHP now supports the Webmasters API. Documentation is (as per usual) scarce for the PHP library, but it maps reasonably cleanly on to the methods described in the Webmasters API reference and there are some examples in the code so it's not too hard to get a hold on.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!