如何使用curl从Google Mobile Friendly Test API查看呈现的代码?

时间:2019-03-20 16:45:34

标签: google-apps-script

我正在使用curl运行适合移动设备的测试,并且可以通过以下网址正常运行:

https://developers.google.com/webmaster-tools/search-console-api/v1/getting-started

我运行的代码是这样:

curl -H 'Content-Type: application/json' --data '{url: "https://www.example.com" , "requestScreenshot": true}' 'https://searchconsole.googleapis.com/v1/urlTestingTools/mobileFriendlyTest:run?key=xxxxxxxxxxxxxxxxxxxxxxxxxxx'

一切正常,但是随后它在Json中打印出图像代码,而且非常庞大!

是SVG吗?如何查看图像?

代码如下:

"data": "iVBORw0KGgoAAAANSUhEUgAAAZwAAALcCAYAAADT8QbIAAAABHNCSVQICAgIfAhkiAAAIABJREFUeJzs3Xl4VNXBBvD3zp5k

enter image description here

https://pasteboard.co/I6jRIqj.png

0 个答案:

没有答案