Mechanize - save to XML or CSV

S

Simon Brunning

HI guys and gals this is probably a simple question but I can't find
the answer directly in the docs for python mechanize.

http://pypi.python.org/pypi/mechanize/

Is it possible to retrieve and save a web page data as xml or a csv
file?

Sure, but mechanize only does the first half of the job. You retrieve
the data using mechanize, then use another module for the save-as bit.
ElementTree for XML and csv for, um, for csv are both in the standard
library.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top