---
title: "Discussion on \"Creating Twitter Sentiment Analyzer using Python to gather insights on Stocks\" | Hashnode"
description: "Discussion on \"Creating Twitter Sentiment Analyzer using Python to gather insights on Stocks\". Optimize Twitter Sentiment Analysis with Python for stock insights using VADER and snscrape, analyzing public opinions on tickers without API keys"
url: "https://hashnode.com/posts/sentiment-analysis-for-stocks-from-twitter/6087d7d4b81aa72681392a0a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating Twitter Sentiment Analyzer using Python to gather insights on Stocks](https://tradewithpython.hashnode.dev/sentiment-analysis-for-stocks-from-twitter?utm_source=hashnode&utm_medium=feed)

Optimize Twitter Sentiment Analysis with Python for stock insights using VADER and snscrape, analyzing public opinions on tickers without API keys

Apr 27, 2021 · 8 min read · tradewithpython.hashnode.dev  
Updated Sep 2, 2023  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#python-projects](https://hashnode.com/tag/python-projects)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#twitter](https://hashnode.com/tag/twitter)

## Written by

[Utkarsh singhal](https://hashnode.com/@utkarsh060)

@utkarsh060 · Delhi, India

  
[View profile](https://hashnode.com/@utkarsh060)

Disseminating whatever little knowledge I have :)

Hi! I am Utkarsh, and I am currently working as a Quantitative Analyst. I have done my Bachelor's in Management Studies (BMS) from the University of Delhi. I am a 20-year-old with the curiosity to learn new tools and explore new technologies. I have a strong inclination towards finance, technology (FinTech) and analytics. I love to tell stories with data but what fascinates me the most is how the next big thing is going to change the world.

## Responses 3

Markdown supported · ⌘↵ to post

[aditya pokhriya](https://hashnode.com/@Pokhriya)

[Sep 8, 2021](https://hashnode.com/posts/sentiment-analysis-for-stocks-from-twitter/6087d7d4b81aa72681392a0a/comment/613908e4fc163b45c7534660)

Hey it was working fine but all of sudden I am getting this error typeerror: multiple inheritance with namedtuple is not supported snscrape Please help me to fix this, also if I have to club other medium like Google along with twitter for in sentiment analysis how can I do that

[aditya pokhriya](https://hashnode.com/@Pokhriya)

[Sep 11, 2021](https://hashnode.com/posts/sentiment-analysis-for-stocks-from-twitter/6087d7d4b81aa72681392a0a/comment/613908e4fc163b45c7534660#reply-613c8bb022b7a41dfe5fc0a2)

[Yash Roongta](https://hashnode.com/@yash12392)

![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1631357360255/NygVeLqti.png)

PFA is image

my second question was: Can I club Google, Facebook, and quora with Twitter sentiment to get overall channels consolidated sentiment analysis and also if I have to add geographical limits like within India or Mumbai, how can I do it

[Yash Roongta](https://hashnode.com/@yash12392)

[Sep 11, 2021](https://hashnode.com/posts/sentiment-analysis-for-stocks-from-twitter/6087d7d4b81aa72681392a0a/comment/613908e4fc163b45c7534660#reply-613c93c91821961e2551e8b4)

Hi [aditya pokhriya](https://hashnode.com/@Pokhriya), I am not able to replicate this error at my end, can you please try re-installing `snscrape` using the below.

`pip uninstall snscrape`  
`pip install snscrape`

For your second question, it is possible but would involve a lot of research and time to build the necessary infrastructure. At this stage, we are not sure how you can build it.

[aditya pokhriya](https://hashnode.com/@Pokhriya)

[Sep 11, 2021](https://hashnode.com/posts/sentiment-analysis-for-stocks-from-twitter/6087d7d4b81aa72681392a0a/comment/613908e4fc163b45c7534660#reply-613cd9731821961e2551ef98)

[Yash Roongta](https://hashnode.com/@yash12392) thanks for quick response and support .

[Sudhir Shetty](https://hashnode.com/@SudhirShetty)

[May 4, 2021](https://hashnode.com/posts/sentiment-analysis-for-stocks-from-twitter/6087d7d4b81aa72681392a0a/comment/6090f002953edb0234b831e6)

Excellent

[Yash Roongta](https://hashnode.com/@yash12392)

[Apr 27, 2021](https://hashnode.com/posts/sentiment-analysis-for-stocks-from-twitter/6087d7d4b81aa72681392a0a/comment/60880f90d73f1a2dea28b7d7)

Great article [Utkarsh singhal](https://hashnode.com/@utkarsh060)
