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
View all comments
Show parent comment
1
u/savef Feb 16 '19
I hadn't heard of Watir before, but it uses Selenium underneath? That sounds much more overkill. I can't think of any of its selector methods that would be easy to use for the task on this webpage either.