easy-scrap-0.1.0
توضیحات
A small package for scrapping images from google
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | easy-scrap-0.1.0 |
| نام | easy-scrap |
| نسخه کتابخانه | 0.1.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | MayStepanyan <mayisstepanyan97@gmail.com> |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/easy-scrap/ |
| مجوز | - |
# easy_scrap
A simple Python package for scrapping images from Google Image Search
## Installation
The package is available for pip installation
```bash
pip install easy_scrap
```
## Usage
The main class is ```GoogleImageScrapper```, which takes query as argument, searches for image
links and downloads them to a separate folder. Folders for saving the images will be created on the
runtime.
A basic example of usage
```python
from easy_scrap import GoogleImageScrapper
query = "fruits"
save_folder_name = "fruit"
n_images = 100
# parse Google Image Search html page for image links
scrapper = GoogleImageScrapper(query=query,
save_folder_name=save_folder_name,
n_images=n_images)
# download and save images
scrapper.download_all_images()
```
## TODOs
- Add option to parse queries from the shell
- Add other search systems
- Try asynchronous download for speed boost
- Handle issue when first 3 downloaded images are some Google icons
نیازمندی
| مقدار | نام |
|---|---|
| ==2.28.1 | requests |
| ==9.4.0 | pillow |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl easy-scrap-0.1.0:
pip install easy-scrap-0.1.0.whl
نصب پکیج tar.gz easy-scrap-0.1.0:
pip install easy-scrap-0.1.0.tar.gz