Fuelly Forums

Fuelly Forums (https://www.fuelly.com/forums/)
-   Fuelly Web Support and Community News (https://www.fuelly.com/forums/f2/)
-   -   Export CSV via command line (wget) (https://www.fuelly.com/forums/f2/export-csv-via-command-line-wget-420.html)

dorm 05-18-2010 05:22 AM

Export CSV via command line (wget)
 
Is there a way to access the export to CSV function via wget, or some other command line tool?

I want to set up a cron to periodically grab the CSV export for my cars as a backup.

But, I've tried a couple different things and always get redirected to the login screen. Is there a way I can pass my credentials over as part of the export request?

Thanks.

pb 05-18-2010 05:29 AM

No, there's no built-in way to automate exports. You'll have to write a script to simulate a standard browser. So the first request would be for the login form, grab all the cookies that come with that, and then simulate your form post to the export page.

dorm 05-25-2010 11:39 AM

Ok, good enough. Time to get my WWW::Mechanize on! Thanks.


All times are GMT -8. The time now is 06:02 PM.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.