---
title: "Comment by Sai Mohan Reddy on \"Creating Your Own Recent Stock News Sentiment Analyzer using Python\" | Hashnode"
description: "Really great article... but I am getting below error if run same code in a loop for 100 stocks. &quot;HTTP error 429 too many requests&quot;. how to handle this"
url: "https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9/comment/616a795918374f257327b6e1"
---

[Discussion](https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9)

Comment [Creating Your Own Recent Stock News Sentiment Analyzer using Python](https://hashnode.com/posts/news-sentiment-analysis-using-python/60a2286823723215ec2febc9)

[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
