Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dedinc/yamager
Yamager - Simple module for parsing images from Yandex and Google.
https://github.com/dedinc/yamager
downloader google-image-search google-images image-parser image-python parse parser parsing python-parser python3 yandex-parsing
Last synced: 19 days ago
JSON representation
Yamager - Simple module for parsing images from Yandex and Google.
- Host: GitHub
- URL: https://github.com/dedinc/yamager
- Owner: DedInc
- License: mit
- Created: 2022-08-21T11:29:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-28T06:51:25.000Z (almost 2 years ago)
- Last Synced: 2024-11-19T16:54:30.746Z (about 1 month ago)
- Topics: downloader, google-image-search, google-images, image-parser, image-python, parse, parser, parsing, python-parser, python3, yandex-parsing
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
Yamager - Simple module for parsing images from Yandex and Google.
-How to use?-
```python
from yamager import Yamager
import randomyamager = Yamager()
############Yandex Images############
images = yamager.search_yandex_images('anime') #get image previews
previews = random.choice(images) #get previews of random image
print(yamager.get_best_image(previews)) #get best image of previews with high resolution
#################################################Yandex Images with ZenRows bypasser############
images = yamager.search_yandex_images('anime', zenrows='API_KEY')
previews = random.choice(images)
print(yamager.get_best_image(previews))
#################################################Yandex Images pages############
images = yamager.search_yandex_images('anime', page=30)
previews = random.choice(images)
print(yamager.get_best_image(previews))
#################################################Google Images############
images = yamager.search_google_images('anime')
print(random.choice(images)) #get random image from search
#####################################
```