-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
write_local_test.py now updates local test files
- Loading branch information
Azzouz-Thuderoz
committed
Feb 18, 2024
1 parent
25ed082
commit a501522
Showing
2 changed files
with
10 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,7 @@ | ||
import json | ||
|
||
import requests | ||
import os | ||
|
||
from requests.auth import HTTPBasicAuth | ||
|
||
from zbmath_rest2oai import getAsXml | ||
import sys | ||
|
||
def write_oai(x, api_source): | ||
test_xml = getAsXml.final_xml2(x, api_source) | ||
return | ||
|
||
if __name__ == '__main__': | ||
|
||
print(write_oai(sys.argv[1], sys.argv[2])) | ||
with open(sys.argv[3], 'w') as f: | ||
f.write(getAsXml.final_xml2(sys.argv[1], sys.argv[2])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters