Skip to content

nathan-weinberg/news-delivery-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

news-delivery-service

Purpose

See here for a writeup on why I created this

Prerequisites

You will need a YouTube API key. To obtain one, follow Google's documentation on the matter: https://developers.google.com/youtube/v3/getting-started

Setup

Create a file named "config.yaml" based off "config.yaml.example" with the following fields filled in:

  • recipients:: Email addresses of recipients
  • sender_email:: Email address of sender
  • sender_password:: Email password of sender
  • smtp_host: SMTP host of sender's email
  • youtube_api_key: Your YouTube API Key

Ensure your "config.yaml" file is in the same directory as "main.py"

Packages

To install packages run:

$ pip install -r requirements.txt

It is recommended you do this within a virtual environment.

Usage

To run:

  • $ ./main.py if /usr/bin/python3 is a valid path
  • $ python3 main.py otherwise

Notes

Email code is tailored to specific email servers - it may require modification to work with your setup.

About

Deliver daily news broadcasts via email

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published