-
Notifications
You must be signed in to change notification settings - Fork 0
/
columns.py
27 lines (25 loc) · 1.01 KB
/
columns.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# coding=utf-8
# coding=utf-8
import collections
import jieba
jskill = {}
#fin = open(u'F:/人才雷达/yincai_record_30w.txt', 'r')
fin = open(u'd:/yincai_record_30w.txt', 'r')
for line in fin:
cv = line.strip().replace('null', "'null'")
if cv.find('skill') != -1:
cv = eval(cv)
#
# print '\n'.join(cv.keys())
# break
# print ','.join(cv['pro_title'])
if cv['experience'] != 'null':
#print len(cv.keys()),'\t',cv['experience'][0],'\t',cv['projects'][0],'\t',cv['work_status'],'\t',cv['pro_title'][0]#,'\t',cv['f_lang'] ,
try:
#print cv['experience'][0].keys()#,'\t',cv['experience'][0]['job_name'],'\t',cv['experience'][0]['com_name'],'\t',cv['experience'][0]['com_type']
print cv['experience'][0]['com_name'],'\t',cv['experience'][0]['job_name'],'\t',cv['experience'][0]['job_type'],'\t',cv["pro_title"][0]
except Exception:
continue
continue
# print '\n'.join(cv.keys())
#break