-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
31 lines (21 loc) · 814 Bytes
/
main.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
28
29
30
31
import data_collection.collect as collect
import data_collection.params as p
import data_collection.writer as writer
import sys
collector = collect.Data_Collector()
csv_writer = writer.CSV_Writer()
def list2string(list) : #unused
if len(list) == 0 :
return 'N/A'
# Join the elements of the list with a comma as a separator
result_string = ",".join(list)
result_string.replace('"', '\"' )
return "\"" + result_string + "\""
def main():
# print("first arg : ", sys.argv[1])
teams = ['LAB-STICC_INUIT', 'LAB-STICC_RAMBO', 'LAB-STICC_COMMEDIA']
for team in teams:
publications = collector.get_team_publications(team)
csv_writer.write_to_file(file_path=f"{p.DATA_DIR}/{team}_data.csv", data=publications)
if __name__ == "__main__":
main()