Run it like this
TOKEN=your_token ruby lattice.rb
It will produce a page.html
which you can then open and paste into a Google Doc or something
You can get your token by snooping on the HTML requests in Chrome dev tools. It will be as part of the authorization request header in the form "Bearer {token}".