D
D
dvarklad2017-07-04 11:55:47
ruby
dvarklad, 2017-07-04 11:55:47

What do you need to create a web bot in Ruby?

I thought about creating a bot that, under certain conditions, will follow links on the page, fill out forms, click on buttons. That is, in fact, a bot-clicker for automation. I want to use Ruby for this, as I know a little about it and in general for learning. What do you need to know for all this, where to look, what to read?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
oh_shi, 2017-07-04
@oh_shi

Pay attention to the libraries that are used in testing to simulate user actions, which is what is required of the bot. Capybara + PhantomJS , and if the result needs to be parsed then Nokogiri . I have written over a hundred crawlers on this stack.

N
N. Bekseitov, 2017-07-04
@nbekseitov

You can use the nokogiri + mechanize
gem bundle ruby.bastardsbook.com/chapters/mechanize

N
Nikita, 2017-07-04
@AgentProvocateur

zennoposter handles link clicks/form fills/button clicks and other web automation . For 9 years of the existence of the software, templates have been created for all occasions, and if something is missing, then create it yourself / order it. If you need a quick result, and not specifically development practice, then I see no reason to fence bicycles.
If you need specifically "in general for studying", then cover yourself with books and study the subject area on a specific task - as you master it, make your bot, what is the essence of the question then?
I just don't know how Ruby is suitable for this. Still, in automation, Python rules more with its libraries for all cases + there are specific manuals, for example . I haven't seen this with Ruby.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question