yagop / telegram-bot

UNMAINTAINED - A Telegram Bot based on plugins
GNU General Public License v2.0
848 stars 502 forks source link

Peticion cliente RSS / Petition client RSS #35

Open Sergiio opened 9 years ago

Sergiio commented 9 years ago

Spanish:

Hola, tengo una petición que es un plugin que obtenga por RSS nuevo contenido en paginas web y mande un mensaje en una conversación el contenido. No tengo ni idea como se haría y seria bastante útil por si alguien se anima, le agradecería mucho.

Gracias

English:

Hii, I have a request which is a plugin to get new content via RSS web pages and send a message in a conversation content. I have no idea as you would and would be quite useful if anyone is encouraged, we appreciate it. Sorry my english.

Thanks.

cun commented 9 years ago

Hi Sergiio, I've recently requested something like this and yagop is looking into it, However to auto post into a chat there needs to be a crontab. This has been created however a bug exists, that makes it currently un-usable.

Once this works, you could use LUA to request the RSS feed (or API, XML, JSON) URL, and pull the data if anything new exists. This is currently something I will also be doing, and will release when everything works right after yagop's fixes to the core.

I hope that helps. Cheers, Dan

Brawl345 commented 9 years ago

Hello! Any news from this? This would be a really cool feature!

valessiobrito commented 9 years ago

The plugin using parse XML: https://github.com/GovBrasil/telegram-bot/blob/master/plugins/camara.lua

The first step to others futures plugins.

220242 commented 9 years ago

https://developer.yahoo.com/yql/console/?q=show%20tables&env=store://datatables.org/alltableswithkeys#h=select+*+from+rss.multi.list+where+feeds%3D%22%27http%3A%2F%2Fcode.flickr.com%2Fblog%2Ffeed%2Frss%2F%27%2C%27http%3A%2F%2Ffeeds.delicious.com%2Fv2%2Frss%2Fcodepo8%3Fcount%3D15%27%22+and+html%3D%22true%22