Skip to content

Commit

Permalink
code to create a folder and write the xml software metadata there
Browse files Browse the repository at this point in the history
  • Loading branch information
Azzouz-Thuderoz committed Apr 23, 2024
1 parent 43d381a commit 47c3e8c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/zbmath_rest2oai/writeLocal.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@


def write_oai(api_source):
return getAsXml.final_xml2(api_source)
xml = getAsXml.final_xml2(api_source)
with open('temp_folder_software_metadata/{}.xml'.format(apisource), "wb") as f:
f.write(xml)
f.close()

if __name__ == '__main__':
import sys
write_oai(sys.argv[1])
2 changes: 2 additions & 0 deletions src/zbmath_rest2oai/writeLocal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

mkdir temp_folder_software_metadata

0 comments on commit 47c3e8c

Please sign in to comment.