Displaying 2 results from an estimated 2 matches for "csvparser".
Did you mean:
asmparser
2008 Apr 29
6
Intercepting an onClick file download
Hi,
I''m having some trouble downloading a .csv file from a particular
website. The file isn''t part of a url, you need to click on a link in
order to get the file sent. I don''t know how to get mechanize to
correctly identify that.
Here is the link to the file I''m trying to retrieve:
<td style="vertical-align: bottom; text-align: center;">
2009 Jun 25
2
Bad Form?
...mbley/webrat-mechanize-xml-rpc/tree>
The problem, or rather question is as such - I have, in my application''s
test environment made use of PluggableParser, but overloaded it with the
.default, and .html calls to parse everything as myown XMLParser class
(copied almost verbatim from the CSVParser example in the RDoc)
I have effectively rendered it as not a browser, by forcing it to treat
anything that parses as XML as a
WWW::Mechanize::File<http://mechanize.rubyforge.org/mechanize/WWW/Mechanize/File.html>
rather
than a WWW::Mechanize::Page<http://mechanize.rubyforge.org/mechanize/...