The Fixer 1 Posted October 31, 2014 Report Share Posted October 31, 2014 Hi. This is my first script question. I'm having problems downloading from Here is my story: 1. I can connect using ftp in Ubot but I'm having a hard time downloading the file for the current date. I need to develop a script to visit the site and download the daily txt file. Notice the format that the file is in and notice that a file does not exist everyday. 2. I tried using the browser navigate but is causes a browser.exe crash. I need a script, that I can enter into my Ubot, that: 1. Visits the site Quote Link to post Share on other sites
The Fixer 1 Posted October 31, 2014 Author Report Share Posted October 31, 2014 for some reason the total post did not display. I need that once the site is visited that Ubot checks if the txt file exists for that date and downloads it to the desktop. Notice the file format and notice a file does not exist every day. Quote Link to post Share on other sites
Macster (UBotter Labs) 112 Posted October 31, 2014 Report Share Posted October 31, 2014 The browser crash is the doom of ubot and no one ever fixed it (sorry!) 1st. you can try Pash's "Advanced Ubot" plugin with the "auto close browser crash" command and set it up to the maximum time until the crash shows2nd. you can try to disable windows error reporting completely and the crash window will disappear completely3rd. you can try aymen's FTP plug to get the files list ..and from the rest is peace of cake Quote Link to post Share on other sites
The Fixer 1 Posted October 31, 2014 Author Report Share Posted October 31, 2014 Thanks macster. I saw Aymen'a FTP plugin but I thought it was the same as Ubot's plugin. How is it different? Quote Link to post Share on other sites
The Fixer 1 Posted November 1, 2014 Author Report Share Posted November 1, 2014 No one willing to help me with the download of the file? I'm willing to pay as I have not reached that part of my Ubot training. I've owned Ubot less than a week. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted November 1, 2014 Report Share Posted November 1, 2014 Takimg a look now! Quote Link to post Share on other sites
tripros 16 Posted November 1, 2014 Report Share Posted November 1, 2014 What is the ftp connection code you used? (go to code view and copy and paste that line) Quote Link to post Share on other sites
The Fixer 1 Posted November 1, 2014 Author Report Share Posted November 1, 2014 This is me messing around with it: plugin command("FTPCommands.dll", "connect to ftp server", "FTP", "ftp.dos.state.fl.us", 21, "anonymous", "anonymous", "/public/doc/FLR/DEBTORS/") { plugin command("FTPCommands.dll", "ftp download file", "20141029flrd.txt", $special folder("Application"))} Quote Link to post Share on other sites
tripros 16 Posted November 1, 2014 Report Share Posted November 1, 2014 plugin command("FTPCommands.dll", "connect to ftp server", "FTP", "ftp.dos.state.fl.us", 21, "anonymous", "anonymous", "/public/doc/FLR/DEBTORS/") { add list to list(%ftpfilenames, $plugin function("FTPCommands.dll", "$ftp get files", ""), "Delete", "Global") if($plugin function("File Management.dll", "$exists in list", %ftpfilenames, "20141031flrd.txt")) { then { plugin command("FTPCommands.dll", "ftp download file", "20141031flrd.txt", "{$special folder("My Documents")}/20141031flrd.txt") } else { } }} Just tested and works. Just need to change how you set today's date to name the file, etc. HTH Quote Link to post Share on other sites
The Fixer 1 Posted November 1, 2014 Author Report Share Posted November 1, 2014 Thank so much tripros. One more thing. I pasted the code to code view and it says that their is an error in the code and I cannot change it to node view. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted November 1, 2014 Report Share Posted November 1, 2014 yep that works here too went to eat Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted November 1, 2014 Report Share Posted November 1, 2014 here is that date part set(#todays date, $plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "yyyyMMdd", "en-US", "en-US"), "Global")plugin command("FTPCommands.dll", "connect to ftp server", "FTP", "ftp.dos.state.fl.us", 21, "anonymous", "anonymous", "/public/doc/FLR/DEBTORS/") { add list to list(%ftpfilenames, $plugin function("FTPCommands.dll", "$ftp get files", ""), "Delete", "Global") if($plugin function("File Management.dll", "$exists in list", %ftpfilenames, "{#todays date}flrd.txt")) { then { plugin command("FTPCommands.dll", "ftp download file", "{#todays date}flrd.txt", "{$special folder("Desktop")}/{#todays date}flrd.txt") } else { } }} you can get date plugin at ubotdev,com file management PI is http://www.ubotstudio.com/forum/index.php?/topic/13237-free-file-management-plugin-multiple-commands-and-functions/ they are both free HTHelps, CD Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted November 1, 2014 Report Share Posted November 1, 2014 Thank so much tripros. One more thing. I pasted the code to code view and it says that their is an error in the code and I cannot change it to node view.Need the Plugins Quote Link to post Share on other sites
The Fixer 1 Posted November 1, 2014 Author Report Share Posted November 1, 2014 Thank you so much Code Docta. Now how do I join the two scripts? Since they both end } }} Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted November 1, 2014 Report Share Posted November 1, 2014 np, mine is both scripts combined Quote Link to post Share on other sites
The Fixer 1 Posted November 1, 2014 Author Report Share Posted November 1, 2014 I should have noticed that. It works great. Thanks to all. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.