Generation

generate functionThu, 13 Apr 2023

codigo para buscar una imagen en mi computadora, crear una copia de la imagen y luego enviarla a otra carpeta

def getImages(query): img = requests.get( 'https://www.google.com/search?q=' + query + '&tbm=isch').content with open('/path/to/destination/image.jpg', 'wb') as handler: handler.write(img) getImages('cats')

Want to kickstart your project?Use the new AI Studio to create your code