I want to download images of Star Wars episode 7 Force Awakens wallpapers.
Based on Automate downloading images off Google
import urllib
def google_image(star wars force awakens wallpaper):
search = x.split()
search = 'star wars force awakens wallpaper'.join(map(str, search))
url = 'http://ajax.googleapis.com/ajax/services/search/images?v=1.0&q=%s&safe=off' %
wget $imagelink
I don't know how to run this, I am new to bash files?
EDIT: how do I check what the image saves as to automate the sorting?
If relevant the sorts of pictures are like this: https://www.google.com/search?q=star+wars+force+awakens&biw=1280&bih=905&source=lnms&tbm=isch&sa=X&sqi=2&ved=0ahUKEwiNqq3tpOjJAhWC6yYKHbPHDRIQ_AUICCgD#tbm=isch&q=star+wars+force+awakens+wallpaper