Moving to new seperate repos

This commit is contained in:
Lucas Oskorep
2019-04-25 23:52:46 -05:00
parent 285955fa5c
commit 493f5cfb25
85 changed files with 123 additions and 4432 deletions
+25
View File
@@ -0,0 +1,25 @@
import pandas as pd
import multiprocessing
from google_images_download import google_images_download
df = pd.read_csv("pokemon.csv")
response = google_images_download.googleimagesdownload()
def get_images_for_pokemon(pokemon):
response.download(
{
"keywords": pokemon,# + " pokemon",
"limit": 250,
"chromedriver": "chromedriver",
"thumbnail":True
# Add chromedriver to your path or just point this var directly to your chromedriver
}
)
pool = multiprocessing.Pool(multiprocessing.cpu_count()*4)
pool.map(get_images_for_pokemon, df["identifier"][:490])