Sha256: 61a6ebbf227470c09aa90d33d9bc5f1590ef6200100eaf68bd6805be57d27c5a

Contents?: true

Size: 258 Bytes

Versions: 3

Compression:

Stored size: 258 Bytes

Contents

require 'open-uri'

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

extract_html

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
billboard_hot_100_songs-1.0.1 lib/billboard_hot_100_songs/backup_website/extractor.rb
billboard_hot_100_songs-1.0.0 lib/billboard_hot_100_songs/backup_website/extractor.rb
billboard_hot_100_songs-0.1.0 lib/billboard_hot_100_songs/backup_website/extractor.rb