Created
July 31, 2013 23:05
-
-
Save bsullins/6127010 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 sys | |
import bitly_api | |
import os | |
import datetime | |
from datetime import date | |
from config import config | |
import time | |
#connect to bitly | |
conn_btly = bitly_api.Connection(access_token=config['ACCESS_TOKEN']) | |
#get links | |
pop_links = conn_btly.user_popular_links() | |
print 'got links!' | |
#links loop | |
for pop_link in pop_links: | |
#link = conn_btly.user_link_history(pop_link['link'], limit=1) | |
link = conn_btly.link_info(pop_link['link']) | |
print link |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment