Skip to content

Instantly share code, notes, and snippets.

@jmcmellen
Created September 17, 2012 20:20
Show Gist options
  • Save jmcmellen/3739540 to your computer and use it in GitHub Desktop.
Save jmcmellen/3739540 to your computer and use it in GitHub Desktop.
Pasted from IPython
import coveapi
import ConfigParser
config = ConfigParser.SafeConfigParser(allow_no_value=True)
with open('covekeys.cfg') as cfg:
config.readfp(cfg)
print config.get('API_id')
print config.get('Main', 'API_id')
cove = coveapi.connect(config.get('Main', 'API_id'), config.get('Main', 'API_secret'))
thing = cove.videos.filter(filter_title__contains='Ozarks')
print thing
for result in thing['results']:
print result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment