diff --git a/make_book.py b/make_book.py index 1a4eb3d..710767f 100644 --- a/make_book.py +++ b/make_book.py @@ -192,6 +192,8 @@ class BEPUB: self.p_to_save.append(new_p.text) p.insert_after(new_p) index += 1 + if index % 50 == 0: + self.save_progress() if IS_TEST and index > TEST_NUM: break i.content = soup.prettify().encode()