Skip to content

CoolCoderCarl/datapath

Repository files navigation

datapath

Send info getting from API to telegram.
Third part of a system which search, save and share info.

Prehistory

It is good idea to share info.

Datapath it is like telepath or astropath
(c) Author

Enjoy.

How to use

Need to fill settings.toml with next important variables:

  1. API_KEY. You can find this data here - https://my.telegram.org/apps
  2. QUERY. Key word to search for in articles.
  3. API_TOKEN. Ask BotFather in telegram.
  4. CHAT_ID. Use this to find chat ID where you want to send messages - https://api.telegram.org/botAPI_TOKEN/getUpdates
  5. docker-compose up -d or make dstart
  6. ...
  7. PROFIT !!!
[DB]
DB_API_URL = "http://attainments_sanctuary:8888"

[NEWS_API]
API_KEY = ""
QUERY = "computer science"
LANGUAGE = "en"

[TELEGRAM]
API_TOKEN = ""
CHAT_ID = ""

[TIMINIGS]
TIME_TO_SEARCH = "02:00"
TIME_TO_SEND_START = "10:00"
TIME_TO_SEND_END = "20:00"
SENDING_INTERVAL = 300

For more info check:

  1. API & DB repo - https://github.com/CoolCoderCarl/attainments_sanctuary
  2. ETL repo - https://github.com/CoolCoderCarl/epistolary

Still have questions ? Google it.