Skip to content

KurochkinVasiliy/theoldreader

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

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

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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages