Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

If you couldn't find it, the Twitter Developer application is found [here](https://developer.twitter.com/en/apps). Using the Twitter API requires an account, so you'll need to follow the steps, starting with clicking “Apply”.

<img src="Wk3Lab1Pics/2z9Atgn7jj_cS67D3ZraEgIWI0KX7oc4j_HIkohCMBuV0K4IAIT7OoAnA3sn2m8MEvt64d3BwnQHVX-EtmMIww6Co9muLQHllXtpyVvBnXKy_6Ni0cAoizl7NGgepek1OBQMnNd7Ggk.png">

<img src="https://lh4.googleusercontent.com/2z9Atgn7jj_cS67D3ZraEgIWI0KX7oc4j_HIkohCMBuV0K4IAIT7OoAnA3sn2m8MEvt64d3BwnQHVX-EtmMIww6Co9muLQHllXtpyVvBnXKy_6Ni0cAoizl7NGgepek1OBQMnNd7Ggk">
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ After finishing your application, confirm your email and your account should be
After finishing your application, confirm your email and your account should be processed and reviewed swiftly.


![img](https://lh4.googleusercontent.com/8BKvmctSfLQEKERSZIc9_3jKl7lnpkRJO3736TBuIkfwBzZhkZMmPL8hUnNjrCf27SqX1iZaHOv1RBrNfB2V1990cl9z35ojA-RjoDnN0vgn5XWuDhwMjpbbhHLj5J1qcuq4M2KSC4g)
![img](Wk3Lab1Pics/8BKvmctSfLQEKERSZIc9_3jKl7lnpkRJO3736TBuIkfwBzZhkZMmPL8hUnNjrCf27SqX1iZaHOv1RBrNfB2V1990cl9z35ojA-RjoDnN0vgn5XWuDhwMjpbbhHLj5J1qcuq4M2KSC4g.png)
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

In the creation of your app, fill out all the required information for your app details. For the website URL field, you can input any website, we used https://bitproject.org. Leave the OAuth Callback URL, TOS and Privacy Policy fields blank.

![img](https://lh6.googleusercontent.com/wCWo0frQNm2aPD3Fv30kMC90DQDk880eGb1KTGrL5I7dOjis95GoVBI2zJJ3tacIz-0ux9HFpgAYeB4Ym_LC2OAPabCMRzGeiRtnVRUbKAqn_PdGyMLunDhZCo_h-4XIysnYivjUwnI)
![img](Wk3Lab1Pics/wCWo0frQNm2aPD3Fv30kMC90DQDk880eGb1KTGrL5I7dOjis95GoVBI2zJJ3tacIz-0ux9HFpgAYeB4Ym_LC2OAPabCMRzGeiRtnVRUbKAqn_PdGyMLunDhZCo_h-4XIysnYivjUwnI.png)

Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ Paste your keys and tokens in the allocated space. You'll want to authenticate i
2. Set your access tokens with `auth.set_access_token()`
3. Create a API object in `tweepy` to fetch tweets: `tweepy.API(auth, wait_on_rate_limit=True)`

![image](https://images.pexels.com/photos/46148/aircraft-jet-landing-cloud-46148.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940)
![image](/Users/ryankuang/Documents/GitHub/curriculum/Module_Twitter_API/labs/Week 3/Airline Sentiment Analysis/Wk3Lab1Pics/aircraft-jet-landing-cloud-46148.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940.png)

Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,4 @@ This line enables access to our authentication object with our access token and

Setting the above tokens is telling the Twitter API that you are the one using the application! Great job!

![image](https://images.pexels.com/photos/1309644/pexels-photo-1309644.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500)

![](https://images.pexels.com/photos/1309644/pexels-photo-1309644.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500.png)
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ The function `produce_dataframe(search_dict, num_tweets)` should complete the fo

You are not allowed to change any function definition or code that was given to you. The end result should look like this:

![image]()
![dataframe_result (1)](Wk3Lab1Pics/dataframe_result (1).png)

Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ The function we want to use is `pandas.Dataframe(arguments)`. Use the argument:

If you run your code before inserting any data, your graph should look like this:

![image]()
![image](Wk3Lab1Pics/Airline_DF.png)

Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ The goal for this card is to create a *new* dataframe that's columns are the dat

To do this, choose just *one* airline whose data you will perform analysis on, and create a dataframe that looks like the one below:

![](https://projectbit.s3-us-west-1.amazonaws.com/darlene/labs/Airline_DF.PNG)

![](Wk3Lab1Pics/Airline_DF.png)
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ for colName, colData in df.iteritems():

Great job! Next, we'll create a graph derived from the dataframe we just created!

![image](https://images.pexels.com/photos/747079/pexels-photo-747079.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500)
![](https://images.pexels.com/photos/747079/pexels-photo-747079.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500.png)
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Students will use the Twitter API to analyze sentiments about airline tweets

# Difficulty

Medium
Medium
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading