Skip to main content

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

Project description

🌍 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wrapper_news_api-0.6.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wrapper_news_api-0.6-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file wrapper_news_api-0.6.tar.gz.

File metadata

  • Download URL: wrapper_news_api-0.6.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for wrapper_news_api-0.6.tar.gz
Algorithm Hash digest
SHA256 1a8683406c2530235c4b3148476bf214bc9c8eee121bd74cd3162e6e4bde0395
MD5 f5a1c3a26d52fb0ac4e6f50a81219d83
BLAKE2b-256 1256cfb68419203e4e4dbc2d73a9fa2ca02d9134c1503518b4bed909fe55b928

See more details on using hashes here.

File details

Details for the file wrapper_news_api-0.6-py3-none-any.whl.

File metadata

  • Download URL: wrapper_news_api-0.6-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for wrapper_news_api-0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 e08a85862326a7d9a09202dd598a4930fc148aa984e7f624b4d645f3cb38baa6
MD5 5b52ad843ee88da9955c3dac8502bd5c
BLAKE2b-256 1f194fa9b12d1e6f39ecb950876ca09df37da868629dee18453e3836d0e5a549

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page