feat: restructure for memory efficiency
This commit is contained in:
@@ -11,9 +11,10 @@ from convert import GBConvert, allbooks_url, get_all_books, Book
|
||||
def main():
|
||||
books = get_all_books()
|
||||
# NOTE consider making this a map()
|
||||
converter = GBConvert('./')
|
||||
for book in tqdm(books):
|
||||
if book.url is not None:
|
||||
GBConvert(book.url).run()
|
||||
converter.download(book.url)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user