diff --git a/input/get/acs.py b/input/get/acs.py index d5ec64255da8b743ed50cc63aaac9f14b997706a..c7ea64735bc83502c8df3c5f8dd984ea29f196aa 100755 --- a/input/get/acs.py +++ b/input/get/acs.py @@ -76,12 +76,12 @@ class AcsFetcher(JournalFetcher): # Format in acs :"month dd, yyyy" published = soup_header.select(".pub-date-value")[0].text - #re_date = re.match(r'\s*(\w+) (\d+), (\d+)\s*',published) + re_date = re.match(r'\s*(\w+) (\d+), (\d+)\s*',published) # dd.mm.yyyy - #if re_date is not None: - # published = (re_date[2].zfill(2) + "." - # + JournalFetcher.mont_to_num[re_date[1].lower()] - # + "." + re_date[3]) + if re_date is not None: + published = (re_date[2].zfill(2) + "." + + JournalFetcher.mont_to_num[re_date[1].lower()] + + "." + re_date[3]) subjects = ["None Found"] subject_soup = soup_header.select('.article_header-taxonomy')