Skip to content

Instantly share code, notes, and snippets.

View differentreality's full-sized avatar

Stella Rouzi differentreality

View GitHub Profile

Keybase proof

I hereby claim:

To claim this, I am signing this object:

@differentreality
differentreality / follow.rb
Last active February 9, 2018 21:59
Stella Rouzi follow path from json response
require 'mechanize'
require 'json'
url = 'http://letsrevolutionizetesting.com/challenge.json'
while url do
# Get content of page
connection = Mechanize.new
page = connection.get "#{url}"
content = JSON.parse(page.content)