From: Tamara Temple Date: 2013-07-25T08:35:47+09:00 Subject: Re: Link To Masses Of External Data In Openoffice? On Jul 23, 2013, at 5:29 PM, Austin J. wrote: > So someone helped me out and made a code for Ruby. > This is the code. > > $ ruby -rmechanize -e'n=(1..600); a=Mechanize.new; n.each{|j| > o=a.get("http://rslsim.atspace.com/html/players/player#{j}stats.htm"); > b=o.search("tr"); [1,2,4].each{|q| puts b[q].search("td").map{|i| > i.text}.join(",") } } ' > data.csv > > Can someone convert this into a windows code possibly or tell me what > I'm doing wrong? I know it can be done because he did it on Linux but > doesn't know how to do it on Windows. Your problem isn't with the ruby code, it's with the difference between a linux shell and windows cmd.exe. Take the code between the first ' and the last ' and put it in a file called, say, 'scrape.rb'. Then change the command to: C:\> ruby -rmechanize scrape.rb > data.csv