Redirect download info to stderr
This commit is contained in:
parent
0bd02abed6
commit
6df9e32d8f
2
utils.py
2
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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user