From 6df9e32d8fdc88c0cd066fdefe30723085eff3b4 Mon Sep 17 00:00:00 2001 From: Christopher Teutsch Date: Tue, 28 Jul 2020 17:27:34 +0200 Subject: [PATCH] Redirect download info to stderr --- utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.py b/utils.py index 8541733..6e4df2b 100644 --- a/utils.py +++ b/utils.py @@ -143,7 +143,7 @@ def get_fileio(date: DTDate, card_type: List[str] = CARD_VISA) -> BinaryIO: # py rq = fm.click(name='submitButton', coord=(random.randint(1, 114), random.randint(1, 20))) rq.add_header('Accept', '*/*') rp = b.retrieve(rq) - print(' Done.') + print(' Done.', file=stderr) # Returns an open file-like object with the PDF as contents return open(rp[0], 'rb')