Twitter bot with Rails

I am trying to create a Twitter bot with Ruby on Rails, but I just can’t find any useful information about this ... Is this possible? I tried using twibot GEM, but it is deprecated and it is not very useful. Does Rails have a method for trigger events when (for example) a tweet is sent? Has anyone worked with something like this? Any tutorial? Any information in everything that is currently used, I mean that today it works with the Twitter API (many of what I was looking for do not work now)?

Thank you very much.

+4
source share
2 answers

Twitter itself runs on Rails and has a REST API . You can easily write your own solution with ActiveResource.

You can start with ActiveResource videos in Railscasts

+2
source

the rails themselves do not support Twitter. it's just mvc-web-framework. but there are a lot of ruby ​​stones for twitter. my favorite is https://github.com/jnunemaker/twitter , but you can find a lot more here https://www.ruby-toolbox.com/categories/api_clients.html

0
source

Source: https://habr.com/ru/post/1391075/


All Articles