Editing 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 3: Line 3:
Things you will need before you start:
Things you will need before you start:


== Get a Twitter Account and Link It to a Mobile Phone ==
* '''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 ==
To collect tweets, you need to be approved by Twitter to be a developer.
Follow each of these steps:
Follow each of these steps:


Line 23: Line 18:


'''6''' On the next page, under "what would you like us to call you", put "CDSW_student".
'''6''' On the next page, under "what would you like us to call you", put "CDSW_student".
What you are signing up for is an Individual Developer Account (as opposed to Team Developer Account).


[[File:Capture20200126.PNG|400px]]
[[File:Capture20200126.PNG|400px]]
Line 46: Line 39:


'''8''' Click "next" in the lower right then click "Looks good" on the review page. Finally, accept the terms of service and click "Submit Application" on the next page.
'''8''' Click "next" in the lower right then click "Looks good" on the review page. Finally, accept the terms of service and click "Submit Application" on the next page.




Line 55: Line 47:
'''If you have any trouble with the steps before this, email us before Saturday.''' If you have trouble on the next steps, we'll be able to help you on Saturday.
'''If you have any trouble with the steps before this, email us before Saturday.''' If you have trouble on the next steps, we'll be able to help you on Saturday.


== Confirm your developer email address  ==


'''10''' When you confirm in the email, you will arrive at https://developer.twitter.com/en/account/get-started. On that page, click "Create an app". This will take you to https://developer.twitter.com/en/apps
'''10''' When you confirm in the email, you will arrive at https://developer.twitter.com/en/account/get-started. On that page, click "Create an app". This will take you to https://developer.twitter.com/en/apps
Line 62: Line 52:
'''11''' Click "Create an app", which takes you to https://developer.twitter.com/en/apps/create. You'll need to fill in a few details about your app.
'''11''' Click "Create an app", which takes you to https://developer.twitter.com/en/apps/create. You'll need to fill in a few details about your app.


App name: "CDSW Sample <Your_First_and_Last_Name>"
App name: "CDSW Sample"


Application Description: "Sample application for the CDSW workshop."
Application Description: "Sample application for the CDSW workshop."
Line 80: Line 70:
*Almost there!!*  
*Almost there!!*  


== Generate and copy your individual, private, unique Twitter developer credentials ==
'''12''' In the next step, you will access Twitter credentials, which will let you authenticate with Twitter in python.
'''12''' 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** share your unique developer credentials.


You should be at a page that looks like:
You should be at a page that looks like:
Line 95: Line 82:
You will need all four of these strings in order to have your Twitter application work.
You will need all four of these strings in order to have your Twitter application work.


'''Keep this material secret.''' Your access token and access token secret will allow anybody who has it to post to Twitter as you and to control your account. It is equivalent to your Twitter username and password so please be as careful with it as you would be with your Twitter password!
''Keep this material secret.'' Your access token and access token secret will allow anybody who has it to post to Twitter as you and to control your account. It is equivalent to your Twitter username and password so please be as careful with it as you would be with your Twitter password!


== Other documentation ==
== Other documentation ==
Explore how Tweets are structured *[https://developer.twitter.com/en/docs/tweets/data-dictionary/overview/tweet-object Twitter Data Dictionary Tweet Objects]
In this workshop, we'll be working with TWO different Twitter APIs, "Standard Search" and "Realtime."
More about the using the Twitter Search API :
* [https://developer.twitter.com/en/docs/tweets/search/overview Official Twitter info on the Search API]
For this workshop, we'll be working with the "Standard Search", the most limited of Twitter Search API options
* [https://developer.twitter.com/en/docs/tweets/search/overview/standard Twitter "Standard Search"]
This page has some helpful intel about modifying Standard Search parameters (including sample request and response):
* [https://developer.twitter.com/en/docs/tweets/search/api-reference/get-search-tweets Getting search tweets.]
Using the Twitter Realtime API :
* [https://developer.twitter.com/en/docs/tweets/filter-realtime/overview Official Documentation Overview of the Realtime API]


More about the developer credentials you just generated:
* [https://developer.twitter.com/en/docs/basics/getting-started Official documentation on how to get Tokens from developer.twitter.com]
* [https://developer.twitter.com/en/docs/basics/getting-started Official documentation on how to get Tokens from developer.twitter.com]


[[Category:CDSW]]
[[Category:CDSW]]
Please note that all contributions to CommunityData are considered to be released under the Attribution-Share Alike 3.0 Unported (see CommunityData:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)