Documentation for Jazzez Version 1.1.1 gem:

  1. Get the links from URL

    Ex.

    require ‘jazzez’ output= Jazzez.new puts output.links(“google.com")

    Output:

    images.google.com/imghp?hl=en&tab=wi maps.google.com/maps?hl=en&tab=wl news.google.com/nwshp?hl=en&tab=wn video.google.com/?hl=en&tab=wv mail.google.com/mail/?hl=en&tab=wm www.google.com/intl/en/options/ www.google.com/accounts/Login?continue=http://66.249.89.44/&hl=en google.com/advanced_search?hl=en google.com/preferences?hl=en google.com/language_tools?hl=en google.com/intl/en/ads/ google.com/services/ google.com/intl/en/about.html www.google.com/ncr google.com/intl/en/privacy.html

Usage:

  1. Get the URL from User.

  2. Make sure to check whether it is valid or not.

  3. If it is valid, then get the source code for that page with the help of Mechanize gem.

  4. Get all the <a> tags & collect only HREF Values in that page with the help of Mechanize gem

  5. If the href values not having the domains then add a URL(homepage) + Href value.

  6. return the results to User as an array

  7. 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 jazzez.wordpress.com

  8. Get the Html tags

    Ex.

    require ‘jazzez’ output= Jazzez.new puts output.tagdetails(“google.com")

    Output:

    1<html tag(s) 1</html> tag(s) 1<head tag(s) 1</head> tag(s) 1<body tag(s) 1</body> tag(s) 2<table tag(s) 2</table> tag(s) 3<tr tag(s) 3</tr> tag(s) 9<td tag(s) 9</td> tag(s) 0<th tag(s) 0</th> tag(s) 0<l tag(s) 0</l> tag(s) 0<link tag(s) 1<p tag(s) 1</p> tag(s) 4<div tag(s) 4</div> tag(s) 0<span tag(s) 0</span> tag(s) 4<script tag(s) 4</script> tag(s) 0<ul tag(s) 0</ul> tag(s) 0<ol tag(s) 0</ol> tag(s) 16<a tag(s) 15</a> tag(s) 0<h1 tag(s) 0</h1> tag(s) 0<h2 tag(s) 0</h2> tag(s) 0<h3 tag(s) 0</h3> tag(s) 0<h4 tag(s) 0</h4> tag(s) 0<h5 tag(s) 0</h5> tag(s) 0<h6 tag(s) 0</h6> tag(s) 4<font tag(s) 4</font> tag(s) 0<select tag(s) 0</select> tag(s) 0<option tag(s) 0</option> tag(s)

Usage:

Easy to answer the below questions

How many tables in your code ?
How many table rows/coloums in your code ?
How Many div tags opened and how many div tags closed ?
Are you sure your html tags were properly closed ?

More functions available in next version.

Any queries just send a mail to [email protected].

Thanks, P.Raveendran raveendran.wordpress.com jazzez.wordpress.com