Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6011231
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:13:49+00:00 2026-05-23T02:13:49+00:00

I use my Google Reader notes as a place to store bookmarks and small

  • 0

I use my Google Reader notes as a place to store bookmarks and small snippets of information. I would like to write a small script to let me post notes from the command line (I prefer Python,but an answer using any language will be accepted).

This project seemed to be a be a good place to start & some more up-to-date information here. The process appears to be:

  1. Get a SID (session ID) from https://www.google.com/accounts/ClientLogin?service=reader&Email={0}&Passwd={1}
  2. Get a temporary token from http://www.google.com/reader/api/0/token
  3. Make a POST to http://www.google.com/reader/api/0/item/edit with the correct field values

So… step 2 above always fails for me (get a 403 forbidden) and trying Martin Doms C# code has the same issue. It looks like Google no longer use this method for authentication.

Update… This comment got me up and running. I can now log in and get a token. Now I just need to figure out how to POST the note. My code is below:

import urllib2

# Step 1: login to get session auth 
email = 'myuser@gmail.com'
passwd = 'mypassword' 

response = urllib2.urlopen('https://www.google.com/accounts/ClientLogin?service=reader&Email=%s&Passwd=%s' % (email,passwd))
data = response.read()
credentials = {}
for line in data.split('\n'):
    fields = line.split('=') 
    if len(fields)==2:
        credentials[fields[0]]=fields[1]
assert credentials.has_key('Auth'),'no Auth in response'

# step 2: get a token
req = urllib2.Request('http://www.google.com/reader/api/0/token')
req.add_header('Authorization', 'GoogleLogin auth=%s' % credentials['Auth'])
response = urllib2.urlopen(req)

# step 3: now POST the details of note

# TBD...
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T02:13:49+00:00Added an answer on May 23, 2026 at 2:13 am

    Using Firebug you can see what gets submitted if you add a Google Reader note from a browser.

    The url it posts to is : http://www.google.co.uk/reader/api/0/item/edit.

    It seems that the only required parameters are ‘T’ (for the token retrieve at step 2) and ‘snippet’ which is the note being posted.

    Based on that I did the following which works for me (note import urllib as well encode the post body):

    # step 3: now POST the details of note
    
    import urllib
    
    token = response.read()
    add_note_url = "http://www.google.co.uk/reader/api/0/item/edit"
    data = {'snippet' : 'This is the note', 'T' : token}
    encoded_data = urllib.urlencode(data)
    req = urllib2.Request(add_note_url, encoded_data)
    req.add_header('Authorization', 'GoogleLogin auth=%s' % credentials['Auth'])
    response = urllib2.urlopen(req)
    
    # this part is optional
    if response.code == 200:
        print 'Gadzooks!'
    else:
        print 'Curses and damnation'
    

    There are a couple of other params that you can set e.g. ck, linkify, share etc, but they are all documented on the site.

    I leave reading the note from a command line argument to the script as an exercise for the reader.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use Google Chrome instead of the WebKit Framework in one
I need to write web aplication like google reader (using SmartGWT). Instead of RSS
In Google Reader, you can use a bookmarklet to note a page you're visiting.
For all the RSS feeds I subscribe to I use Google Reader , which
I want to use Google spreadsheets to store data online so multiple people can
I would normally use Google analytics because it is free and simple to implement
I use Google for my RSS Reader and I want to export a list
For unofficial google reader api, we can use Atom feed api and also can
I would like to use permalink for external links on my site. For example,
I want to use google chrome as a control. I think Enso does this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.