Skip to content

kusinkay/theoldreader

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Python 100.0%