Skip to content

Example of Using the NewsApi Python Client in a Docker Container

Notifications You must be signed in to change notification settings

mattlisiv/newsapi-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Docker Container Example Running NewsApi Python Client

This is a simple example of how to utilize NewsApi Python client within a Docker container.

Requirements

  • Docker

Setup

Docker

Build the container from the Dockerfile

docker build -t newsapi .

Run the container. Define the environment variables. Replace the api_key with your credentials.

docker run -e api_key='XXXXXXXX' -t newsapi

Usage

Check the container output and you will see a simple printout of the top headlines for BBC News

About

Example of Using the NewsApi Python Client in a Docker Container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages