Skip to content
This repository was archived by the owner on Aug 27, 2024. It is now read-only.

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RSS to Telegram

This program is kind of technology demo using ClojureScript as "generic language" and it was developed on a weekend especially to deliver updates of YouTube channel Математика - просто to Telegram channel @savvateev_xyz.

It supposed to be started periodically as a cron job. Default config file name is ./rss2tlg.edn but could be changed by CONFIG_EDN environment. Config parser uses environment variables for ${...} template substitutions. Empty data file ./rss2tlg.data required at first start. See other runtime parameters in source file config.cljs.

Example:

{
  :apikey "${APIKEY}"
  :channel "@savvateev_xyz"
  :rss-url "https://www.youtube.com/feeds/videos.xml?channel_id=UClTIrwj5npeOaBjH6_AkKyA"
  :rss-num 1
}

crontab:

  */5  *  *  *  *  cd /path/to/workdir && ./rss2tlg.js

  • maxp.dev
  • vk.com/alexey_savvateev
  • youtube.com/feeds/videos.xml?channel_id=UClTIrwj5npeOaBjH6_AkKyA

About

Send RSS feed to Telegram channel

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages