-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
42 lines (27 loc) · 675 Bytes
/
main.py
File metadata and controls
42 lines (27 loc) · 675 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from get_ids import *
from get_data_writefile import *
from datetime import datetime
#import os
# Implement multithreading for faster process
def threading_list():
date1 = datetime.now()
idList = getIds() # Epic numbers list
n = idList.__len__()
s = n+3/6
threads=[]
j=0
for i in range(0,6):
#print "Running Thread "+str(i)
t=threading.Thread(target=selectCity,args=[idList[j:j+s]]) # Initializing thread
j+=s
threads.append(t)
t.start()
t.join()
date2 = datetime.now()
print "Time taken by Script... "
print date2 - date1
print "DONE"
#threading_list()
if __name__=="__main__":
convert_pdf_to_txt("input.pdf")
threading_list()