Answer the question
In order to leave comments, you need to log in
How to remove the string indices must be integers error when calling the users.get method?
name = vk.users.get(user_ids = str(actionid))
actionname = str(name)["first_name"]
Answer the question
In order to leave comments, you need to log in
str(name)["first_name"]
You have to be more careful. Indexes for strings can indeed only be integers.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question