0.0
No release in over a year
Makes web scraping easier using the Ferrum gem.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.11, >= 0.11
~> 1.5, >= 1.5.2
 Project Readme

Introducing the FerrumWizard gem

Usage:

require 'ferrumwizard'

fw = FerrumWizard.new('https://login.sipgate.com/', debug: false)
puts fw.login( 'yourusername', 'secret').account.balance #=> £4

In the above example, the FerrumWizard gem is used to retrieve the Sipgate account balance.

It does by performing the following:

  1. Navigating to the login page using a headless browser
  2. Searches the page for an input element of type email
  3. It adds the username to the found input box
  4. Searches the page for an input element of type password
  5. It adds the password to the found input box and the presses enter
  6. Iterates through all known page links to convert to methods, complete with click event
  7. After having followed a link, any missing method is queried through an at_css request to hopefully return a string value.

Resources

ferrum ferrumwizard wizard webscraper