fixed merged conflict
This commit is contained in:
commit
958d408cb1
2 changed files with 11 additions and 7 deletions
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env ruby
|
|
||||||
#
|
|
||||||
|
|
||||||
require './creds.rb'
|
|
||||||
|
|
||||||
puts creds.rb.api_key
|
|
||||||
|
|
11
wikipedia_search.rb
Executable file
11
wikipedia_search.rb
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
# search wikipedia
|
||||||
|
|
||||||
|
require 'wikipedia'
|
||||||
|
|
||||||
|
search_words = ARGV[0]
|
||||||
|
|
||||||
|
page = Wikipedia.find(search_words)
|
||||||
|
|
||||||
|
puts page.title+"\n"
|
||||||
|
puts page.text+"\n"
|
Loading…
Add table
Reference in a new issue