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.2.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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wrapper_news_api-0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 3f67b01cbda02680bc886580eb9f76b63b70843e07df03c202c768ef4685e933
MD5 effc27a4bc9bc34af6c6db708b928934
BLAKE2b-256 51b47f9104a49f681696d6db71f9836c1819576c4b4e5d344c70f3b8c3b41994

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wrapper_news_api-0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0fe5f60ebba543c88c009fbb8a4e5497974d2899da441e1c2c22a96439787406
MD5 90d99327173c6a4a5238faea2f56530e
BLAKE2b-256 488dbf3adf884316a3931d87247c794151be15f5849dde108160a6a822b2a7a8

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