From 3bc8580e3a403edbc49b16ec4ada7d6d5483a51f Mon Sep 17 00:00:00 2001 From: Sauravroy34 Date: Wed, 1 May 2024 20:44:37 +0530 Subject: [PATCH] fixed internet speed checker --- .../{ => Blackjack}/Internet Speed Tester/Readme.md | 11 ++++++++--- scripts/{ => Blackjack}/Internet Speed Tester/main.py | 3 ++- .../Blackjack/Internet Speed Tester/requirments.txt | 2 ++ scripts/Internet Speed Checker/Readme.md | 10 ++++++++-- scripts/Internet Speed Checker/main.py | 2 +- scripts/Internet Speed Checker/requirements.txt | 1 + 6 files changed, 22 insertions(+), 7 deletions(-) rename scripts/{ => Blackjack}/Internet Speed Tester/Readme.md (61%) rename scripts/{ => Blackjack}/Internet Speed Tester/main.py (92%) create mode 100644 scripts/Blackjack/Internet Speed Tester/requirments.txt create mode 100644 scripts/Internet Speed Checker/requirements.txt diff --git a/scripts/Internet Speed Tester/Readme.md b/scripts/Blackjack/Internet Speed Tester/Readme.md similarity index 61% rename from scripts/Internet Speed Tester/Readme.md rename to scripts/Blackjack/Internet Speed Tester/Readme.md index f1f70ec..c7ef910 100644 --- a/scripts/Internet Speed Tester/Readme.md +++ b/scripts/Blackjack/Internet Speed Tester/Readme.md @@ -6,9 +6,14 @@ This GUI App made with Tkinter will display your internet speed(upload and downl 1. Install the Speedtest Package using the following command: - `pip install speedtest` - - [Learn More about speedtest library](https://pypi.org/project/speedtest/) + `pip install speedtest -cli` +
+ or simply do +
+ `pip install requirments.txt` +
+ (make sure you have uninstalled previous version of speedtest using pip unistall speedtest) + new documentation: https://pypi.org/project/speedtest-cli/ 2. Run the script diff --git a/scripts/Internet Speed Tester/main.py b/scripts/Blackjack/Internet Speed Tester/main.py similarity index 92% rename from scripts/Internet Speed Tester/main.py rename to scripts/Blackjack/Internet Speed Tester/main.py index a5383cf..1aab454 100644 --- a/scripts/Internet Speed Tester/main.py +++ b/scripts/Blackjack/Internet Speed Tester/main.py @@ -1,5 +1,5 @@ from tkinter import * -from speedtest import Speedtest +from speedtest import Speedtest # first do pip unistall speedtest then do pip install root = Tk() root.title("Internet Speed Checker") @@ -7,6 +7,7 @@ root.resizable(True,True) def get_speed(): + speed = Speedtest() download = speed.download() upload = speed.upload() diff --git a/scripts/Blackjack/Internet Speed Tester/requirments.txt b/scripts/Blackjack/Internet Speed Tester/requirments.txt new file mode 100644 index 0000000..1f1aab7 --- /dev/null +++ b/scripts/Blackjack/Internet Speed Tester/requirments.txt @@ -0,0 +1,2 @@ +speedtest-cli +tkinter diff --git a/scripts/Internet Speed Checker/Readme.md b/scripts/Internet Speed Checker/Readme.md index 8c92e6c..5df95e9 100644 --- a/scripts/Internet Speed Checker/Readme.md +++ b/scripts/Internet Speed Checker/Readme.md @@ -7,9 +7,15 @@ This script will check your internet speed and with Download and Upload speed , 1. Install the Speedtest Package using the following command: - `pip install speedtest` + `pip install speedtest -cli` +
+ or simply do +
+ `pip install requirments.txt` +
+ (make sure you have uninstalled previous version of speedtest using pip unistall speedtest) + new documentation: https://pypi.org/project/speedtest-cli/ - Official Documentation: https://pypi.org/project/speedtest/ 2. Run the script diff --git a/scripts/Internet Speed Checker/main.py b/scripts/Internet Speed Checker/main.py index c63d322..16d79c4 100644 --- a/scripts/Internet Speed Checker/main.py +++ b/scripts/Internet Speed Checker/main.py @@ -1,6 +1,6 @@ # Internet Speed Checker -import speedtest +import speedtest # first run pip uninstall speedtest then run pip install speedtest-cli import time import os diff --git a/scripts/Internet Speed Checker/requirements.txt b/scripts/Internet Speed Checker/requirements.txt new file mode 100644 index 0000000..4b024b7 --- /dev/null +++ b/scripts/Internet Speed Checker/requirements.txt @@ -0,0 +1 @@ +speedtest-cli