Package: download-images
download_imagesdownload_imagesis a Python library for downloading images from google.InstallationUse the package managerpipto install download_images.pipinstalldownload_imagesDownload download_images frommy githuband use in your projectUsageimport download_images

download_images.main(["-q", "<query>", <args>"]) searches google for images from args and downloads themExampleAn example use is given onmy githubin the examples repositoryArgsusage:download_images.main([-h]-qQUERY[QUERY...][-lLIMIT][-oOUTPUTDIR][-cCHROMEDRIVER][-epqEXACTQUERY][-oqOPTIONALQUERY][-eqEXCEPTQUERY][-csCUSTOMSIZE|-sz{s,m,l,i,>2MP,>4MP,>6MP,>8MP,>10MP,>12MP,>15MP,>20MP,>40MP,>70MP,>400*300,>640*480,>800*600,>1024*768}][-ar{s,t,w,p}][-co{red,orange,yellow,green,teal,blue,purple,pink,white,gray,black,brown}|-ct{full-colour,black-and-white,transparent}][-it{face,photo,clipart,lineart,animated}][-ft{jpg,gif,png,bmp,svg,webp,ico,raw}][-sSITE][-ss{True,False}][-ur{CC,Commercial,Other}])Getargumentsforsearchingforimagesoptionalarguments:-h,--helpshowhelpmessageandexit-qQUERY[QUERY...],--queryQUERY[QUERY...]Querytosearchfor-lLIMIT,--limitLIMITMaximagestodownload-oOUTPUTDIR,--outputDirOUTPUTDIRFulldirectorytostoreimagesin-cCHROMEDRIVER,--chromedriverCHROMEDRIVERFulldirectorytothechromedriver-epqEXACTQUERY,--exactQueryEXACTQUERYWordsthatmustbeincluded(e.g.batunder)-oqOPTIONALQUERY,--optionalQueryOPTIONALQUERYWordsthatareoptional(e.g.appletree)-eqEXCEPTQUERY,--exceptQueryEXCEPTQUERYWordsthatmustnotbeincluded(e.g.catvote)-csCUSTOMSIZE,--customSizeCUSTOMSIZEFindimageofspecificsize-sz{s,m,l,i,>2MP,>4MP,>6MP,>8MP,>10MP,>12MP,>15MP,>20MP,>40MP,>70MP,>400*300,>640*480,>800*600,>1024*768},--size{s,m,l,i,>2MP,>4MP,>6MP,>8MP,>10MP,>12MP,>15MP,>20MP,>40MP,>70MP,>400*300,>640*480,>800*600,>1024*768}Findimagesofspecificsize(s,m,l,icon,>xMP,>x*y)-ar{s,t,w,p},--aspectRatio{s,t,w,p}Findimagesofspecificaspectratio(square,tall,wide,panoramic)-co{red,orange,yellow,green,teal,blue,purple,pink,white,gray,black,brown},--colour{red,orange,yellow,green,teal,blue,purple,pink,white,gray,black,brown}Findimagescontainingspecificcolour-ct{full-colour,black-and-white,transparent},--colourType{full-colour,black-and-white,transparent}Findimagesofspecifictype-it{face,photo,clipart,lineart,animated},--imageType{face,photo,clipart,lineart,animated}Typeofimage-ft{jpg,gif,png,bmp,svg,webp,ico,raw},--fileType{jpg,gif,png,bmp,svg,webp,ico,raw}Typeoffile-sSITE,--siteSITESpecificsiteordomaintosearch(e.g.example.com,.org-ss{True,False},--SafeSearch{True,False}ShouldSafeSearchbeon-ur{CC,Commercial,Other},--usageRights{CC,Commercial,Other}FilterbyusagerightsContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMITDisclaimerThis program lets you download images from Google. Please do not use any image in a way that violates its copyright terms.Google Images is a search engine that merely indexes images and allows you to find them. It does NOT produce its own images and, as such, it doesn't own copyright on any of them. The original creators of the images own the copyrights.Images published in the United States are automatically copyrighted by their owners, even if they do not explicitly carry a copyright warning. You may not reproduce copyright images without their owner's permission, except in "fair use" cases, or you could risk running into lawyer's warnings, cease-and-desist letters, and copyright suits. Please be very careful before its usage!Use this code judiciously.