feat: restructure for memory efficiency

This commit is contained in:
eneller
2025-03-16 19:00:01 +01:00
parent 6754f47e9f
commit 5d063d8597
4 changed files with 62 additions and 213 deletions

View File

@@ -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__":