formatting fix for code
[twitter-api-cdsw-solutions] / README.md
1 ## Followers
2
3 1. Write a program to find out how many people a particular user follows?
4 2. For each of your followers, find out how many followers they have.
5 3. Make a "famous ratio" for a given user which I'll define as 'number of followers a person has divided by number of people they follow. Try out @makoshark, and @pontifex (the Pope). Who is higher?
6 4. [SKIPPED] Identify the follower you have that also follows the most of your followers.
7 5. [SKIPPED] How many users follow you but none of your followers?
8 6. [SKIPPED] Repeat these analyses for people you follow, rather than that follow you.
9 7. Identify the "famous ratio" for every one of your followers or friends? Who has the highest one?
10
11 ## Topics and Trends
12
13 1. Modify twitter3.py to produce a list of 1000 tweets about a topic of your choice.
14 2. Look at those tweets. How does twitter interpret a two word query like "data science"
15 3. Do the previous step but eliminate retweets [hint: look at the tweet object!]
16 4. For each original tweet, list the number of times you see it retweeted.
17 5. Get a list of the URLs that are associated with your topic using Twitter.
18
19 ## Geolocation
20
21 1. Alter the streaming code to include a "locations" filter. You need to use the order sw_lng, sw_lat, ne_lng, ne_lat for the four coordinates.
22 2. What are people tweeting about in Times Square today?
23 3. Set up a bounding box around TS and around NYC as a whole.
24 4. Do "static" (i.e., not using the streaming API) geolocation search using code like this: `d = api.search(geocode='37.781157,-122.398720,1mi')`

Benjamin Mako Hill || Want to submit a patch?