Git Product home page Git Product logo

newsdash's Introduction

NewsDash

NewsDash

Python 3.9-3.11 License: MIT Code style: black GitHub stars GitHub last commit


NewsDash is a fast and reliable Python wrapper for the News API that simplifies accessing the latest news articles from around the world. ๐Ÿ“ฐ


Made by: NaviTheCoderboi



!!! note "Note" This is a WIP library, please report bugs if you find one


Features

  • Fast performance: This API wrapper is designed to be fast and efficient, allowing users to retrieve news articles quickly and easily.
  • Reliable functionality: The wrapper uses best practices to ensure reliable functionality and accuracy in retrieving news articles from the API.
  • Easy-to-use interface: The API wrapper has an intuitive interface that makes it easy for developers to interact with the API and retrieve news articles without having to worry about the details of the underlying protocol.
  • Built with aiohttp: The wrapper is built using the popular aiohttp library, which provides high-performance asynchronous HTTP client/server for asyncio and Python. This means the wrapper takes advantage of the latest and greatest in async programming techniques to provide fast and efficient performance.
  • Customizable functionality: The wrapper has a range of customization options, allowing developers to tailor their use of the API to their specific needs.
  • Flexible data handling: The wrapper is designed to handle a wide variety of data formats, allowing developers to work with the data in the way that best suits their needs.
  • Well-documented: The wrapper has clear and comprehensive documentation, making it easy for developers to get up and running quickly and troubleshoot any issues that may arise.

Installation

python -m pip install newsdash

Examples

  • with client
from newsdash import NewsDash
import asyncio

cl = NewsDash("your_api_key")
async def get_news():
  print(await cl.get_everything(query="tech",pageSize=5))
  print(await cl.get_top_headlines(query="Microsoft"))
  print(await cl.get_sources(country="in",language="en"))
  await cl.close()

asyncio.run(get_news())
  • with async context manager
from newsdash import NewsDash
import asyncio

async def main():
  async with NewsDash("api_key") as nd:
    print(await nd.get_everything(query="apple"))

asyncio.run(main())

Important urls

newsdash's People

Contributors

navithecoderboi avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

adslan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.