Hackaton done
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
.idea
|
||||
*.iml
|
||||
.ipynb_checkpoints/
|
||||
181
Analysis-1.ipynb
181
Analysis-1.ipynb
File diff suppressed because one or more lines are too long
13
README.md
13
README.md
@@ -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
|
||||
|
||||
14
is_pazan.py
14
is_pazan.py
@@ -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
BIN
screens/expect.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 167 KiB |
BIN
screens/gender.png
Normal file
BIN
screens/gender.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 60 KiB |
BIN
screens/groups.png
Normal file
BIN
screens/groups.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 136 KiB |
BIN
screens/words.png
Normal file
BIN
screens/words.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 69 KiB |
Reference in New Issue
Block a user