We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dbe4aa commit d6890a4Copy full SHA for d6890a4
add_files_authors.py
@@ -1,8 +1,23 @@
1
-import requests, os
+import requests, os, argparse
2
from caltechdata_api import write_files_rdm
3
4
-idv = "tv53y-rqh37"
5
-files = ["1-s2.0-S2590162125000620-main.pdf"]
+parser = argparse.ArgumentParser(
+ description="Add files to an existing CaltechAUTHORS record."
6
+)
7
+parser.add_argument(
8
+ "idv",
9
+ type=str,
10
+ help="The CaltechAUTHORS record idv to edit.",
11
12
13
+ "files",
14
15
+ nargs="+",
16
+ help="The files to upload to the record.",
17
18
+args = parser.parse_args()
19
+idv = args.idv
20
+files = args.files
21
token = os.environ["RDMTOK"]
22
url = "https://authors.library.caltech.edu"
23
0 commit comments