Top Level Namespace
Defined Under Namespace
Modules: BillboardHot100Songs
Instance Method Summary collapse
Instance Method Details
#extract_html ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/billboard_hot_100_songs/backup_website/extractor.rb', line 3 def extract_html url = "https://www.billboard.com/charts/hot-100" file = "billboard_hot_100_songs.html" open(file, "wb") do |file| open(url) do |uri| file.write(uri.read) end end end |