DEV Community

Cover image for Python : Yspeed ⚡⚡
Thibaut
Thibaut

Posted on

Python : Yspeed ⚡⚡

A new Yspeed library to replace speedtest !!

What's this Yspeed library?

YSpeed is a Python library that scrapes the Speedtest site using Selenium and displays the results with Rich. This library makes it easy to retrieve internet connection speed data (upload, download and latency) in an automated manner and display it elegantly using the Rich library.

Link github : Yspeed

Why use this library?

There is currently no library maintained on python to provide information such as ping, upload rate, download rate and other ...

Here's the reality:

Image

What does it have that the others don't?

Mainly, it recovers the information provided on the speedtest dynamically and easily so it is completed by the information given by ipinfo.io

How does Yspeed use it?

Installation

Make sure you have Python 3.6 or later installed. To install YSpeed, use the following command:

pip install yspeed
Enter fullscreen mode Exit fullscreen mode

or :

Clone the Project

git clone https://github.com/Foufou-exe/Yspeed
Enter fullscreen mode Exit fullscreen mode

Go to the directory

cd Yspeed
Enter fullscreen mode Exit fullscreen mode

Install the dependencies

pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

Run the Yspeed.py script

python yspeed.py
Enter fullscreen mode Exit fullscreen mode

Usage

Example 1

Here is an example of how to use the YSpeed library:

from yspeed import Yspeed

ys = Yspeed()

result = ys.run_speedtest()
ys.display_results(result)
Enter fullscreen mode Exit fullscreen mode

If you would like to see more information about this bookseller, click on the Github link.

Top comments (0)