Code Monkey home page Code Monkey logo

datapath's Introduction

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.

datapath's People

Contributors

coolcodercarl avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.