diff --git a/v1/apc.py b/v1/apc.py index ed510e5..8814fee 100644 --- a/v1/apc.py +++ b/v1/apc.py @@ -18,9 +18,9 @@ data = json.loads(result.stdout) return data except json.JSONDecodeError as e: - return None + return {"nom_complet": file_name.split("/")[1], "doi": "", "unverified_doi":"" ,"item_editor":"","full_text":""} else: - return None + return {"nom_complet": file_name.split("/")[1], "doi": "", "unverified_doi":"" ,"item_editor":"","full_text":""} df_res = pd.DataFrame(columns=["nom_complet","doi","unverified_doi","item_editor","full_text"]) diff --git a/v1/editorsFunctions/0001021626.py b/v1/editorsFunctions/0001021626.py index 68ceb02..9d86213 100644 --- a/v1/editorsFunctions/0001021626.py +++ b/v1/editorsFunctions/0001021626.py @@ -24,5 +24,5 @@ item_editor = "Order Reference" + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001021664.py b/v1/editorsFunctions/0001021664.py index 857ef10..50cf139 100644 --- a/v1/editorsFunctions/0001021664.py +++ b/v1/editorsFunctions/0001021664.py @@ -30,5 +30,5 @@ -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001021793.py b/v1/editorsFunctions/0001021793.py index b40fde8..18a6632 100644 --- a/v1/editorsFunctions/0001021793.py +++ b/v1/editorsFunctions/0001021793.py @@ -24,5 +24,5 @@ item_editor = "Item: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001021875.py b/v1/editorsFunctions/0001021875.py index 63ff218..a37555b 100644 --- a/v1/editorsFunctions/0001021875.py +++ b/v1/editorsFunctions/0001021875.py @@ -24,5 +24,5 @@ item_editor = "Article" + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001021888.py b/v1/editorsFunctions/0001021888.py index d77c3b3..848c3be 100644 --- a/v1/editorsFunctions/0001021888.py +++ b/v1/editorsFunctions/0001021888.py @@ -24,5 +24,5 @@ item_editor = "Title: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001021938.py b/v1/editorsFunctions/0001021938.py index f3b11b1..d963e9e 100644 --- a/v1/editorsFunctions/0001021938.py +++ b/v1/editorsFunctions/0001021938.py @@ -32,5 +32,5 @@ item_editor = "Author" + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001024308.py b/v1/editorsFunctions/0001024308.py index 3486e6b..b377349 100644 --- a/v1/editorsFunctions/0001024308.py +++ b/v1/editorsFunctions/0001024308.py @@ -24,5 +24,5 @@ item_editor = "PUBLICATION CHARGES" + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001024313.py b/v1/editorsFunctions/0001024313.py index 902dc65..c22b492 100644 --- a/v1/editorsFunctions/0001024313.py +++ b/v1/editorsFunctions/0001024313.py @@ -24,5 +24,5 @@ item_editor = "Title: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001024524.py b/v1/editorsFunctions/0001024524.py index fbeea7a..b694e42 100644 --- a/v1/editorsFunctions/0001024524.py +++ b/v1/editorsFunctions/0001024524.py @@ -24,5 +24,5 @@ item_editor = "Title: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001024808.py b/v1/editorsFunctions/0001024808.py index e524593..2715d24 100644 --- a/v1/editorsFunctions/0001024808.py +++ b/v1/editorsFunctions/0001024808.py @@ -29,5 +29,5 @@ item_editor = "Description: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001062310.py b/v1/editorsFunctions/0001062310.py index e17c34e..cac4c1b 100644 --- a/v1/editorsFunctions/0001062310.py +++ b/v1/editorsFunctions/0001062310.py @@ -22,5 +22,5 @@ item_editor = get_caracs_between(full_text,"Total","USD").replace("\n"," ").replace("Article Processing", "|| Article Processing") -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001079074.py b/v1/editorsFunctions/0001079074.py index 685edbc..6b61930 100644 --- a/v1/editorsFunctions/0001079074.py +++ b/v1/editorsFunctions/0001079074.py @@ -25,5 +25,5 @@ item_editor = "Article: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001090050.py b/v1/editorsFunctions/0001090050.py index 88edaf8..44428dd 100644 --- a/v1/editorsFunctions/0001090050.py +++ b/v1/editorsFunctions/0001090050.py @@ -24,5 +24,5 @@ item_editor = "Manuscript: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001091455.py b/v1/editorsFunctions/0001091455.py index b2a4a61..8631800 100644 --- a/v1/editorsFunctions/0001091455.py +++ b/v1/editorsFunctions/0001091455.py @@ -23,5 +23,5 @@ if item_editor != "": item_editor = "Item: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001097617.py b/v1/editorsFunctions/0001097617.py index 786d0d7..b9fd31e 100644 --- a/v1/editorsFunctions/0001097617.py +++ b/v1/editorsFunctions/0001097617.py @@ -24,5 +24,5 @@ item_editor = "Publication + Title: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001129981.py b/v1/editorsFunctions/0001129981.py index e116f53..d7919b8 100644 --- a/v1/editorsFunctions/0001129981.py +++ b/v1/editorsFunctions/0001129981.py @@ -22,5 +22,5 @@ item_editor = get_caracs_between(full_text,"Total Due","Check").replace("\n"," ") -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001157725.py b/v1/editorsFunctions/0001157725.py index 0571b1b..9788865 100644 --- a/v1/editorsFunctions/0001157725.py +++ b/v1/editorsFunctions/0001157725.py @@ -24,5 +24,5 @@ item_editor = "Description: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001167626.py b/v1/editorsFunctions/0001167626.py index 0fd8ace..3639a41 100644 --- a/v1/editorsFunctions/0001167626.py +++ b/v1/editorsFunctions/0001167626.py @@ -24,5 +24,5 @@ item_editor = "Article" + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001189058.py b/v1/editorsFunctions/0001189058.py index e3c65e6..c0b6706 100644 --- a/v1/editorsFunctions/0001189058.py +++ b/v1/editorsFunctions/0001189058.py @@ -24,5 +24,5 @@ "VALUE","").replace("UNIT","").replace("TAX","").replace("VAT","").replace("\n","") -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001197861.py b/v1/editorsFunctions/0001197861.py index 835a794..64b518b 100644 --- a/v1/editorsFunctions/0001197861.py +++ b/v1/editorsFunctions/0001197861.py @@ -24,5 +24,5 @@ item_editor = "Description: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001200930.py b/v1/editorsFunctions/0001200930.py index 65f9542..a178999 100644 --- a/v1/editorsFunctions/0001200930.py +++ b/v1/editorsFunctions/0001200930.py @@ -25,5 +25,5 @@ item_editor = "Article Title: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001217181.py b/v1/editorsFunctions/0001217181.py index 16366ec..f93f971 100644 --- a/v1/editorsFunctions/0001217181.py +++ b/v1/editorsFunctions/0001217181.py @@ -25,5 +25,5 @@ item_editor = "Title: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001222959.py b/v1/editorsFunctions/0001222959.py index 9062198..96f8f25 100644 --- a/v1/editorsFunctions/0001222959.py +++ b/v1/editorsFunctions/0001222959.py @@ -24,5 +24,5 @@ item_editor = "Manuscript ID: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001226137.py b/v1/editorsFunctions/0001226137.py index bc90124..2313442 100644 --- a/v1/editorsFunctions/0001226137.py +++ b/v1/editorsFunctions/0001226137.py @@ -27,5 +27,5 @@ item_editor = item_editor + "\nItem Description :" + is_oa -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001247066.py b/v1/editorsFunctions/0001247066.py index c601228..7e8a0c9 100644 --- a/v1/editorsFunctions/0001247066.py +++ b/v1/editorsFunctions/0001247066.py @@ -24,5 +24,5 @@ item_editor = "Description: " + item_editor.replace("tinyLine\n","") -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/0001271047.py b/v1/editorsFunctions/0001271047.py index 75b716a..6a9904c 100644 --- a/v1/editorsFunctions/0001271047.py +++ b/v1/editorsFunctions/0001271047.py @@ -24,5 +24,5 @@ item_editor = "Title: " + item_editor -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":item_editor,"full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file diff --git a/v1/editorsFunctions/autres.py b/v1/editorsFunctions/autres.py index fe45bf4..91c914e 100644 --- a/v1/editorsFunctions/autres.py +++ b/v1/editorsFunctions/autres.py @@ -18,5 +18,5 @@ unverified_doi="" -new_row = {'nom_complet': filename.split("/")[1], 'doi': doi, 'unverified_doi':unverified_doi ,"item_editor":item_editor,'full_text': re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} +new_row = {"nom_complet": filename.split("/")[1], "doi": doi, "unverified_doi":unverified_doi ,"item_editor":"","full_text": re.sub("\n\n+","\n",re.sub("\s\s+"," ",full_text))} sys.stdout.write((json.dumps(new_row))) \ No newline at end of file