python - Using gspread with proxy -
i trying access google spreadsheets through gspread api in python. have imported gspread. getting socket. error: [errno 10061] no connection made because target machine actively refused it @ gc = gspread.login('pan*******@gmail.com', '********')
here code:
import urllib2 import urllib import gspread pil import image pil import imagedraw pil import imagefont w = 420 gc = gspread.login('pan******@gmail.com', '*******') wks = gc.open("spreadsheet").sheet1 i have checked username , password correct. have added 2 environment variables 'http_proxy':'host:port' , 'https_proxy':'host:port' doing wrong? thank you.
for might have problem, found out gspread library doesn't support proxy connections. ran through normal connection , worked.