Export CSV via command line (wget) - Fuelly Forums

Click here to see important news regarding the aCar App

Reply
 
Thread Tools Display Modes
 
Old 05-18-2010, 05:22 AM   #1
Junior Member
 
Join Date: Jan 2010
Posts: 2
Country: United States
Location: Colorado
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.
__________________

dorm is offline   Reply With Quote
Old 05-18-2010, 05:29 AM   #2
pb
Senior Member
 
Join Date: Jul 2008
Posts: 1,588
Country: United States
Location: Corvallis, OR
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.
__________________

pb is offline   Reply With Quote
Old 05-25-2010, 11:39 AM   #3
Junior Member
 
Join Date: Jan 2010
Posts: 2
Country: United States
Location: Colorado
Ok, good enough. Time to get my WWW::Mechanize on! Thanks.
dorm is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


» Fuelly iOS Apps
No Threads to Display.
Powered by vBadvanced CMPS v3.2.3


All times are GMT -8. The time now is 10:36 PM.


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