/mail-news

It sends news to you.

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Mail-News

It sends newses to you.

About

If you run this program, it collects newses from news-api, but you have to get API-KEY from https://newsapi.org . Then, send the information to you with email.

Usage

First, what you have to do is setting data.

  • /letter/template.py

    • You can set data about creating email. You can set subject of email, and the sentence that be inserted at the end.
  • /mailer/metadata.py

    • You have to set data about sending email. You can see more details from the file.
  • /news_api/news_api.py

    • You have to set data about collecting news. You can see how you can get the data about news-api from https://newsapi.org . Though number of news is 10 in default, if you want to get more news, you can get more news by changing data of the file.

Then, if you run the main.py, you can see the email.

Example

You can run the program every day with https://pythonanywhere.com . Then, you can receive email, and you can see some news.

Licence

This project is under GNU licence.