Created
March 14, 2013 12:43
-
-
Save bartolsthoorn/5161026 to your computer and use it in GitHub Desktop.
Wombat is pretty cool
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
results = Wombat.crawl do | |
base_url "#{uri.scheme}://#{uri.host}" | |
path uri.path | |
title xpath: '//title' | |
meta do | |
description xpath: '//meta[@name="description"]/@content' | |
keywords xpath: '//meta[@name="keywords"]/@content' | |
end | |
mailto "xpath=//a[starts-with(@href, 'mailto')]", :list | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment