Sealjay / bingnews-cli

A command line interface to show the potential for finding news with the Bing News Search API.

Home Page:https://sealjay.com/bing-news-search-cli/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bing News Search API - CLI

This CLI is written in Python to provide an interactive prompt to search for interesting articles that could be used to post to Twitter, or for resarch purposes.

The aim is to demonstrate the use of the Bing News Search API - for more information, please read the related blog post.

Software Installation

  1. Create a Python virtualenv, activate it, and install dependencies:

    • on windows, you may need to use python command where there are references to the python3 command,
    • on macos/linux, you may need to run sudo apt-get install python3-venv first.)
    $ python3 -m venv env
    $ source env/bin/activate
    $ pip3 install -r requirements-dev.txt
    • if you are using a distribution of conda, you may want to create a new conda environment, rather than use venv conda create --name bingnews python=3.8 -y, and then conda activate bingnews, and pip3 install -r requirements-dev.txt.
  2. Complete other settings from the .env template.

Dependencies

You'll need to have an Azure Subscription with a Bing Search API deployment, with a SKU that allows usage of the Bing News Search Features.

About

A command line interface to show the potential for finding news with the Bing News Search API.

https://sealjay.com/bing-news-search-cli/

License:MIT License


Languages

Language:Python 100.0%