Scruber.run:sampledoget'https://example.com'get_product'https://example.com/product1.html'# Parsing https://example.com
parse:htmldo|page,doc|logdoc.at('title').textend# Parsing https://example.com/product1.html
parse_product:htmldo|page,doc|logdoc.at('title').textend# Alias to
# parser :product, format: :html do |page,doc|
# log doc.at('title').text
# end
end