Skip to content

Latest commit

 

History

History
86 lines (71 loc) · 1.25 KB

README.md

File metadata and controls

86 lines (71 loc) · 1.25 KB

RubyLearning.org Participants' Countries

Snapshot

Ruby_Metaprogramming_5th_batch.png

Requirement

gem install mechanize
gem install nokogiri

Usage

  • Set your login user name, password and course name at line 10-12 of RL_participants_countries.rb
  login_form['username'] = "*****"  # input your login user name, i.e. "asakawa"
  login_form['password'] = "*****"  # input your login password, i.e. "12345"
  course = "*****"  # input course name, i.e. "Core Ruby 20th batch"
  #teachers = {'India' => 1, 'Japan' => 1, 'United States' => 1}
  • Execute RL_participants_countries.rb
ruby RL_participants_countries.rb
  • Will get the output like this:
>ruby RL_participants_countries.rb
United States
Brazil
Germany
Spain
Canada
United Kingdom
Australia
Italy
Austria
Mexico
India
Chile
New Zealand
Greece
Poland
Cambodia
Ukraine
Japan
Venezuela

18
7
5
4
4
3
3
3
2
2
2
1
1
1
1
1
1
1
1
>Exit code: 0

You will get a chart!

Good luck,
ashbb