mirror of
https://github.com/jessebot/tiny_personal_website.git
synced 2025-10-01 01:48:43 +00:00
removing python3 code
This commit is contained in:
parent
3779355d43
commit
ce7b869b08
1 changed files with 0 additions and 15 deletions
|
@ -3,24 +3,9 @@
|
|||
# 1/7/19 -- 2019? D:
|
||||
import argparse
|
||||
import datetime
|
||||
import random
|
||||
import sqlite3
|
||||
from google_images_download import google_images_download
|
||||
|
||||
|
||||
def generate_band_art(band):
|
||||
# change image results by making different key words
|
||||
band_list = band.split()
|
||||
last_item = len(band_list) - 1
|
||||
keywd = band_list[last_item]
|
||||
# google image
|
||||
response = google_images_download.googleimagesdownload()
|
||||
absolute_img_paths = response.download({"keywords":keywd, "size":"medium",
|
||||
"output_directory":"./images/band",
|
||||
"no_directory":"true", "limit":1})
|
||||
print(type(absolute_img_paths))
|
||||
print(absolute_img_paths)
|
||||
|
||||
def add_new_band(band):
|
||||
"""
|
||||
Takes a str of a bands name and adds it to a sqlite3 db
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue