Skip to content

Instantly share code, notes, and snippets.

@nbortolotti
Created August 31, 2015 01:28
Show Gist options
  • Save nbortolotti/189e1a4788676edca688 to your computer and use it in GitHub Desktop.
Save nbortolotti/189e1a4788676edca688 to your computer and use it in GitHub Desktop.
def main(argv):
people = raw_input('G+ id to analyze? ')
postnumers = int(raw_input('number of posts '))
service, flags = sample_tools.init(
argv, 'plus', 'v1', __doc__, __file__,
scope='https://www.googleapis.com/auth/plus.me')
try:
person = service.people().get(userId=people).execute()
# show people name
print 'ID: %s' % person['displayName']
tech = ['Polymer', 'Android']
request = service.activities().list(userId=person['id'], collection='public', maxResults='1')
#open file
myfile = open(people + '.csv', 'wb')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment