Answer the question
In order to leave comments, you need to log in
Error in code TypeError: 'int' object is not subscriptable, what should I do?
In general, I wrote the code on the VK API, but it does not work.
The code response was:
{'count': 18, 'items': [{'id': XXXXXXXX, 'first_name': 'LOL', 'last_name': 'LOLES', 'online': 0}
def group_members():
group = vk.groups.getMembers(group_id=164445012, fields=['first_name last_name, online'])
name = ['items'][0]['first_name']
print(name)
group_members()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question