Jazzez 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README +66 -0
  2. data/jazzez.rb +78 -0
  3. metadata +56 -0
data/README ADDED
@@ -0,0 +1,66 @@
1
+
2
+ Jazzez Documantation:
3
+
4
+
5
+ jazzez gives all href values in particular URL.
6
+ It will more helpful to SEO Optimazation
7
+ It is also useful to check the Routes.
8
+
9
+
10
+ Just collect url from User and gives to all Href values to them whatever present in <a href="????"> </a>tag.
11
+
12
+ Example:
13
+ User tries like this
14
+ href(http://google.com)
15
+
16
+ then it returns output looks like this
17
+
18
+ http://images.google.co.in/imghp?hl=en&tab=wi
19
+ http://news.google.co.in/nwshp?hl=en&tab=wn
20
+ http://www.orkut.com/Home.aspx?hl=en&tab=w0
21
+ http://groups.google.co.in/grphp?hl=en&tab=wg
22
+ http://mail.google.com/mail/?hl=en&tab=wm
23
+ http://www.google.co.in/intl/en/options/
24
+ http://books.google.co.in/bkshp?hl=en&tab=wp
25
+ http://scholar.google.co.in/schhp?hl=en&tab=ws
26
+ http://blogsearch.google.co.in/?hl=en&tab=wb
27
+ http://in.youtube.com/?hl=en&tab=w1
28
+ http://www.google.com/calendar/render?hl=en&tab=wc
29
+ http://picasaweb.google.co.in/home?hl=en&tab=wq
30
+ http://docs.google.com/?hl=en&tab=wo
31
+ http://www.google.co.in/reader/view/?hl=en&tab=wy
32
+ http://sites.google.com/?hl=en&tab=w3
33
+ http://www.google.co.in/intl/en/options/
34
+ /url?sa=p&pref=ig&pval=3&q=http://www.google.co.in/ig%3Fhl%3Den%26source%3Diglk&usg=AFQjCNHe9Dv_h1zYL1VKlS7wKo_0Kg38dg
35
+ https://www.google.com/accounts/Login?continue=http://www.google.co.in/&hl=en
36
+ /advanced_search?hl=en
37
+ /preferences?hl=en
38
+ /language_tools?hl=en
39
+ http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=hi
40
+ http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=bn
41
+ http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=te
42
+ http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=mr
43
+ http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=ta
44
+ http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=gu
45
+ http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=kn
46
+ http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=ml
47
+ http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=pa
48
+ /intl/en/ads/
49
+ /intl/en/about.html
50
+ http://www.google.com/ncr
51
+ /intl/en/privacy.html
52
+
53
+
54
+ How to Use:
55
+
56
+ Sample program:
57
+
58
+ require 'jazzez'
59
+
60
+ a= Jazzez.new
61
+ puts a.href("URL")
62
+
63
+
64
+
65
+
66
+
data/jazzez.rb ADDED
@@ -0,0 +1,78 @@
1
+ #= jazzez_href
2
+ # jazzez_href gives all href values in particular URL.
3
+ #It will more helpful to SEO Optimazation
4
+ # It is also useful to check the Routes.
5
+ require 'mechanize'
6
+
7
+ class Jazzez
8
+ def href(url)
9
+ url=url.to_s
10
+ #Just collect url from User and gives to all Href values to them whatever present in <a href="????"> </a>tag.
11
+ #Example:
12
+ #User tries like this
13
+ #href(http://google.com)
14
+
15
+ #then return output looks like this
16
+ #http://images.google.co.in/imghp?hl=en&tab=wi
17
+ #http://news.google.co.in/nwshp?hl=en&tab=wn
18
+ #http://www.orkut.com/Home.aspx?hl=en&tab=w0
19
+ #http://groups.google.co.in/grphp?hl=en&tab=wg
20
+ #http://mail.google.com/mail/?hl=en&tab=wm
21
+ #http://www.google.co.in/intl/en/options/
22
+ #http://books.google.co.in/bkshp?hl=en&tab=wp
23
+ #http://scholar.google.co.in/schhp?hl=en&tab=ws
24
+ #http://blogsearch.google.co.in/?hl=en&tab=wb
25
+ #http://in.youtube.com/?hl=en&tab=w1
26
+ #http://www.google.com/calendar/render?hl=en&tab=wc
27
+ #http://picasaweb.google.co.in/home?hl=en&tab=wq
28
+ #http://docs.google.com/?hl=en&tab=wo
29
+ #http://www.google.co.in/reader/view/?hl=en&tab=wy
30
+ #http://sites.google.com/?hl=en&tab=w3
31
+ #http://www.google.co.in/intl/en/options/
32
+ #/url?sa=p&pref=ig&pval=3&q=http://www.google.co.in/ig%3Fhl%3Den%26source%3Diglk&usg=AFQjCNHe9Dv_h1zYL1VKlS7wKo_0Kg38dg
33
+ #https://www.google.com/accounts/Login?continue=http://www.google.co.in/&hl=en
34
+ #/advanced_search?hl=en
35
+ #/preferences?hl=en
36
+ #/language_tools?hl=en
37
+ #http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=hi
38
+ #http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=bn
39
+ #http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=te
40
+ #http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=mr
41
+ #http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=ta
42
+ #http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=gu
43
+ #http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=kn
44
+ #http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=ml
45
+ #http://www.google.co.in/setprefs?sig=0_pvh-cvQ7qyZ_a43DQFZyLD-JwDY=&hl=pa
46
+ #/intl/en/ads/
47
+ #/intl/en/about.html
48
+ #http://www.google.com/ncr
49
+ #/intl/en/privacy.html
50
+
51
+ agent = WWW::Mechanize.new
52
+ @first=[]
53
+ page = agent.get(url) rescue page = 1
54
+ sleep(2)
55
+ #puts page.inspect
56
+ if page!=1
57
+ if page.links !=nil
58
+ page.links.each do |one|
59
+ href=one.uri
60
+ @first << href.to_s
61
+ end
62
+ # Returns Error message when Given URL doesn't have atleast one Link
63
+ return @first3="Hi.. given URL doesn't have atleast one Link " if a == true
64
+ #Returns all the Href's
65
+ return @first
66
+
67
+ end
68
+
69
+ else
70
+ # Returns Error message when Given URL is invalidk
71
+ return @first2="Hi.. Its not a valid URL. Please provide a Valid URL."
72
+ end
73
+
74
+ end
75
+ end
76
+
77
+
78
+
metadata ADDED
@@ -0,0 +1,56 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.4
3
+ specification_version: 1
4
+ name: Jazzez
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.0.1
7
+ date: 2008-12-20 00:00:00 +05:30
8
+ summary: Jazzez.. Nothing is impossible.
9
+ require_paths:
10
+ - .
11
+ email: jazzezravi@gmail.com
12
+ homepage: http://rubyforge.org/projects/jazzez/
13
+ rubyforge_project:
14
+ description:
15
+ autorequire:
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message:
29
+ authors:
30
+ - Jazzezravi
31
+ files:
32
+ - jazzez.rb
33
+ - README
34
+ test_files: []
35
+
36
+ rdoc_options:
37
+ - --main
38
+ - README
39
+ extra_rdoc_files:
40
+ - README
41
+ executables: []
42
+
43
+ extensions: []
44
+
45
+ requirements: []
46
+
47
+ dependencies:
48
+ - !ruby/object:Gem::Dependency
49
+ name: mechanize
50
+ version_requirement:
51
+ version_requirements: !ruby/object:Gem::Version::Requirement
52
+ requirements:
53
+ - - ">="
54
+ - !ruby/object:Gem::Version
55
+ version: 0.7.5
56
+ version: