Redirect download info to stderr

This commit is contained in:
Christopher Teutsch 2020-07-28 17:27:34 +02:00
parent 0bd02abed6
commit 6df9e32d8f

View File

@ -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')