From 7ed420fdadcc9bcabb8c24f4319c3714bd066b7c Mon Sep 17 00:00:00 2001 From: daniel-Jones Date: Tue, 5 Jun 2018 21:21:31 +0930 Subject: minor code edits --- imagescraper/imagescraper.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'imagescraper') 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(); -- cgit v1.2.3