Created
September 17, 2012 20:20
-
-
Save jmcmellen/3739540 to your computer and use it in GitHub Desktop.
Pasted from IPython
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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