Created
April 27, 2020 07:07
-
-
Save lakshay-arora/65f88c990f30090a1c104e082a42a855 to your computer and use it in GitHub Desktop.
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 required libraries | |
import tweepy | |
import time | |
import pandas as pd | |
pd.set_option('display.max_colwidth', 1000) | |
# api key | |
api_key = "Enter API Key Here" | |
# api secret key | |
api_secret_key = "Enter API Secret Key Here." | |
# access token | |
access_token = "Enter Access Token Here" | |
# access token secret | |
access_token_secret = "Enter Access Token Secret Here." | |
# authorize the API Key | |
authentication = tweepy.OAuthHandler(api_key, api_secret_key) | |
# authorization to user's access token and access token secret | |
authentication.set_access_token(access_token, access_token_secret) | |
# call the api | |
api = tweepy.API(authentication, wait_on_rate_limit=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment