Redirect download info to stderr
This commit is contained in:
		
							
								
								
									
										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')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user