---
title: "Discussion on \"Creating Your Own Recent Stock News Sentiment Analyzer using Python\" | Hashnode"
description: "Discussion on \"Creating Your Own Recent Stock News Sentiment Analyzer using Python\". Scraping Latest GoogleNews Articles to Guage Sentiment"
url: "https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9"
---

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

Discussion

# [Creating Your Own Recent Stock News Sentiment Analyzer using Python](https://tradewithpython.hashnode.dev/news-sentiment-analysis-using-python?utm_source=hashnode&utm_medium=feed)

Scraping Latest GoogleNews Articles to Guage Sentiment

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

-   [#python](https://hashnode.com/tag/python)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#news](https://hashnode.com/tag/news)
-   [#newbie](https://hashnode.com/tag/newbie)

## 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

[Nader bouchnag](https://hashnode.com/@NaderBouch)

[Feb 18, 2022](https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9/comment/620f68aed589905b4129201c)

So Great ! I just want to know how i modifie this code to scrappe more than 10 articles ? Thank you very much !

[Govind N](https://hashnode.com/@govindnelika)

[Feb 18, 2022](https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9/comment/620f30f99270326b0ebc6ef0)

Bro first of all thank you for sharing this, I am a noob at Python but I have been trying to find a way to get Twitter sentiment data, your article did wonders for me, thank a bunch.

I just wanted to know if there was a python code to analyse months/years worth of newspaper data, if so what changes would one need to make to the existing code for the same, please gimme a reply when you find the time. Also I'm a student of Political Science, so such tools do wonders for collecting data which would otherwise take ages, any help on the subject would be a great help

[Sai Mohan Reddy](https://hashnode.com/@saimohan35)

[Oct 16, 2021](https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9/comment/616a795918374f257327b6e1)

Really great article... but I am getting below error if run same code in a loop for 100 stocks. "HTTP error 429 too many requests". how to handle this ?

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

[Oct 16, 2021](https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9/comment/616a795918374f257327b6e1#reply-616b3aa7441bd36daa955dea)

Hi [Sai Mohan Reddy](https://hashnode.com/@saimohan35) if you try and run this for 100 stocks in one go, one or the other website will block you out. Use try and except in such cases.

```
try:
    #scrape data
except:
    pass
```

[Sabrine GLAA](https://hashnode.com/@Sabrine)

[Aug 17, 2022](https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9/comment/616a795918374f257327b6e1#reply-62fcde290cfd6de8c7d77e16)

Did you find any solution for this problem please? [Sai Mohan Reddy](https://hashnode.com/@saimohan35)

[Daniel Böhlich](https://hashnode.com/@Daniel1988)

[Aug 24, 2022](https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9/comment/616a795918374f257327b6e1#reply-6306262b79f56556d0cb76ff)

Hi Sai, I cannot change the code to request multiple stocks. Could you may be share your code ? Thank you so much
