Skip to content

A tutorial which walks you through how you can create code that pulls your Tweets from the past 7 days and gives you a score to let you know exactly how your week has been.

License

Notifications You must be signed in to change notification settings

xdevplatform/weekly-tweet-sentiment

Repository files navigation

How to analyze the sentiment of your own Tweets

Tweets combined with a sentiment score can give you a gauge of your Tweets in a quantitative way. To put some data behind the question of how you are feeling, you can use Python. This code sample uses the Recent Search endpoint of Twitter Developer Labs and Microsoft Azure's Text Analytics Cognitive Service to detect languages and determine sentiment scores.

For this code to run you will need to set up a configuration file with your secrets, a sample of this can be found under config.yaml. Be sure to add your config.yaml to your .gitignore and check out our guide on securing keys and tokens.

For a step by step guide be sure to take a look at the blog post on the subject.

Support

Create a new issue on GitHub.

Contributing

We feel that a welcoming community is important and we ask that you follow Twitter's Open Source Code of Conduct in all interactions with the community.

License

Copyright 2020 Twitter, Inc.

Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0

About

A tutorial which walks you through how you can create code that pulls your Tweets from the past 7 days and gives you a score to let you know exactly how your week has been.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks