wrapper-news-api


Namewrapper-news-api JSON
Version 0.6 PyPI version JSON
download
home_pagehttps://github.com/shreyasissleepy/NewsAPI
SummaryA Python package to fetch news from BBC, ABP News, and India Today
upload_time2024-10-22 13:35:53
maintainerNone
docs_urlNone
authorShreyas Naik
requires_python>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements bs4 requests
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 🌍 NewsAPI - Fetch News from Multiple Sources with Ease πŸ“°

![PyPI](https://img.shields.io/pypi/v/NewsAPI?style=flat-square)
![Python](https://img.shields.io/badge/python-3.6%2B-blue.svg?style=flat-square)
![Build Status](https://img.shields.io/github/actions/workflow/status/shreyasissleepy/NewsAPI/ci.yml?branch=main&style=flat-square)

## πŸ”₯ 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:

```python
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](https://pypi.org/project/NewsAPI/):

```bash
pip install wrapper_news_api

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/shreyasissleepy/NewsAPI",
    "name": "wrapper-news-api",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": null,
    "author": "Shreyas Naik",
    "author_email": "shreyasnaik179@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/12/56/cfb68419203e4e4dbc2d73a9fa2ca02d9134c1503518b4bed909fe55b928/wrapper_news_api-0.6.tar.gz",
    "platform": null,
    "description": "# \ud83c\udf0d NewsAPI - Fetch News from Multiple Sources with Ease \ud83d\udcf0\r\n\r\n![PyPI](https://img.shields.io/pypi/v/NewsAPI?style=flat-square)\r\n![Python](https://img.shields.io/badge/python-3.6%2B-blue.svg?style=flat-square)\r\n![Build Status](https://img.shields.io/github/actions/workflow/status/shreyasissleepy/NewsAPI/ci.yml?branch=main&style=flat-square)\r\n\r\n## \ud83d\udd25 Overview\r\n\r\n**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.\r\n\r\n### Features:\r\n- \ud83c\udf10 Fetch news from **BBC**, **ABP News**, and **India Today**.\r\n- \ud83d\udd0d Optional keyword-based news search for bbc (e.g., \"technology\", \"politics\").\r\n- \ud83d\udee0\ufe0f Simple API interface.\r\n- \ud83d\udce6 Lightweight and easy to integrate into your project.\r\n\r\n---\r\n\r\n## \ud83d\ude80 Usage\r\n\r\nUsing **NewsAPI** to fetch news is super simple. Here\u2019s a quick guide:\r\n\r\n### Fetch the Latest News from BBC:\r\n\r\n```python\r\nfrom wrapper_news_api import NewsAPI\r\n\r\n# Create an instance of the NewsAPI class\r\nnews_api = NewsAPI()\r\n\r\n# Fetch news from BBC\r\nbbc_news = news_api.bbc() #bbc(),abp(),india_today()\r\n\r\nfor article in bbc_news:\r\n    print(f\"Title: {article['title']}\")\r\n    print(f\"Description: {article['description']}\")\r\n    print(\"---\")\r\n```\r\n\r\n## \ud83d\udce6 Installation\r\n\r\nInstall the latest version from [PyPI](https://pypi.org/project/NewsAPI/):\r\n\r\n```bash\r\npip install wrapper_news_api\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python package to fetch news from BBC, ABP News, and India Today",
    "version": "0.6",
    "project_urls": {
        "Homepage": "https://github.com/shreyasissleepy/NewsAPI"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f194fa9b12d1e6f39ecb950876ca09df37da868629dee18453e3836d0e5a549",
                "md5": "5b52ad843ee88da9955c3dac8502bd5c",
                "sha256": "e08a85862326a7d9a09202dd598a4930fc148aa984e7f624b4d645f3cb38baa6"
            },
            "downloads": -1,
            "filename": "wrapper_news_api-0.6-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "5b52ad843ee88da9955c3dac8502bd5c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5442,
            "upload_time": "2024-10-22T13:35:51",
            "upload_time_iso_8601": "2024-10-22T13:35:51.800232Z",
            "url": "https://files.pythonhosted.org/packages/1f/19/4fa9b12d1e6f39ecb950876ca09df37da868629dee18453e3836d0e5a549/wrapper_news_api-0.6-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1256cfb68419203e4e4dbc2d73a9fa2ca02d9134c1503518b4bed909fe55b928",
                "md5": "f5a1c3a26d52fb0ac4e6f50a81219d83",
                "sha256": "1a8683406c2530235c4b3148476bf214bc9c8eee121bd74cd3162e6e4bde0395"
            },
            "downloads": -1,
            "filename": "wrapper_news_api-0.6.tar.gz",
            "has_sig": false,
            "md5_digest": "f5a1c3a26d52fb0ac4e6f50a81219d83",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2922,
            "upload_time": "2024-10-22T13:35:53",
            "upload_time_iso_8601": "2024-10-22T13:35:53.230660Z",
            "url": "https://files.pythonhosted.org/packages/12/56/cfb68419203e4e4dbc2d73a9fa2ca02d9134c1503518b4bed909fe55b928/wrapper_news_api-0.6.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-10-22 13:35:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "shreyasissleepy",
    "github_project": "NewsAPI",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "bs4",
            "specs": [
                [
                    "==",
                    "0.0.2"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.31.0"
                ]
            ]
        }
    ],
    "lcname": "wrapper-news-api"
}
        
Elapsed time: 0.54135s