A Python package to fetch news from BBC, ABP News, and India Today
Project description
🌍 NewsAPI - Fetch News from Multiple Sources with Ease 📰
🔥 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wrapper_news_api-0.4.tar.gz.
File metadata
- Download URL: wrapper_news_api-0.4.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a25f5fa197d43a272a611cac763a165e888851b87f601da7c15a189379da249
|
|
| MD5 |
d839b19148e5b7a6e6790eaadfb0fc7a
|
|
| BLAKE2b-256 |
d1f60447f111255b39c192349d3190ec93787ecd63293de3871574b929534c07
|
File details
Details for the file wrapper_news_api-0.4-py3-none-any.whl.
File metadata
- Download URL: wrapper_news_api-0.4-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15ac2728359882b14c775e14796a4beb40d65e3bae5463623b1fbf179b99e0ba
|
|
| MD5 |
915ee6ab38452364dd14ac5907b2de06
|
|
| BLAKE2b-256 |
d65e58edb883157d79feb1e97bee1b0d8c54808b4d47e1a53f04b59662d6e90c
|