diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-04-08 15:46:07 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-04-08 15:46:07 -0700 |
commit | b781899174a50793d2eea093907fd56bcba2d4fc (patch) | |
tree | a5796a75ed28fa03d881e30b76c6a7ab021a155d | |
parent | c72da804be4b0c90352ce3f760cdf1113c8b3098 (diff) | |
download | fatcat-covid19-b781899174a50793d2eea093907fd56bcba2d4fc.tar.gz fatcat-covid19-b781899174a50793d2eea093907fd56bcba2d4fc.zip |
parse_cnki_tables: pass file path as arg
-rwxr-xr-x | extra/scrape/parse_cnki_tables.py | 2 |
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)) |