I'm trying to scrape Reddit with Nokogiri, but a single run of this keeps telling me that I'm putting in too many requests.
require 'nokogiri'
require 'open-uri'
url = "https://www.reddit.com/r/all"
redditscrape = Nokogiri::HTML(open(url))
OpenURI::HTTPError: 429 Too Many Requests
Isn't this only one request? If it's not, how do I create sleep intervals for Nokogiri?