diff --git a/sources/numbers/numbers.py b/sources/numbers/numbers_object.py similarity index 100% rename from sources/numbers/numbers.py rename to sources/numbers/numbers_object.py diff --git a/sources/numbers/numbers_proc.py b/sources/numbers/numbers_proc.py new file mode 100644 index 0000000..e236a1b --- /dev/null +++ b/sources/numbers/numbers_proc.py @@ -0,0 +1,14 @@ +import sys +import urllib.request + + +def main(): + number = sys.argv[1] + with urllib.request.urlopen("http://numbersapi.com/" + number) as request: + response = request.read().decode("utf-8") + print(response) + + +if __name__ == "__main__": + main() +