import requests #import json user = "anish+feedbin@lakhwara.com" secrets = open("/home/anish/usr/dev/secrets/feedbin", "r") password = secrets.readline()[:-1] # don't want the new line character hostStarred = "https://api.feedbin.com/v2/starred_entries.json" hostTest = "https://api.feedbin.com/v2/authentication.json" hostEntries = "https://api.feedbin.com/v2/entries.json" r = requests.get(hostStarred, auth=(user, password)) starred = list(r.json()) params = dict({'ids': ','.join(str(e) for e in starred[0:10])}) starred_entries = requests.get(hostEntries, auth=(user, password), params=params) #print(json.dumps(starred_entries.json(), indent=4)) for link in starred_entries.json(): linkStr = "[" + link['title'] + "](" + link['url'] + ")" print(linkStr) if link['title'] != "You Think You Want Media Literacy… Do You?": if link['url'].find("colossal") == -1: print(link['content']) print()