Editing Intro to Programming and Data Science (Spring 2020)/Twitter authentication setup
From CommunityData
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 4: | Line 4: | ||
== Get a Twitter Account and Link It to a Mobile Phone == | == Get a Twitter Account and Link It to a Mobile Phone == | ||
'''A Twitter account.''' To collect tweets from Twitter, you need a Twitter account. If your Twitter profile doesn't have your current mobile number associated with it, you will need to add your mobile number in order to create your new app as part of the process. | '''A Twitter account.''' To collect tweets from Twitter, you need a Twitter account. If your Twitter profile doesn't have your current mobile number associated with it, you will need to add your mobile number in order to create your new app as part of the process. | ||
== Apply to be a Twitter Developer == | == Apply to be a Twitter Developer == | ||
Line 25: | Line 26: | ||
What you are signing up for is an Individual Developer Account (as opposed to Team Developer Account). | What you are signing up for is an Individual Developer Account (as opposed to Team Developer Account). | ||
[[File:Capture20200126.PNG|400px]] | |||
'''7''' Next, Twitter will ask you about your plans. ''Please follow these instructions carefully to make sure Twitter approves your application.'' | '''7''' Next, Twitter will ask you about your plans. ''Please follow these instructions carefully to make sure Twitter approves your application.'' | ||
Line 38: | Line 40: | ||
Uncheck the sliders for "Will your app use Tweet, Retweet, like, follow, or Direct Message functionality?" and all other options. | Uncheck the sliders for "Will your app use Tweet, Retweet, like, follow, or Direct Message functionality?" and all other options. | ||
[[File:Capture20200126_1.PNG|400px]] | |||
[[File:Capture20200126_2.PNG|400px]] | [[File:Capture20200126_2.PNG|400px]] | ||
Line 81: | Line 84: | ||
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. | 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. | ||
You should be at a page that looks like: | |||
[[File:Capture20200126_2.PNG|400px]] | |||
Click the "Keys and Tokens" tab. You will see a box called "Consumer API keys" with two long strings labeled "API key" and "API secret key". You should copy and paste those into a text file on your desktop. | Click the "Keys and Tokens" tab. You will see a box called "Consumer API keys" with two long strings labeled "API key" and "API secret key". You should copy and paste those into a text file on your desktop. |