Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'nokogiri'
- require 'open-uri'
- require 'pry'
- def get_babble()
- page = Nokogiri::HTML(open("http://phaser.gfxile.net/ligen/technobabble.php?dataset=#{["24","scifi"].sample}"))
- 10.times do |n|
- puts page.css("#S#{n}").first.text
- end
- end
- 4.times{ get_babble }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement