3 ms·
With Selenium you can open a full web browser such as Chrome or Firefox and have it run through. A Google search is six lines: require "selenium-webdriver" dri
by xanderstrike 12y ago
With Selenium you can open a full web browser such as Chrome or Firefox and have it run through. A Google search is six lines:
require "selenium-webdriver"
driver = Selenium::WebDriver.for :firefox
driver.navigate.to "http://google.com" http://google.com"
element = driver.find_element(:name, 'q')
element.send_keys "Hello WebDriver!"
element.submit
https://code.google.com/p/selenium/wiki/RubyBindings https://code.google.com/p/selenium/wiki/RubyBindings
Writing a bot with js and cookies is trivial, but it definitely won't defeat these tools. They probably look for time between actions or track mouse movements, stuff that makes the bots super inefficient.