From eba25f8307d6266b31664dc81eef78fdbd565f41 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Fri, 10 Feb 2023 12:08:20 +0800 Subject: [PATCH] Update python script to write content into index.html --- packages/readabilityjs/test/index.html | 448 ++++++++++ packages/readabilityjs/test/view.html | 1114 ------------------------ packages/readabilityjs/test/view.py | 11 +- 3 files changed, 455 insertions(+), 1118 deletions(-) create mode 100644 packages/readabilityjs/test/index.html delete mode 100644 packages/readabilityjs/test/view.html diff --git a/packages/readabilityjs/test/index.html b/packages/readabilityjs/test/index.html new file mode 100644 index 000000000..dd62bc2d6 --- /dev/null +++ b/packages/readabilityjs/test/index.html @@ -0,0 +1,448 @@ + + + + + + + + + + + + + + + + +
+ + + +
+ + + diff --git a/packages/readabilityjs/test/view.html b/packages/readabilityjs/test/view.html deleted file mode 100644 index 6575cc16a..000000000 --- a/packages/readabilityjs/test/view.html +++ /dev/null @@ -1,1114 +0,0 @@ - - - - - - - - - - - - - -
- - - -
- - diff --git a/packages/readabilityjs/test/view.py b/packages/readabilityjs/test/view.py index c8bd7bf2a..ffd718727 100644 --- a/packages/readabilityjs/test/view.py +++ b/packages/readabilityjs/test/view.py @@ -6,7 +6,8 @@ from os.path import isfile, join testdirs = [f for f in listdir( "test-pages") if not isfile(join("test-pages", f))] -print(""" +file = open("index.html", "w") +file.write(""" @@ -24,7 +25,7 @@ print(""" """) for testdir in testdirs: - print(f""" + file.write(f"""
  • {testdir}
    [source] [readability] @@ -33,11 +34,11 @@ for testdir in testdirs: """) -print(""" +file.write(""" - @@ -47,3 +48,5 @@ print(""" """) + +file.close()