Skip to content

Commit

Permalink
Changed separator to comma
Browse files Browse the repository at this point in the history
  • Loading branch information
DaveMorais committed Oct 29, 2018
1 parent 480651c commit 94b257d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions util/crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import sys
import time


def get_publication(list_authors):
'''
Expand Down Expand Up @@ -48,7 +49,6 @@ def _splitter(author, pub):
return True



def _normalize_names(pub):
'''
Expand All @@ -70,7 +70,6 @@ def _normalize_names(pub):
authors = record[1].split(';')
authors_corrected = list()


for author in authors:

# Capitalize and Remove preposition and hifens from names
Expand Down Expand Up @@ -104,7 +103,6 @@ def _normalize_names(pub):

list_of_correct_names = list()


for first_name in first_names:

if first_name == '':
Expand Down Expand Up @@ -134,4 +132,3 @@ def _normalize_names(pub):
print("|".join(record), end="\n\n")

return True

1 change: 0 additions & 1 deletion util/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ def get_list_autor_id(file_name):
'''
with open(file_name, 'r') as file_obj:

return [(line[0], line[1]) for line in (line.strip().split(",") for line in file_obj if line.strip())]

0 comments on commit 94b257d

Please sign in to comment.