Giter Club home page Giter Club logo

telegram-rss-downloader-bot's Introduction

telegrambot

Telegram rss downloader bot

This Telegram bot will automatically download and send back your rss feeds for offline reading. The bot is working, but it needs a code refactor to make it easier to maintain/more readable.

  1. User sets [add|list|remove] his rss feed collection
  2. When /givemethenews command is sent. Bot will then proceed to parse and download the entire articles, clean them and send them back as html attachment for offline reading.

Images will be converted to base64. Gifs are begin ignored.

Requirements

  • PHP >= 7.0
  • CURL
  • Composer
  • SSL certificate (telegram bots can only talk to https domains)

Setup

  1. mv conf.sample.php to conf.php
  2. Create your telegram bot and set its data on conf.php
  3. run composer install
  4. Add cronjob.php to your crontab (weekly)
  5. Done, you may need to create cache folders and give them write perms, those are listed on config file

Setting manual css selectors to remove

You can edit providers.php to add more css selectors that you want bot to remove from each article.

ToDo

  • Improve html sanitization (remove onmouseover, onclick, etc.. attributes)

telegram-rss-downloader-bot's People

Contributors

muertet avatar tetreum avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

genshtab

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.