yspeed 0.1.5
Yspeed is a library that scrapes the Speedtest site

<img src="https://socialify.git.ci/Foufou-exe/Yspeed/image?description=1&font=Jost&forks=1&issues=1&logo=https%3A%2F%2Fraw.githubusercontent.com%2FFoufou-exe%2FYspeed%2Fdev%2F.github%2Fimages%2Foffice.svg&name=1&owner=1&pattern=Solid&pulls=1&stargazers=1&theme=Dark" alt="Yspeed" />

<div align="center">

[![Python Version](https://img.shields.io/pypi/pyversions/yspeed)](https://github.com/Foufou-exe/Yspeed/releases)  [![Pypi](https://img.shields.io/pypi/v/yspeed)](https://pypi.org/project/yspeed) [![Build Status](https://app.travis-ci.com/Foufou-exe/Yspeed.svg?branch=main)](https://app.travis-ci.com/Foufou-exe/Yspeed) [![Python](https://img.shields.io/pypi/dm/Yspeed?label=Pypi%20Dowload&logo=Pypi)](https://pypi.org/project/yspeed) [![Python](https://img.shields.io/github/license/Foufou-exe/Yspeed)](https://github.com/Foufou-exe/Yspeed/blob/main/LICENSE) [![Python](https://img.shields.io/github/contributors/Foufou-exe/Yspeed?color=green)](https://github.com/Foufou-exe/Yspeed/graphs/contributors)

</div>

## Description 🌵

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.

<br>

## Features 🎈

- Speedtest.net site scraping with Selenium
- Retrieve internet connection speed results (upload, download and latency)
- Display results with Rich for better readability

<br>

## Installation ⚙️


Make sure you have Python 3.6 or later installed. To install YSpeed, use the following command:

```python
pip install yspeed
```

or :

Clone the Project

```cmd
git clone https://github.com/Foufou-exe/Yspeed
```

Go to the directory

```cmd
cd Yspeed
```

Install the dependencies

```cmd
pip install -r requirements.txt
```

Run the Yspeed.py script

```cmd
python yspeed.py
```

<br>

## Usage 🖥️

##### Example 1


Here is an example of how to use the YSpeed library:

```python
from yspeed import Yspeed

ys = Yspeed()

result = ys.run_speedtest()
ys.display_results(result)
```

<details>  
  <summary> 🎬 Example 1</summary>

  ![Video](https://raw.githubusercontent.com/Foufou-exe/Yspeed/dev/.github/images/exemple.gif)
  
</details>

<br>
<br>

##### Example 2

Here are the results that will come out when you use `.run_speedtest`.

```python
from yspeed import Yspeed

ys = Yspeed()
result = ys.get_speedtest()
print(result)
```
<details>  
  <summary> 🔍 Example 1</summary>

  ![Video](https://raw.githubusercontent.com/Foufou-exe/Yspeed/dev/.github/images/exemple3.png)
  
</details>

<br>


## Dependencies

YSpeed depends on the following libraries:

- selenium
- rich

- holo

Make sure you also have a Selenium-compatible driver installed for your preferred browser (Chrome, Firefox, etc.).

## Use  CLI


<details>  
  <summary> 🎬 Yspeed </summary>

![Video](https://raw.githubusercontent.com/Foufou-exe/Yspeed/dev/.github/images/exemple2.gif)
  
</details>


## Contribution

Feel free to contribute to this project by opening issues or submitting pull requests. All contributions are welcome.

## License

YSpeed is distributed under the MIT license. See the ``LICENSE`` file for more information.