semvec/pypi-packages huggingface dataset:
fast-youtube-search 0.0.8
Unlimited youtube search with web scrapping
Requires Python: >=3.6

# Fast Youtube Search

This is a simple library that allows you to search videos on Youtube.

It is fast because it doesn't use selenium.

For each video it returns the name, id , and the thumbnail's url.
# Install 
```bash
pip install fast-youtube-search
```
# Usage

```python
 from fast_youtube_search import search_youtube

 results = search_youtube(['jorja', 'smith']) # receives an array of search terms as argument

 print(results) #returns a list of results(dictionaries)

 print(results[0]) # a dictionary with properties name, id and img
# OUTPUT 
# {
#  'name': 'Jorja Smith - Blue Lights | A COLORS SHOW', 
#  'id': 'fYwRsJAPfec', 
#  'img': 'https://i.ytimg.com/vi/fYwRsJAPfec/hqdefault.jpg'
#  }

#Optional arguments
# max_num_results : max number of results that the function returns
results = search_youtube(['jorja', 'smith'], max_num_results = 2)
```
shadowselenium 1.0.0
This can be used along with selenium to identify Shadow Elements present under Shadow DOM/Shadow Root
Requires Python: >=3.7,<4.0

Used along with selenium to identify Shadow Elements present under Shadow DOM.

The Structure of shadow DOM would be as below:

Shadow Host -> Shadow Root -> Shadow DOM Elements

check the shadow dom by inspecting the website here:

https://shrinivasbb.github.io/ShadowDomSite

Use this module to get Shadow DOM Elements matching the CSS selectors.

For usage check the below link:

https://github.com/shrinivasbb/shadowselenium


For implementation check the tests folder.


.. code-block:: python

    from shadowselenium import ShadowElement

    shadowdom = ShadowElement(driver) #argument should be driver instance of opened browser i.e chromedriver etc.

    shadowelement = shadowdom.find_shadow_element_by_css("shadow-hostnav", ".nav-link")
mrkdwn2html 0.0.4
Convert markdown to html.
Requires Python: >=3.6

# MRKDWN 2 HTML

Converting between Markdown and HTML.

Still under development. Avaliable on pip, to install:

`pip install mrkdwn2html`

The primary function is mrkdwn2html(mrkdwn) which returns the converted string.
KMeansImage 1.0
A K-Means based image compressor. Consists interactive widgets for Jupyter Notebook
Requires Python: >=3.0

# KMeansImage
# Pip package(Python >= 3.6)

This is a python package to compress images in python using KMeans-Clustering technique.

[![N|Solid](https://pypi.org/static/images/logo-small.6eef541e.svg)](https://pypi.org/project/KMeansImage/)

![png](https://raw.githubusercontent.com/imsahil007/KMeansImage/master/res/kmeans.png)
Download the package using:
```
pip3 install KMeansImage
```

# How to use:
```
from KMeansImage import kmeans_image
k_img = kmeans_image( $image_path_with_image_name ,  $output_colors )
k_img.save( $save_path_with_file_name )
```
In case you are using Jupyter notebook, you can also use:
```
from KMeansImage import kmeans_image_ui
k_img = kmeans_image_ui( $image_directory_path )
k_img.save( $save_path_with_file_name )
```
# Example: [Pdf](https://github.com/imsahil007/KMeansImage/blob/master/res/tutorial.pdf)

Import Library


```python
from KMeansImage import kmeans_image
```

First parameter = path<br>
Second parameter = No. of colors i.e. Clusters


```python
k_img = kmeans_image('/home/sahil/Downloads/KMeansImage/res/batman.jpg', 20)
```

    Original Image size: 419.291KB
    Compressed Image: 253.235KB



![png](https://raw.githubusercontent.com/imsahil007/KMeansImage/master/res/batman_KMeans_.jpg)


See the difference between size of both pics<br>
For saving the file use -


```python
k_img.save()
```

    Image saved: /home/sahil/Downloads/KMeansImage/res/batman_KMeans_.jpg


# Interactive For Jupyter Notebook


```python
from KMeansImage import kmeans_image_ui
```

Parameter = Image directory path


```python
k_img = kmeans_image_ui('/home/sahil/Downloads/KMeansImage/res/')
```


![png](https://raw.githubusercontent.com/imsahil007/KMeansImage/master/res/example.png)



```python
k_img.save()
```

    Image saved: /home/sahil/Downloads/KMeansImage/res/sherlock_KMeans_.jpg

# Jupyter Notebook Dependency:
```
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
jupyter labextension install @jupyter-widgets/jupyterlab-manager
```

You can also download using Github:
  - Download and extract this repo
  - Move the terminal to the directory of setup.py
  ```
  pip install .
  ```

# Packages Required:
- numpy
- scikit-learn
- matplotlib
- ipywidgets





#### Contact Me:

[Sahil](https://github.com/imsahil007)


### Todos

 - Add a button for saving images instead of save() in interactive notebook
 - Add some boundary conditions
 - Add Test cases

License
----

MIT


**Free Software, Hell Yeah!**