dongyiex / 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.

Home Page:https://blog.twitter.com/developer/en_us/topics/tips/2020/how-to-analyze-the-sentiment-of-your-own-tweets.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

https://blog.twitter.com/developer/en_us/topics/tips/2020/how-to-analyze-the-sentiment-of-your-own-tweets.html

License:Apache License 2.0


Languages

Language:Jupyter Notebook 58.9%Language:Python 41.1%