I am trying to use open-uri to get an html page for a website. However, the problem is that the website takes a few seconds to load for the correct correct code. Now I have:
require 'open-uri' html = open('http://hiddencode.me/dribbbucket/embed.html?key=MY_API_KEY&bucket=56024-Glassboard&delay=5000') response = html.read puts response
If I run this right now, I get:
<div id="slam-dunk"> <div id="loading">Loading..</div> </div>
However, the site must load correctly first before opening in order to get the correct answer. Any ideas how to do this in ruby? I can also use the solution in another language if ruby ββis not your experience!
source share