From 32c54ac0216783363fbafc57ddc93301cee17660 Mon Sep 17 00:00:00 2001 From: "Jochens, Florian" <fj@andaco.de> Date: Fri, 5 Nov 2021 16:34:48 +0100 Subject: [PATCH] add input test file - test.py --- input/test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 input/test.py diff --git a/input/test.py b/input/test.py new file mode 100755 index 0000000..3d86cfc --- /dev/null +++ b/input/test.py @@ -0,0 +1,12 @@ +#!/usr/bin/env python3 + +from input_fj import input, print_pub_info +import sys + +if len(sys.argv) != 2: + sys.stderr.write('Usage: {} <url>\n'.format(sys.argv[0])) + exit(1) +url = sys.argv[1] +pub = input(url) +print_pub_info(pub) + -- GitLab