Trying to log into Google Analytics via Python; stuck at 'Target feed is read-only' -



Trying to log into Google Analytics via Python; stuck at 'Target feed is read-only' -

i'm trying ga via python , download business relationship info. here steps:

assume i've gotten "auth" token , it's been assigned 'auth'. oh, , i'm in python interpreter, not program:

>>> accountparams = urllib.urlencode({'auth':auth, 'dxp:tableid':'48085049'}) >>> business relationship = urllib.urlopen('https://www.google.com/analytics/feeds/accounts/default',accountparams) >>> business relationship = account.read() >>> business relationship 'target feed read-only'

i recognize fact didn't error means i've achieved kind of limited success; expecting receive richer homecoming message 'target feed read-only' , i'm not sure go here. want this, think:

http://code.google.com/p/ga-api-http-samples/source/browse/trunk/src/v2/accountfeedresponse.xml#1

i tried advice of thread, , entered url via instead of post:

business relationship = urllib.urlopen('https://www.google.com/analytics/feeds/accounts/default?auth=dqaaajmaaad_ejjpipb4*******************************************************ocu_9dmeszmxprbmqyhws-&dxp:tableid=48085049')

but doesn't seem work either; error in return.

has been able ga via python? if so, how did it?

thanks

ok - used library. thanks

python google-analytics

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -