Skip to content

FnSK4R17s/Twitter_Sentiment_Analysis

Repository files navigation

This is code for the video:-

https://youtu.be/PPNkpJ_rhRU

Sentiment Analysis using Tweepy

Sentiment analysis is the branch of NLP which focuses on analysing the sentiment of a given piece of text.

What is Bitcoin?

Bitcoin is a Decentralised Cryptocurrency !

It is an open source software which is use to make digital payments without the involvement of a centralized agency or a Bank.

How does it function ?

It runs on a Blockchain. Blockchain is a distributed ledger which is installed in every node in the bitcoin network. Each node in the bitcoin network is called a Miner. Miners are responsible for maintaining the bitcoin network by approving transactions made via the bitcoin network.

Blockchain

Blockchain is a data structure of blocks where each block is connected to the next block just like a chain.

Why is it important ?

Bitcoin is important because it is decentralized, and immutable i.e. no one can undo whatever is written on the blockchain. To push a transaction to the bitcoin network each and every miner has to approve the transaction as a genuine one by showing a proof of work. If more than 50% of the miners approve of the transaction, it is added to the bitcoin network or the blockchain. It is so safe because the total number of miners is very big and no one owns so much computing power (50%) that they can fake a transaction in the network.

(50% of networks computing power is morer than the sum of computing power of to 500 Supercomputers combined !)

What is ABER ?

It is a new cryptocurrency announced by UAE and Saudi Arabian Governments for bank to bank transactions. Follow the links to know more:

  1. https://cointelegraph.com/news/uae-saudi-arabian-digital-currency-aber-to-be-restricted-to-select-banks-at-start
  2. https://www.khaleejtimes.com/region/uae-saudi-announce-launch-of-common-digital-currency-aber
  3. https://gulfbusiness.com/uae-saudi-reveal-details-common-digital-currency-aber/

What is Tweepy ?

Tweepy is a library which lets us access twitter's API Introduction: Twitter is a popular social network where users share messages called tweets. Twitter allows us to mine the data of any user using Twitter API or Tweepy. The data will be tweets extracted from the user. The first thing to do is get the consumer key, consumer secret, access key and access secret from twitter developer available easily for each user. These keys will help the API for authentication.

Steps to obtain keys:

  1. Login to twitter developer section
  2. Go to “Create an App”
  3. Fill the details of the application.
  4. Click on Create your Twitter Application
  5. Details of your new app will be shown along with consumer key and consumer secret.
  6. For access token, click ” Create my access token”. The page will refresh and generate access token.

Tweepy is one of the library that should be installed using pip. Now in order to authorize our app to access Twitter on our behalf, we need to use the OAuth Interface. Tweepy provides the convenient Cursor interface to iterate through different types of objects. Twitter allows a maximum of 3200 tweets for extraction.

These all are the prerequisite that have to be used before getting tweets of a user.

Installing Tweepy

We install tweepy using pip install tweepy

Releases

No releases published

Packages

No packages published