Sign inSign up

dtcokr/rssbot

By dtcokr

Updated about 7 years ago
Archived

Using Telegram rssbot in docker.

Image
0

1.7K

dtcokr/rssbot repository overview

docker-rssbot

Docker Pulls GitHub last commit

Fork from darkskygit(github), source code by iovxw(github), very handy if you are an active(HARDCORE) Telegram user and eager to obtain information through the old fashion RSS feed way.

Run it on ANY 24/7(or not) operating machines, it's up to you entirely.

usage

  1. You don't have to create the datafile(a JSON file that stores all your RSS subscription list) at the first place, it will generate one automatically. All you need to do is to mount a volume(with the -v flag) to store the file if you want to keep the RSS subscription when the container is stopped and removed.
  2. To get a TELEGRAM-BOT-TOKEN, just talk to the Mighty BotFather(Telegram). If you have one, just define the environment variable with the -e flag.

Example:

$ docker run -d \
  --name rssbot \
  -v /path/to/store/datafile:/rss \
  -e TK=YOUR:TELEGRAM-BOT-TOKEN \
  dtcokr/rssbot
*optional

You can define the fetch frequency by defining the environment variable INTVL with the -e flag(default 300 seconds).

Example: *Recommanded

$ docker run -d \
  --name rssbot \
  -v /path/to/store/datafile:/rss \
  -e TK=YOUR:TELEGRAM-BOT-TOKEN \
  -e INTVL=600 \
  dtcokr/rssbot

Other simple way: *Just put it on the end

$ docker run -d \
  --name rssbot \
  -v /path/to/store/datafile:/rss \
  -e TK=YOUR:TELEGRAM-BOT-TOKEN \
  dtcokr/rssbot 600

build

Speaking of building this image, you can modify the fetch frequency using the --build-arg if you really hate being bound by the default settings(which is 300 seconds, which is good and not bringing too much pressure to the website).

Example: If you would like to fetch the content every 10 minutes(that is 600 seconds), then do

$ docker build --build-arg INTVL=600 -t whatever-name-you-like-none-of-my-business .
That's all, very simple huh?

Tag summary

Content type

Image

Digest

Size

7.6 MB

Last updated

about 7 years ago

docker pull dtcokr/rssbot