fork download
  1. f = open('C://settings.txt', 'r')
  2. settings = []
  3. for line in f:
  4. settings.append(line)
  5. hometown = settings[0]
  6. sex = int(settings[1])
  7. age_from = int(settings[2])
  8. age_to = int(settings[3])
  9. birth_day = int(settings[4])
  10. video_name = settings[5]
  11.  
  12. response = vk.method("users.search", {"count": "1000","hometown": hometown,"sex": sex,"age_from":age_from,"age_to":age_to,"birth_day":birth_day} )
  13. if response['items']:
  14. for i in range(len(response["items"])):
  15. users.append(response['items'][i]["id"])
  16.  
Runtime error #stdin #stdout #stderr 0.01s 9008KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Traceback (most recent call last):
  File "prog.py", line 1, in <module>
IOError: [Errno 2] No such file or directory: 'C://settings.txt'