Skip to content

Fun application that queries twitter based on a hashtag and shows where the trend began (based on dates you input) and tracks it to an end date (Which you also input)

Notifications You must be signed in to change notification settings

SamOh/trend_map

Repository files navigation

trend_map

Application that uses twitter API to show a map of how the trend spread, who the first person to tweet a certain trend was, and average number of favorites someone has.

Credits

Started out using the twitter API, but quickly realized the limitations on the number of tweets I could query (stops at about 1-2 weeks back), so I had to find an alternative. Found code at https://github.com/Jefferson-Henrique/GetOldTweets-python that works around the limitations set by twitter, however, the code as it was could not extract the lat/long attributes of a tweet so I added code to find the geographical location the user was from.

UPDATE

Unfortunately, despite spending a lot of time working on the onofficial API to query twitter and get responses, as of ~1/03/16 twitter updated it's site and is no longer compatible with the code, so I have to swtich back to the twitter API and work with the restrictions in place.

Currently the application is broken for the reasons described above. I'm in the process of fixing it and replacing all instances with the official API (some functionality, i.e. the first() function and the length of the map() function for finding trends will be highly limited). Also instead of finding the complete average of favorites of any user, favorites() will only find the number of favorites going back a couple of weeks (bc of twitter limitations)

About

Fun application that queries twitter based on a hashtag and shows where the trend began (based on dates you input) and tracks it to an end date (Which you also input)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published