Apr-05-2022, 12:26 AM
I am trying to use curl to read read large response.
I ran that from command line and redirected to text file and it is 30Mb file
using python I can put one record at a time but not everything that I want.
using following code which is simple.
I ran that from command line and redirected to text file and it is 30Mb file
using python I can put one record at a time but not everything that I want.
using following code which is simple.
1 2 3 4 5 6 7 8 |
try : r = requests.get(url, auth = ( 'username' , 'password' ), headers = headers, verify = False ) r.raise_for_status() except requests.exceptions.RequestException as error: print ( "Error:" , error) exit() output = r.json() |