Editing Intro to Programming and Data Science (Fall 2021)/Twitter authentication setup
From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 59: | Line 59: | ||
'''9''' In the next step, you will access Twitter credentials, which will let you authenticate with Twitter in python. | '''9''' In the next step, you will access Twitter credentials, which will let you authenticate with Twitter in python. | ||
You need unique, private credentials to collect tweets. You will be pasting these credentials into your Python code. Be sure if you share your Python code, you ***do not | You need unique, private credentials to collect tweets. You will be pasting these credentials into your Python code. Be sure if you share your Python code, you ***do not** share your unique developer credentials. Β | ||
When you created your app, it should have generated the Consumer API and API secret keys. These are two long strings labeled "API key" and "API secret key". You should copy and paste those into a text file on your desktop. | When you created your app, it should have generated the Consumer API and API secret keys. These are two long strings labeled "API key" and "API secret key". You should copy and paste those into a text file on your desktop. |