Skip to content

Commit bd76b8c

Browse files
committed
add twitter setup guide
1 parent 1c31fe7 commit bd76b8c

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

Diff for: setting_up_twitter_api.md

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Setting Up Twitter API
2+
3+
To use Tweepy, which is needed for a project in this course, you will need to set up a Twitter API account.
4+
5+
First, go to [apps.twitter.com](https://apps.twitter.com). Make sure you have a Twitter account set up and "Sign in". Click the "Create New App" button as shown below (Figure 1).
6+
7+
![](http://i.imgur.com/VfohYTN.png)
8+
9+
**Figure 1:** Twitter Apps Dashboard
10+
11+
12+
After that, fill in the form to create an API account. Give any name you like, and provide a "Website" if you have one you own. Otherwise, just use a placeholder as I've done below. It does not have to be an existing site (Figure 2).
13+
14+
![](http://i.imgur.com/LojWHv1.png)
15+
16+
**Figure 2:** Filling out the form to create an API account
17+
18+
After that, your API account will be set up. You will see the page below. Click the "Manage Keys and Access Tokens" link (Figure 3).
19+
20+
![](http://i.imgur.com/ruDx1Ms.png)
21+
22+
**Figure 3:** Click "Manage Keys and Access Tokens"
23+
24+
You will then come to a page to manage your keys and tokens, which you will need to have so Tweepy can use this account. Note the "Consumer Key" and "Consumer Secret" values. You will need those. Then click "Create my access token".
25+
26+
![](https://i.imgur.com/V2kILPr.png)
27+
28+
**Figure 4:** Note the values above, and click "Create my access token"
29+
30+
A panel will pop up at the bottom with two more values: "Access Token" and "Access Token Secret". Hold on to these two values as well (Figure 5).
31+
32+
![](http://i.imgur.com/kiTk8kh.png)
33+
34+
**Figure 5:** The "Access Token" and "Access Token "
35+
36+
Do not share these four key/token values as they are used to access your Twitter API account. Be sure to follow the usage agreement so your access is not revoked.

Diff for: setting_up_twitter_api.pdf

479 KB
Binary file not shown.

0 commit comments

Comments
 (0)