Skip to content

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

License

Notifications You must be signed in to change notification settings

Sealjay/bingnews-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.