From 61b1bffbf50e5e9c0ae5c3e665ac9784ff63d2e8 Mon Sep 17 00:00:00 2001 From: garret Date: Wed, 12 Jul 2023 17:10:33 +0100 Subject: remove newlines from prints --- walker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'walker.py') diff --git a/walker.py b/walker.py index a3d7408..7c5ef5b 100644 --- a/walker.py +++ b/walker.py @@ -36,14 +36,14 @@ def start(url, headers): def undrm(url, headers, cid_info): meta = requests.get(url=url, headers=headers).json() - print('Page count: {}\n'.format(len(meta['data']['result']))) + print('Page count: {}'.format(len(meta['data']['result']))) save_path = os.path.join('downloaded_chapters/{}/{}'.format(cid_info['TITLE'], cid_info['CHAPTER'])) if not os.path.exists(save_path): os.makedirs(save_path) - print(f'Saving chapter to {save_path}\n') + print(f'Saving chapter to {save_path}') for num, page in enumerate(meta['data']['result']): -- cgit v1.2.3-70-g09d2