Skip to content
/ yamager Public

Yamager - Simple module for parsing images from Yandex and Google.

License

Notifications You must be signed in to change notification settings

DedInc/yamager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yamager - Simple module for parsing images from Yandex and Google.


-How to use?-

from yamager import Yamager
import random

yamager = 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
#####################################