Skip to content

Parvezkhan0/Media-Bias-Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“° Newspaper-Scrape

By Parvez Khan

Welcome to Newspaper-Scrape β€” a project that digs into the New York Times Technology section and pulls out the good stuff. Using a mix of web scraping, natural language processing, sentiment analysis, and a little Python magic, this tool automatically:

  • Extracts article text and metadata
  • Summarizes content
  • Analyzes polarity (positive/negative tone)
  • Measures subjectivity (objective vs. opinionated writing)

Perfect if you want a quick pulse on what’s happening in tech without wading through every single article.


⚑ Features

  • 🧠 Smart NLP: Summaries generated with textblob
  • πŸ˜€πŸ˜β˜ΉοΈ Sentiment Analysis: Detects how positive, neutral, or negative an article feels
  • πŸ—‚οΈ Metadata Extraction: Grab titles, authors, and publication dates
  • πŸ•΅οΈ Scraping Power: Runs through the New York Times Tech section using newspaper3k and BeautifulSoup

πŸ› οΈ Installation & Dependencies

To run this project locally, make sure you’ve got Python 3+ and the following packages installed:

pip install textblob newspaper3k requests bs4

No need to install time or random β€” those come built into Python.


πŸš€ Getting Started

  1. Clone this repo using GitHub Desktop or your favorite IDE (PyCharm works great).
  2. Run the script and let it pull articles directly from the NYT Tech section.
  3. View summaries, sentiment scores, and metadata in seconds.

🀝 Contributing

Spotted a bug? Have an idea for a new feature? Drop an issue in the Issues tab β€” I’ll try to respond quickly.


πŸŽ‰ Thanks!

Thanks for checking out Newspaper-Scrape! I hope this project saves you time and sparks ideas for your own experiments with web scraping + NLP.

About

Developed a machine learning model to detect media bias in news articles. Employed natural language processing techniques to analyze text content and classify sources into unbiased, left-leaning, or right-leaning categories. This project enhanced my expertise in text analysis and understanding of media landscape.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages