aboutsummaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-08 15:46:07 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-08 15:46:07 -0700
commitb781899174a50793d2eea093907fd56bcba2d4fc (patch)
treea5796a75ed28fa03d881e30b76c6a7ab021a155d /extra
parentc72da804be4b0c90352ce3f760cdf1113c8b3098 (diff)
downloadfatcat-covid19-b781899174a50793d2eea093907fd56bcba2d4fc.tar.gz
fatcat-covid19-b781899174a50793d2eea093907fd56bcba2d4fc.zip
parse_cnki_tables: pass file path as arg
Diffstat (limited to 'extra')
-rwxr-xr-xextra/scrape/parse_cnki_tables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/scrape/parse_cnki_tables.py b/extra/scrape/parse_cnki_tables.py
index 3763550..a54b2d4 100755
--- a/extra/scrape/parse_cnki_tables.py
+++ b/extra/scrape/parse_cnki_tables.py
@@ -46,7 +46,7 @@ def parse_cnki_tables(cnki_html):
return papers
if __name__ == "__main__":
- with open("cnki_tables.html", "r") as f:
+ with open(sys.argv[1], "r") as f:
res = parse_cnki_tables(f.read())
for paper in res:
print(json.dumps(paper, sort_keys=True))