Привет, ребята. Надеюсь, у вас все хорошо. Я попытался использовать GOOGLE + API, используя Python для получения данных в формате Json.Вы можете просмотреть код ниже
from apiclient import discovery
API_KEY = '######'
GPLUS = discovery.build('plus', 'v1', developerKey=API_KEY)
#here i used V1 while using v2,v3,v4 i got the follwing errors
items =
GPLUS.activities().search(query='python').execute().get('items', [])
print(items)
#returns nothing
for data in items:
post = ' '.join(data['title'].strip().split())
if post:
print(TMPL % (data['actor']['displayName'],
data['published'], post))
#same problem executes nothing
Response
v2,v3,v4
HttpError: <HttpError 500 when requesting
https://plus.googleapis.com/$discovery/rest?version=v4&key=AIzaSyCgPkdet3KVbJ_Tzd5VgtYeFwWCQwpUVcE returned "Internal Server Error">