🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

Social-Media-Sentiment-Analysis

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

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!

0.1.3
PyPI
Maintainers
1

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

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