Skip to content

Instantly share code, notes, and snippets.

@oparrish
oparrish / feedwrangler-unread.py
Created February 10, 2015 02:23
Outputs current unread count, feed title, and publish date of last read item in your Feed Wrangler account
import requests
import json
import time
import sys
def get_feed(access_token, feed_id, offset=0, limit=1000, read='false', published_since='1'):
feed_payload = {'access_token': access_token, 'read': read, 'feed_id': feed_id, 'offset': offset, 'published_since': published_since, 'limit': limit}
feed_r = requests.get('https://feedwrangler.net/api/v2/feed_items/list_ids', params=feed_payload)
feed_data = json.loads(feed_r.text)