From c365d5e8ecc131ba267fee74fd1b65ad9d7a4275 Mon Sep 17 00:00:00 2001 From: Azzouz-Thuderoz Date: Tue, 23 Apr 2024 11:38:17 +0200 Subject: [PATCH] formating code to get software xml data with writeLocal --- src/zbmath_rest2oai/writeLocal.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/zbmath_rest2oai/writeLocal.py b/src/zbmath_rest2oai/writeLocal.py index e69de29..d8e4848 100644 --- a/src/zbmath_rest2oai/writeLocal.py +++ b/src/zbmath_rest2oai/writeLocal.py @@ -0,0 +1,15 @@ +import json + +import requests +import os + +from requests.auth import HTTPBasicAuth + +from zbmath_rest2oai import getAsXml + + +def write_oai(api_source): + return getAsXml.final_xml2(api_source) +if __name__ == '__main__': + import sys + write_oai(sys.argv[1]) \ No newline at end of file