How different are two newspapers discussing a specific news, Which Newspaper is best to read?
The main objective of this project is to analyze how both Newspapers(Times Of India and The Hindu) reacted to major incident on WhatsApp. Also to analyze the content of these two Newspapers addressing the matter.I want to see which accounts are having good lexical diversity, word occurrences, sentiment analysis, generate word cloud.
I have web scraped and collected the data from the online Newspapers of Times of India and The Hindu. here are the links to those:
-
importing bs4, requests API's, I have collected the data from these URL's.
- beautifulSoup
- pandas
- requests
- matplotlib
- nltk
- numpy
- wordcloud
- PIL
- urllib
- random
- Web Scraping websites
- Getting the data.
- Performing analysis: Lexical Diversity, word occurrences, sentiment analysis, common words, generate word cloud
- Visualizing the results using Matplotlib.
- From the graph of Lexical Diverity Analysis, we can clearly state that "The Hindu" is a Newspaper with higher LD than "Times Of India" Newspaper.
- We can also see that the "The Hindu" has more unique words than the "Times Of India" Newspaper.
- From the above Sentimental Analysis, I can conclude that even if a Newspaper("The Hindu") is having more unique words, high lexical diversity too but it also has more Negative words, Aggressive terms in the Newspaper than the "Times of India".
- It indicates "The Hindu" has more negative compound than the "Times of India"
- "The Hindu" has more uniqueness in words than "Times of India". Hence, reading "The Hindu" can help people in learning more new different words.