๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
Sign inDemoInstall
Socket

wrapper-news-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wrapper-news-api

A Python package to fetch news from BBC, ABP News, and India Today

0.6
PyPI
Maintainers
1

๐ŸŒ NewsAPI - Fetch News from Multiple Sources with Ease ๐Ÿ“ฐ

PyPI Python Build Status

๐Ÿ”ฅ Overview

NewsAPI is a Python package that allows you to easily fetch the latest news articles from popular sources like BBC, ABP News, and India Today. Whether you're building a news aggregator or just looking for easy access to headlines, NewsAPI provides a simple interface to gather data with minimal setup.

Features:

  • ๐ŸŒ Fetch news from BBC, ABP News, and India Today.
  • ๐Ÿ” Optional keyword-based news search for bbc (e.g., "technology", "politics").
  • ๐Ÿ› ๏ธ Simple API interface.
  • ๐Ÿ“ฆ Lightweight and easy to integrate into your project.

๐Ÿš€ Usage

Using NewsAPI to fetch news is super simple. Hereโ€™s a quick guide:

Fetch the Latest News from BBC:

from wrapper_news_api import NewsAPI

# Create an instance of the NewsAPI class
news_api = NewsAPI()

# Fetch news from BBC
bbc_news = news_api.bbc() #bbc(),abp(),india_today()

for article in bbc_news:
    print(f"Title: {article['title']}")
    print(f"Description: {article['description']}")
    print("---")

๐Ÿ“ฆ Installation

Install the latest version from PyPI:

pip install wrapper_news_api

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts