def main(): twttr = TwitterClient() user_name = 'Miley Cyrus' sn = twttr.search_username(user_name) twttr.search_tweets_for_user(sn, 50) print twttr.aggregate_photos(sn, 50) print twttr.user_location(sn) print twttr.user_description(sn) print twttr.aggregate_hashtags(sn, 1000) print twttr.aggregate_retweets(sn, 1000)
def main(): erc = EntityRecongnitionClient() user_name = 'Lena Blietz' tc = TwitterClient() ic = InstagramClient() sn_twitter = tc.search_username(user_name) sn_instagram = ic.get_username(user_name) # print "-----------Instagram Entities --------------" # print erc.get_entities_from_instagram(sn_instagram) # print "-----------Twitter Entities --------------" # print erc.get_entities_from_tweets(sn_twitter,50) print "-----------Musicians --------------" print erc.get_musicians(sn_twitter, sn_instagram)