I’ve got a web page. On that page are a series of links to .csv files.
I need a way to download a particular csv file. This file can either be
loaded into memory or onto the local filesystem - either way is fine.
I’ve gotten this far:
mech = Mechanize.new
agent = mech.get(url)
With that, I can see the links to the .csv files, which look like this
How do I grab a particular file and load it into memory or onto the
local filesystem? I tried using the ‘text’ method (based on the
examples file) but that didn’t seem to work for me.
This communication is the property of Qwest and may contain confidential
privileged information. Unauthorized use of this communication is
prohibited and may be unlawful. If you have received this communication
in error, please immediately notify the sender by reply e-mail and
all copies of the communication and any attachments.