Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.rst

theoldreader API wrapper

simple python wrapper for theoldreader api https://github.com/theoldreader/api

usage example

establishing connection, getting auth_code

conn = theoldreader.Connection('application_name', 'email', 'password')
print(conn.auth_code)

searching among items

search = theoldreader.ItemsSearch(conn)
unread = search.get_unread_only()
liked = search.get_liked_only()
shared = search.get_shared_only()
starred = search.get_starred_only()

print("unread - ",  len(unread))
print("liked - ", len(liked))
print("shared - ", len(shared))
print("starred - ", len(starred))

changing status

for item in unread:
    item.get_details()
    if "php" in item.title.lower():
        item.mark_as_read()
        print(item.title, " - marked as read (", item.item_id, ")")

About

theoldreader api wrapper(python)

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.