Socket
Socket
Sign inDemoInstall

Social-Media-Sentiment-Analysis

Package Overview
Dependencies
3
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    Social-Media-Sentiment-Analysis

A Library for webscraping social media platforms (twitter) and using sentiment analysis on them!


Maintainers
1

Readme

Social Media Sentiment Analysis

A Library for webscraping social media platforms (twitter) and using sentiment analysis on them!

Installation

pip install social_media_sentiment_analysis

Get started

Get Tweets from twitter and apply sentiment analysis on it:

# Import Library's
import pandas
from Social_Media_Sentiment_Analysis import Social_Media
from Social_Media_Sentiment_Analysis import NLP_Classification as Classify

tweets = Social_Media.get_tweets ('BTC', 'lang:"en"', 128)  # Get Tweets
tweets, twitter_score = Classify.twitter_indicator (tweets) # Apply Sentiment Analysis

Social_Media.save_tweets (tweets, 'tweets')                 # Save Tweets
tweets = pandas.read_csv ('tweets.csv')                     # Read Tweets

# Print the Results
print (tweets)
print ('\n{0}'.format (twitter_score))

Documentaion: https://social-media-sentiment-analysis.readthedocs.io/en/latest/

And that's the end of the Readme, Thanks for Reading!

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc