Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fork of the pyrfeed google reader api

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 GoogleReader
Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 __init__.py
Octocat-spinner-32 setup.cfg
Octocat-spinner-32 setup.py
README.md

Google Reader API lib (unofficial)

This lib is a fork of pyrfeed

Docs

For documentation about the unofficial Google Reader API you can read GoogleReaderAPI

Quick Start

from GoogleReader import  CONST
from GoogleReader.reader import GoogleReader

gr = GoogleReader()
l = ('mymail@google.com', 'mypassword')
gr.identify(*l)
gr.login()

#Example to subscribe to a new feed
gr.add_subscription(url="https://gist.github.com/brutuscat.atom")

#Get a feed with the Starred entries
xmlfeed = gr.get_feed(feed=CONST.ATOM_STATE_STARRED)

#Get a feed with unread entries of subscritions labeled "important"
xmlfeed = gr.get_feed(feed=CONST.ATOM_PREFIXE_LABEL + "important", 
                      exclude_target=CONST.ATOM_STATE_READ) #Excludes the Read entries ;)

#Using the JSON api to get more detailed info about items in the feed
#:- Just add the json=True
jsonstream = gr.get_feed(url='http://www.joelonsoftware.com/rss.xml', json=True)
likes = jsonstream['items'][0]['likingUsers']

#The same examples as before seems to be working for the json api too
jsonstream2 = gr.get_feed(feed=CONST.ATOM_PREFIXE_LABEL + "important",
                          exclude_target=CONST.ATOM_STATE_READ, json=True)

You can also modify and run the GoogleReader.test() method to see if everything is running smoothly.

Something went wrong with that request. Please try again.