Using gspread with proxy
问题 I am trying to access google spreadsheets through gspread api in python. I have imported gspread . I am getting socket. error: [Errno 10061] No connection could be made because the target machine actively refused it at gc = gspread.login('pan*******@gmail.com', '********') Here is my code: import urllib2 import urllib import gspread from PIL import Image from PIL import ImageDraw from PIL import ImageFont w = 420 gc = gspread.login('pan******@gmail.com', '*******') wks = gc.open("Spreadsheet"