semvec/pypi-packages huggingface dataset:
gi-scraper 0.4.6
Google Image Scraper.
Keywords: python, selenium, web scraping, images, google image scraper, web scraper, image scraping, google images, image scraper, image API, API, automation, data extraction, scraping tool, image downloader, web automation, scraping framework, data scraping, image search, image retrieval

# Google-Image-Scraper

## About

This module is based on web-scraping technology and uses Google Images to provide a Streamable Image API.

### Supported Browsers

- **Chrome**

## How to Use?

```python
# import Scraper class
from gi_scraper import Scraper


# Pass a Cache instance with a custom directory path and timeout
# Set cache timeout to -1 for caching indefinitely

"""
from gi_scraper import Cache

cache = Cache(dir_path="gi_cache", timeout=-1)
sc = Scraper(workers=8, headless=False, cache=cache)
"""

# The object creation has an overhead time
# The same object can be reused to fire multiple queries
sc = Scraper(headless=False)

for query, count in {"Naruto": 20, "Gintoki": 30}.items():
    print("Scraping...", query, ":", count)

    # scrape method returns a stream object
    stream = sc.scrape(query, count)

    # stream.get method yields Response object with following attributes
    # - query (str): The query associated with the response.
    # - name (str): The name attribute of the response.
    # - src_name (str): The source name attribute of the response.
    # - src_page (str): The source page attribute of the response.
    # - thumbnail (str): The thumbnail attribute of the response.
    # - image (str): The image attribute of the response.
    # - width (int): The width attribute of the response.
    # - height (int): The height attribute of the response.

    for index, response in enumerate(stream.get()):
        if index == 10:
            sc.terminate_query()  # Terminate current query midway
            break
        # response.to_dict returns python representable dictionary
        print(response.width, "x", response.height, ":", response.image)


# call this to terminate scraping (auto-called by destructor)
sc.terminate()
```
beautider 0.1.5
Module for creating progress bars.
Requires Python: >=3.8
Keywords: progress bar

# Beautider

Module for creating progress bars.

## Examples

### Example in Lib

You can see an example of how to use the library using this code: 

```
from beautider import *

load = Loader().example()
```

You should see the following:

![img](https://github.com/bolgaro4ka/beautider/blob/b4603c18ed53a1edd0a5b09893928e52d46c2bc9/img/img.png?raw=true)

### Another example

```
import time
from beautider import *

load = Loader(description='I load nothing')

while True:
    for _ in range(1, 101):
        load.update(1)
        time.sleep(0.1)
        load.pr_load()
    for _ in range(1, 101):
        load.update(-1)
        time.sleep(0.1)
        load.pr_load()
```
![img](https://github.com/bolgaro4ka/beautider/blob/b4603c18ed53a1edd0a5b09893928e52d46c2bc9/img/img_1.png?raw=true)
![img](https://github.com/bolgaro4ka/beautider/blob/b4603c18ed53a1edd0a5b09893928e52d46c2bc9/img/img_2.png?raw=true)
## Args

 - size - The larger this value, the smaller the bar progress. (if your max_value very large, then the size value should be set larger.)
 - colors - Use of colours (True/False)
 - description - Description next to progress bar
 - complete_symbol - Symbols that are responsible for the filled part of the progress bar
 - uncomplete_symbol - Symbols that are responsible for the unfilled part of the progress bar
 - borders - Borders of progress bar (for example: ```'[]'```, ```'{}'```, ```'--'```, ```'[}'```)
 - units - Units of measurement (default %)
 - max_value - Progress bar ends here
 - min_value - Progress bar started from here
 - show_of - Shows text "```x``` in ```max_value``` ```units```"
 - show_speed - Shows speed

## Developer
By bolgaro4ka. [Link](https://github.com/bolgaro4ka)