Giter Club home page Giter Club logo

feed_proxy's Introduction

build coverage

FeedProxy

FeedProxy is an app for aggregate posts from RSS feeds to Telegram.

Table of Contents

How to use

Setup

  1. Create network
docker network create -d bridge feed_proxy
  1. Run tg_upload_proxy for sending large audio
docker run --network=feed_proxy --name=tg_upload_proxy --env-file=/root/.tg_upload_proxy.env --restart always -d yakim/tg_upload_proxy
  1. Mount app dir and run migrations
docker run --rm -v /home/user/feed_proxy:/usr/src/app yakim/feed_proxy feed_proxy_db --db-url sqlite:///./my_feed.db upgrade head
  1. Create directory for storing feed_proxy data and create source file
mkdir /home/user/feed_proxy
cp /this/repo/sources.example.ini /home/user/feed_proxy/my_feed.ini
# edit it
nano /home/user/feed_proxy/my_feed.ini
  1. Run feed_proxy
docker run --log-driver=journald --rm --network=feed_proxy --name=feed_proxy --env-file=/root/.feed_proxy.env -v /home/user/feed_proxy:/usr/src/app yakim/feed_proxy feed_proxy my_feed.ini --db-url sqlite:///./my_feed.db --proxy-bot-url http://tg_upload_proxy:8081

Schedule job

You can use crontab

  1. Create script. Example:
$ cat /home/user/feed_proxy/run.sh
#!/bin/bash

docker run --log-driver=journald \
    --rm --network=feed_proxy \
    --name=feed_proxy \
    --env-file=/root/.feed_proxy.env \
    -v /home/user/feed_proxy:/usr/src/app \
    yakim/feed_proxy \
    feed_proxy my_feed.ini --db-url sqlite:///./my_feed.db --proxy-bot-url http://tg_upload_proxy:8081
  1. Now you can add it to crontab with sudo crontab -e

View logs

journalctl -u docker CONTAINER_NAME=feed_proxy

feed_proxy's People

Contributors

yakimka avatar

Watchers

 avatar  avatar  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.