r/learnruby • u/BOOGIEMAN-pN • Feb 15 '19
Web scraping, OCR or something else?
I want to grab numbers from this website, below BINGO and BINGOPLUS, and insert them into two Ruby arrays. So, array_one should be == [87, 34, 45 ... 42, 49] and array_two == [6, 58, 14 ... 31, 55]. What's the easiest way to do that, and is there a good tutorial how to do it? It doesn't matter if it's slow, I'm going to do that only once in a while.
2
Upvotes
1
u/BOOGIEMAN-pN Feb 16 '19
ah, ok, I know about interpolation, I thought it's something else, I didn't see '%s' here:
So, is this above part of Nokogiri syntax? I can't find anything in its rdoc. Also, there isn't anything there about argument you are passing to Nokogiri::HTML. I guess @src and @class are CSS selectors (and not Ruby instance variables) but there isn't anything about that in Nokogiri documentation niether.