A Library for webscraping social media platforms (twitter) and using sentiment analysis on them!
Project description
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', '.csv') # Save Tweets
tweets = pandas.read_csv ('tweets.csv') # Read Tweets
# Print the Results
print (tweets)
print ('\n{0}'.format (twitter_score))
And that's the end of the Readme, Thanks for Reading!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for Social-Media-Sentiment-Analysis-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 75eadfd9ca94f0a75f694f5d046d484fa31e8cb2bc51b3e064e1c3ffe6b16749 |
|
MD5 | 74900b9f16f2a2b62b18d378b055bbd6 |
|
BLAKE2b-256 | a50c99d9078306e6ca4996841548c8cdb013b9cf2e47fe4ea33a570362d8c186 |
Close
Hashes for Social_Media_Sentiment_Analysis-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad54429066869fca0eee2662b7c1b29f70a7cc9030b0234d814dfeeb28d9e0c4 |
|
MD5 | fe8f77bfc679a4b49ee2e6cb48c9ef12 |
|
BLAKE2b-256 | 1208cfdcf1390be765f7af4ad396d94f049384dc4a42d30b11c8e56d1e595a00 |