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 newsapi.api import NewsAPI

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

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

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 NewsAPI

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.1.tar.gz (3.2 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.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wrapper_news_api-0.1.tar.gz
  • Upload date:
  • Size: 3.2 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.1.tar.gz
Algorithm Hash digest
SHA256 2418901b77830744683a6b0007d158d9ca85cf2ec17d3e1810bb6dd02d4d3812
MD5 d67d15956d705f4c17a8aa079745ccc5
BLAKE2b-256 6319c18f6c2dbca070e09b28559157faf7a698af053a1160c4d6e67a2472d336

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wrapper_news_api-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9b3883d51c42220f3fdafb4d7396849b400f91f4827b8e7562c568ea54eaf1ff
MD5 296e587129ad134a66b4751c207881a9
BLAKE2b-256 a43f5ceb826b0c3c42ec14e0bb55a39c295a01c371cf932814b5c2918510d968

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