f = open('C://settings.txt', 'r')
settings = []
for line in f:
settings.append(line)
hometown = settings[0]
sex = int(settings[1])
age_from = int(settings[2])
age_to = int(settings[3])
birth_day = int(settings[4])
video_name = settings[5]
response = vk.method("users.search", {"count": "1000","hometown": hometown,"sex": sex,"age_from":age_from,"age_to":age_to,"birth_day":birth_day} )
if response['items']:
for i in range(len(response["items"])):
users.append(response['items'][i]["id"])
ZiA9IG9wZW4oJ0M6Ly9zZXR0aW5ncy50eHQnLCAncicpCnNldHRpbmdzID0gW10KZm9yIGxpbmUgaW4gZjoKICAgIHNldHRpbmdzLmFwcGVuZChsaW5lKQpob21ldG93biA9IHNldHRpbmdzWzBdCnNleCA9IGludChzZXR0aW5nc1sxXSkKYWdlX2Zyb20gPSBpbnQoc2V0dGluZ3NbMl0pCmFnZV90byA9IGludChzZXR0aW5nc1szXSkKYmlydGhfZGF5ID0gaW50KHNldHRpbmdzWzRdKQp2aWRlb19uYW1lID0gc2V0dGluZ3NbNV0KCnJlc3BvbnNlID0gdmsubWV0aG9kKCJ1c2Vycy5zZWFyY2giLCB7ImNvdW50IjogIjEwMDAiLCJob21ldG93biI6IGhvbWV0b3duLCJzZXgiOiBzZXgsImFnZV9mcm9tIjphZ2VfZnJvbSwiYWdlX3RvIjphZ2VfdG8sImJpcnRoX2RheSI6YmlydGhfZGF5fSApCmlmIHJlc3BvbnNlWydpdGVtcyddOgogICAgZm9yIGkgaW4gcmFuZ2UobGVuKHJlc3BvbnNlWyJpdGVtcyJdKSk6CiAgICAgICAgdXNlcnMuYXBwZW5kKHJlc3BvbnNlWydpdGVtcyddW2ldWyJpZCJdKQo=