spa3212 1 Posted December 1, 2015 Report Share Posted December 1, 2015 Hi,I am learning ubot but I stuck at one place..I want to save current url to a txt file in loop. can anyone help me in this regard. Quote Link to post Share on other sites
addy196 9 Posted December 1, 2015 Report Share Posted December 1, 2015 add list to list(%Urls,$list from text("http://url1.comhttp://url2.comhttp://url3.comhttp://url4.comhttp://url5.comhttp://url6.comhttp://url7.com",$new line),"Delete","Global")loop(5) { navigate($random list item(%Urls),"Wait") append to file("{$special folder("Desktop")}/example.txt",$url,"End")} Quote Link to post Share on other sites
spa3212 1 Posted August 9, 2016 Author Report Share Posted August 9, 2016 NO, I want to save every url in new line.. Iike if bot visit yahoo.com, then bot will save yahoo.com and then if bot have bing.com then bot will add bing.com in next line so that file looks likeyahoo.combing.com please help this is urgent. Quote Link to post Share on other sites
stanf 43 Posted August 9, 2016 Report Share Posted August 9, 2016 What u want is the function url it grabs the current irk that is open in the browser Quote Link to post Share on other sites
HelloInsomnia 1103 Posted August 10, 2016 Report Share Posted August 10, 2016 Use append to file: append to file(#file,"{#text}{$new line}","End") 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.