Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/326.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 谷歌新闻返回一像素图像_Python_Python 3.x_Api_Google Api - Fatal编程技术网

Python 谷歌新闻返回一像素图像

Python 谷歌新闻返回一像素图像,python,python-3.x,api,google-api,Python,Python 3.x,Api,Google Api,我编写了一个脚本,使用Google news返回一些新闻,下面是返回值的一个示例: {'title': "Ahead of dropping his BE Concept Photos, BTS' J Hope proves once again why he's the 'King of Mirror Selfies'", 'media': 'PINKVILLA', 'date': 'Hace 1 hora', 'desc': "BTS member J-

我编写了一个脚本,使用Google news返回一些新闻,下面是返回值的一个示例:

{'title': "Ahead of dropping his BE Concept Photos, BTS' J Hope proves once again why he's  the 'King of Mirror Selfies'", 
'media': 'PINKVILLA', 
'date': 'Hace 1 hora', 
'desc': "BTS member J-Hope aka Hobi shared two handsome mirror selfies
    of himself on Twitter as he updated BTS ARMY that he's all dressed up and ready for winter.", 
'link': 'https://www.pinkvilla.com/entertainment/ahead-dropping-his-be-concept-photos-bts-j-hope-proves-once-again-why-hes-king-mirror-selfies-572955', 
'img': 'data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='}
如果你看到的图像是base64编码的,解码时,它只是一个像素的图像!你知道会发生什么吗?我知道谷歌新闻不受欢迎,但也许有一个解决方案