<reponame>naz2007/tweety-mine
#Twitter Profiler app. This is a simple script to configure the Twitter API

import tweepy
import time #https://github.com/tweepy/tweepy

# Twitter API credentials. Get yours from apps.twitter.com. Twitter acct rquired
# If you need help, visit https://dev.twitter.com/oauth/overview
consumer_key = "Gvgd0vrVtzW75Q1csdQz8bjW1"
consumer_secret = "<KEY>"
access_key = "<KEY>"
access_secret = "<KEY>"

# this function collects a twitter profile request and returns a Twitter object
def get_profile(screen_name):
    auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
    auth.set_access_token(access_key, access_secret)
    api = tweepy.API(auth)
    try:
        #https://dev.twitter.com/rest/reference/get/users/show describes get_user
        user_profile = api.get_user(screen_name)
    except:
        user_profile = "broken"

    return user_profile

# uses the function to query a Twitter user. Try s = get_profile("cd_conrad")
s = get_profile("dr_nazia")
print s
#Twitter Profiler app. This is a simple script to configure the Twitter API

import tweepy
import time #https://github.com/tweepy/tweepy

# Twitter API credentials. Get yours from apps.twitter.com. Twitter acct rquired
# If you need help, visit https://dev.twitter.com/oauth/overview
consumer_key = "Gvgd0vrVtzW75Q1csdQz8bjW1"
consumer_secret = "<KEY>"
access_key = "<KEY>"
access_secret = "<KEY>"

# this function collects a twitter profile request and returns a Twitter object
def get_profile(screen_name):
    auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
    auth.set_access_token(access_key, access_secret)
    api = tweepy.API(auth)
    try:
        #https://dev.twitter.com/rest/reference/get/users/show describes get_user
        user_profile = api.get_user(screen_name)
    except:
        user_profile = "broken"

    return user_profile

# uses the function to query a Twitter user. Try s = get_profile("cd_conrad")
s = get_profile("dr_nazia")
print s
#Twitter Profiler app. This is a simple script to configure the Twitter API #https://github.com/tweepy/tweepy # Twitter API credentials. Get yours from apps.twitter.com. Twitter acct rquired # If you need help, visit https://dev.twitter.com/oauth/overview # this function collects a twitter profile request and returns a Twitter object #https://dev.twitter.com/rest/reference/get/users/show describes get_user # uses the function to query a Twitter user. Try s = get_profile("cd_conrad")