I'm updating my spreadsheets using gspread
, the process takes about an hour, i have about 200 spreadsheets. It seems about 30 minutes into the updating the sheets, the connection drops. Is there a way to keep the login alive? I thought I was keeping the connection alive because I'm opening and writing to different sheets about every 30 seconds.
I can use a try
statement and if it bombs re-login. I was wondering if anybody had a better way?
I'm used to using the simple example from gspread
example of:
gc = gspread.login('[email protected]', 'password')
sht1 = gc.open_by_key('0BmgG6nO_6dprdS1MN3d3MkdPa142WFRrdnRRUWl1UFE')
How do I turn this into a keep alive connection login to arrive at sht1
?