uRobot 1 Posted July 2, 2016 Report Share Posted July 2, 2016 I am trying to scrape from a website... here is my code: save to file("C:\\Desktop\\testing.txt",$plugin function("ExBrowser.dll", "$ExBrowser Scrape Element", "x://div[@class=\"whatever"]")) this code works fine... but it only writes one line or only save "whatever" into one line... and whenever whatever2 appears it "OVERWRITES" the whatever1 I have this whole thing on a loop... and the "whatever" changes everytime... so I wanted to have whatever1whatever2whatever3whatever4whatever5 on my testing.txt but right now... my code works like this: first loop: my testing.txt will get: whatever1 second loop: my testing.txt will get: whatever2 and so on... Quote Link to post Share on other sites
bestmacros 60 Posted July 2, 2016 Report Share Posted July 2, 2016 use 'append to file' instead of 'save to file' Quote Link to post Share on other sites
uRobot 1 Posted July 2, 2016 Author Report Share Posted July 2, 2016 thanks bestmacros... 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.