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.
Create a new issue on GitHub.
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.
Copyright 2020 Twitter, Inc.
Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/LICENSE-2.0