Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xdevplatform/weekly-tweet-sentiment

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.
https://github.com/xdevplatform/weekly-tweet-sentiment

azure python twitter twitter-api twitter-sentiment-analysis

Last synced: about 9 hours ago
JSON representation

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.

Awesome Lists containing this project

README

        

# 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](https://developer.twitter.com/en/docs/labs/recent-search/overview) and [Microsoft Azure's Text Analytics Cognitive Service](https://azure.microsoft.com/en-us/services/cognitive-services/text-analytics/) 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](https://developer.twitter.com/en/docs/basics/authentication/guides/securing-keys-and-tokens).

For a step by step guide be sure to take a look at the [blog post on the subject](https://blog.twitter.com/developer/en_us/topics/tips/2020/how-to-analyze-the-sentiment-of-your-own-tweets.html).

## Support
Create a [new issue](https://github.com/twitterdev/weekly-tweet-sentiment/issues) on GitHub.

## Contributing

We feel that a welcoming community is important and we ask that you follow Twitter's
[Open Source Code of Conduct](https://github.com/twitter/code-of-conduct/blob/master/code-of-conduct.md)
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