summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaniel-Jones <daniel@danieljon.es>2018-06-05 21:21:31 +0930
committerdaniel-Jones <daniel@danieljon.es>2018-06-05 21:21:31 +0930
commit7ed420fdadcc9bcabb8c24f4319c3714bd066b7c (patch)
tree4352bb59f3cd0b0ac5bd6163b489604153efcc71
parent59bf9ef950d5d1f04c3af18554b6ef7a2492ade8 (diff)
downloadanimedb-7ed420fdadcc9bcabb8c24f4319c3714bd066b7c.tar.gz
animedb-7ed420fdadcc9bcabb8c24f4319c3714bd066b7c.zip
minor code edits
-rwxr-xr-ximagescraper/imagescraper.py5
-rwxr-xr-xmalimporter/malimporter.py2
2 files changed, 4 insertions, 3 deletions
diff --git a/imagescraper/imagescraper.py b/imagescraper/imagescraper.py
index bd3f05a..dbdded6 100755
--- a/imagescraper/imagescraper.py
+++ b/imagescraper/imagescraper.py
@@ -45,13 +45,13 @@ def dbclose(db):
def dbgetanimeids(db):
"""
- collect anime ids from the data base and return a list of them
+ collect anime ids from the database and return a list of them
"""
ids = [];
c = db.cursor();
for id in c.execute("SELECT animeid FROM anime;"):
ids.append(id[0]);
- return (ids);
+ return ids;
def createlinks(ids):
"""
@@ -87,6 +87,7 @@ if __name__ == "__main__":
retrieve anime id's from the database
construct urls to scrape
scrape url for cover image link
+ download cover images and save them to a given or default directory
"""
parser = argparse.ArgumentParser();
diff --git a/malimporter/malimporter.py b/malimporter/malimporter.py
index f23a68e..978c42d 100755
--- a/malimporter/malimporter.py
+++ b/malimporter/malimporter.py
@@ -193,7 +193,7 @@ if __name__ == "__main__":
# commit and close db
dbcommitclose(db);
- print("MAL name: {}\n"\
+ print("MAL name: {}\n" \
"MAL id: {}\n" \
"total anime {}\n" \
"total watching {}\n" \