Hackaton done

This commit is contained in:
Omrigan
2016-02-23 01:30:57 +03:00
parent 63003ddbae
commit 69b20e0aa4
9 changed files with 150 additions and 63 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.idea
*.iml
.ipynb_checkpoints/

File diff suppressed because one or more lines are too long

View File

@@ -1,2 +1,11 @@
# gotohack
Хакатон GoTo Hack 2016
# Pazan analysis
Анализ пацанов.
# Summary
Проект посвящен анализу особого социального слоя - пацанов.
Пацанов мы определяем как участников спецефических групп в ВК - "пацанских цитатников"
Презентация: https://docs.google.com/presentation/d/1F36iaGC2D9Eg4gI3M4aL-iCbxWiIEyvtrqAeAo1Donc/edit?usp=sharing
Сделано на хакатоне GoTo Hack 2016

View File

@@ -1,9 +1,21 @@
import sys
import vk
import vk_api
vk_login, vk_password = sys.argv[1], sys.argv[2]
vk = vk_api.VkApi(vk_login, vk_password, app_id=sys.argv[3])
vk.authorization()
groups = vk.method("groups.get", {'domain': 'omrigan'})
print(groups['items'])
req_s = ''
for w in open('full_publs.txt'):
req_s = req_s + w + ','
azaza = vk.method('groups.getById', {'group_ids': req_s})
f = open('full_publs_norm.txt')
for q in azaza:
f.writelines(str(q['id']))
print(str(q['id']))
print(req_s)

BIN
screens/expect.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 KiB

BIN
screens/gender.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

BIN
screens/groups.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

BIN
screens/words.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB