I want to mess around with my online Google spreadsheets from my Linux box
programmatically. I am TOTALLY confused.
I've got gdata installed, and it appears that the best way to access the
spreadsheets is to authenticate with Oauth2.
Here's the main thing: how do I get an Oauth2 key to use
OK, maybe the p12 file is useful after all (?) I've got the following code:
import gdata
tokenfile = my-privatekey.p12
f = open(tokenfile, 'r')
blob = f.read()
f.close()
token = gdata.gauth.token_from_blob(blob)
When I run that I get:
Traceback (most recent call last):
File
OK, the story so far:
import gdata
import gdata.auth
import gdata.gauth
import gdata.docs.service
import OpenSSL.crypto
tokenfile = privatekey.p12
#f = open(tokenfile, 'r')
#blob = f.read()
#f.close()
#if blob:
p12 = OpenSSL.crypto.load_pkcs12(file(tokenfile, 'rb').read(), 'notasecret')
print
iapain [EMAIL PROTECTED] wrote:
On Aug 31, 5:40 pm, Michele Simionato [EMAIL PROTECTED]
wrote:
I would like to upload a tab-separated file to a Google spreadsheet
from Python. Does anybody
have a recipe handy? TIA,
Michele Simionato
Probably its irrelevant to python. Use should
On Sep 2, 7:13 pm, [EMAIL PROTECTED] (Alex Martelli) wrote:
iapain [EMAIL PROTECTED] wrote:
On Aug 31, 5:40 pm, Michele Simionato [EMAIL PROTECTED]
wrote:
I would like to upload a tab-separated file to a Google spreadsheet
from Python. Does anybody
have a recipe handy? TIA,
I would like to upload a tab-separated file to a Google spreadsheet
from Python. Does anybody
have a recipe handy? TIA,
Michele Simionato
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 31, 5:40 pm, Michele Simionato [EMAIL PROTECTED]
wrote:
I would like to upload a tab-separated file to a Google spreadsheet
from Python. Does anybody
have a recipe handy? TIA,
Michele Simionato
Probably its irrelevant to python. Use should see Google Spreadsheet
API and use it in