GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - OrenGrinker/SlackNewsAPI: SlackNewsBot is a Python application that automatically fetches and posts the latest Israeli news headlines to your Slack channel, keeping your team informed and engaged directly within your workspace.

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
README.md
README.md
 
 
Screenshot 2024-03-02 at 19.31.08.png
Screenshot 2024-03-02 at 19.31.08.png
 
 
config.py
config.py
 
 
main.py
main.py
 
 
news_api_client.py
news_api_client.py
 
 
requirements.txt
requirements.txt
 
 
slack_client.py
slack_client.py
 
 

Repository files navigation

SlackNewsBot

SlackNewsBot is a Python script that fetches the top news headlines from Israel using NewsAPI and posts them to a specified Slack channel.

Setting Up

Prerequisites

  • Python 3.x
  • requests library
  • slack_sdk library

Installation

  1. Clone this repository or download the files.
  2. Install the required Python libraries:

pip install -r requirements.txt

Configuring Slack

  1. Create a new Slack app at Slack API.
  2. Add permissions to the app: chat:write.
  3. Install the app to your workspace and note the OAuth token (begins with xoxb-).
  4. Find the ID of the Slack channel where you want to post the news.

Configuring NewsAPI

  1. Sign up at NewsAPI and get your API key.

Setting Up the Application

  1. Navigate to the config.py file.
  2. Replace YOUR_NEWSAPI_KEY, YOUR_SLACK_BOT_TOKEN, and YOUR_SLACK_CHANNEL_ID with your actual NewsAPI key, Slack bot token, and Slack channel ID, respectively.

Running the Application

To run the application, execute the following command in the terminal:

python main.py

The script will fetch the latest news from Israel and post it to the specified Slack channel.

Screenshot

SlackNewsBot Screenshot

About

SlackNewsBot is a Python application that automatically fetches and posts the latest Israeli news headlines to your Slack channel, keeping your team informed and engaged directly within your workspace.

Topics

newsnewsapipythonslackslack-api

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.