Skip to content

Instantly share code, notes, and snippets.

@igrigorik
Last active June 8, 2023 01:37
Show Gist options
  • Save igrigorik/2017506 to your computer and use it in GitHub Desktop.
Save igrigorik/2017506 to your computer and use it in GitHub Desktop.
require 'open-uri'
require 'zlib'
require 'yajl'
gz = open('http://data.gharchive.org/2015-01-01-12.json.gz')
js = Zlib::GzipReader.new(gz).read
Yajl::Parser.parse(js) do |event|
print event
end
@GPAP15
Copy link

GPAP15 commented Jun 8, 2023

Can someone please let me know the process of how to download the GH Archive files? I am new to this. I want this data to analysis.I am not getting how to run this Ruby script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment