From b781899174a50793d2eea093907fd56bcba2d4fc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 8 Apr 2020 15:46:07 -0700 Subject: parse_cnki_tables: pass file path as arg --- extra/scrape/parse_cnki_tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extra/scrape') 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)) -- cgit v1.2.3