Documentation for Jazzez Version 1.1.1 gem:
-
Get the links from URL
Ex.
require 'jazzez' output= Jazzez.new puts output.links("google.com")
Output:
http://images.google.com/imghp?hl=en&tab=wi http://maps.google.com/maps?hl=en&tab=wl http://news.google.com/nwshp?hl=en&tab=wn http://video.google.com/?hl=en&tab=wv http://mail.google.com/mail/?hl=en&tab=wm http://www.google.com/intl/en/options/ https://www.google.com/accounts/Login?continue=http://66.249.89.44/&hl=en http://google.com/advanced_search?hl=en http://google.com/preferences?hl=en http://google.com/language_tools?hl=en http://google.com/intl/en/ads/ http://google.com/services/ http://google.com/intl/en/about.html http://www.google.com/ncr http://google.com/intl/en/privacy.html
Usage:
-
Get the URL from User.
-
Make sure to check whether it is valid or not.
-
If it is valid, then get the source code for that page with the help of Mechanize gem.
-
Get all the tags & collect only HREF Values in that page with the help of Mechanize gem
-
If the href values not having the domains then add a URL(homepage) + Href value.
-
return the results to User as an array
-
Get the Second level links
Ex.
require 'jazzez' output= Jazzez.new puts output.links_level2("google.com")
Output:
It gives the Second level outputs.
If you want to see the output of this code then just go to http://jazzez.wordpress.com
-
Get the Html tags
Ex.
require 'jazzez' output= Jazzez.new puts output.tagdetails("google.com")
Output:
1<html tag(s) 1