Skip to main content

Assess whether a twitter is positive or negative based on the user's recent tweets

Project description

ci-cd PyPI License: MIT

twitterpersona

Assess a twitter user's character based on their recent tweets

Summary

Twitter is a popular social media app with over 1 billion user accounts. While a diversity of users is a strength, some individuals have concerns with the prevalence of "troll" accounts and individuals who exhibit unconstructive tone and diction whom they deem not worth engaging with. The package twitterpersona is intended to provide insight into a twitter user based on their tweet history in effort to determine if an account is worth engaging with. The package provides an easy to use interface for determining the general sentiment expressed by a user.

Functions

load_twitter : Returns a user's recent tweets (as a dataframe) given their user id using the Twitter API.

generalPreprocessing : Cleans the recent tweet dataframe generated by load_twitter. Includes features such as removing punctuation and extracting emojis.

get_sentiment_result : Determines the general (average) sentiment of recent tweets.

create_wordcloud : Generates a word cloud of most frequently used words in tweets.

Scope and Fit

There are existing packages that preform tweet analysis (including twitter-sentiment-analysis, tweetlytics, and pytweet). However, none of these packages focus of providing metrics in the context of determining if the twitter user is worth engaging with.

Contributing

Interested in contributing? Check out the contributing guidelines in CONTRIBUTING.md. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

twitterpersona was created by Andy Wang, Renzo Wijngaarden, Roan Raina, Yurui Feng. It is licensed under the terms of the MIT license.

Credits

twitterpersona was created with cookiecutter and the py-pkgs-cookiecutter template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twitterpersona-0.2.2.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twitterpersona-0.2.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file twitterpersona-0.2.2.tar.gz.

File metadata

  • Download URL: twitterpersona-0.2.2.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for twitterpersona-0.2.2.tar.gz
Algorithm Hash digest
SHA256 aa94224bd441c8f9fcc6bc72fa734fabbbcfae916be54270e6f02cc7bf2783b8
MD5 9f4a7f2dbbee8dd93796f2f0f0783ee2
BLAKE2b-256 dd2bcbcbc2f6346ec346dfaa361cee947fb5a0371950a233a60fab4cb33922bf

See more details on using hashes here.

File details

Details for the file twitterpersona-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: twitterpersona-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for twitterpersona-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 27f7e21f2cba78510df859b92e5c8a1f561e6d2586a798df0654e6cf520d45e7
MD5 b5d51f304d86ad22473467dab91b8a33
BLAKE2b-256 e19081df4e99cddf9c4ce5cb3198c1ba32a5e36d74d847483d2255d56ad3da66

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page