Gabor Olah 1 Posted December 14, 2010 Report Share Posted December 14, 2010 Hey Guys, I just bought uBot (Dev) and working on my first test bot. I'm trying to create a Google Top 10 scraper and it's working fine, it saves the top 10 urls into a file. But I do not want to save the results into a file. I would like to output the results inside uBot in a copy/pastable format. Either as an UI Element or in the browser window (tried this with "write to browser" but it's not copy/pastable) Can anyone help? Thanks,Gabor 1 Quote Link to post Share on other sites
Gabor Olah 1 Posted December 14, 2010 Author Report Share Posted December 14, 2010 Attached the bot.GoogleTop10Scraper.ubot Quote Link to post Share on other sites
UBotBuddy 331 Posted December 14, 2010 Report Share Posted December 14, 2010 This is crude and there is no formatting here but this is a quick looksy into your list. http://screencast.com/t/6dRtr5SUOji Quote Link to post Share on other sites
Gabor Olah 1 Posted December 14, 2010 Author Report Share Posted December 14, 2010 Thanks BotBuddy but I can not copy/paste that. And I would like one URL per line if possible. Gabor This is crude and there is no formatting here but this is a quick looksy into your list. http://screencast.com/t/6dRtr5SUOji Quote Link to post Share on other sites
UBotBuddy 331 Posted December 14, 2010 Report Share Posted December 14, 2010 The only other way to do it (in my humble opinion) is to write out your list to a .txt file and then read that into the write browser node that I used. That should format the lines much quicker. Although I have not tested that yet. Quote Link to post Share on other sites
Gabor Olah 1 Posted December 14, 2010 Author Report Share Posted December 14, 2010 Hmmm..and then I'll be able to copy/paste the results from the browser window? Isn't there a way to output the results in a UI Block Text element or something like that? Thanks,Gabor quote name='BotBuddy' date='14 December 2010 - 02:32 PM' timestamp='1292333547' post='26096']The only other way to do it (in my humble opinion) is to write out your list to a .txt file and then read that into the write browser node that I used. That should format the lines much quicker. Although I have not tested that yet. Quote Link to post Share on other sites
UBotBuddy 331 Posted December 14, 2010 Report Share Posted December 14, 2010 There maybe will have to see if any one else has an idea or two. I just tried my idea of writing to a file first to retain the carriage control and it did not work. It did not work. So right now you would have to setup a loop to write to the browser window one entry at a time using the proper html cofing for lines data or data IMO - this should be a simple taks without much programming. Quote Link to post Share on other sites
Gabor Olah 1 Posted December 14, 2010 Author Report Share Posted December 14, 2010 But then can I copy/paste the results from the browser window? Thanks,Gabor There maybe will have to see if any one else has an idea or two. I just tried my idea of writing to a file first to retain the carriage control and it did not work. It did not work. So right now you would have to setup a loop to write to the browser window one entry at a time using the proper html cofing for lines <p>data</p> or data<br> IMO - this should be a simple taks without much programming. Quote Link to post Share on other sites
UBotBuddy 331 Posted December 14, 2010 Report Share Posted December 14, 2010 look at this http://screencast.com/t/6bxYnkjuee I got this to work Quote Link to post Share on other sites
Gabor Olah 1 Posted December 14, 2010 Author Report Share Posted December 14, 2010 This outputs #dummy in the browser window for me. And I can noit copy/paste that. Gabor Quote Link to post Share on other sites
UBotBuddy 331 Posted December 14, 2010 Report Share Posted December 14, 2010 Just change it to fit your needs. Quote Link to post Share on other sites
DjProg 3 Posted December 14, 2010 Report Share Posted December 14, 2010 Personally I simply run a shell command to open the created TXT file ! SHELL notepad.exe PATH-TO-YOUR-FILE\file.TXT Is it not what you want ? I'm getting sometimes crazy too with Ubot "I put everything in a file" behavior EDIT : SORRY I DIDN'T SEE YOU ABSOLUTELY WANTED IT INSIDE UBOT Quote Link to post Share on other sites
JohnB 255 Posted December 14, 2010 Report Share Posted December 14, 2010 Gabor, are you saying you want UBot to copy and paste it from the browser window, or you just want the ability to do it manually?...and if you want UBot to do it, where are you trying to paste it to? Quote Link to post Share on other sites
Gabor Olah 1 Posted December 14, 2010 Author Report Share Posted December 14, 2010 I just want to copy/paste it manually. Thanks,Gabor Quote Link to post Share on other sites
Guerrilla 19 Posted December 15, 2010 Report Share Posted December 15, 2010 This is simple but may take some fiddling about. Just use the "run javascript" command to run a javascript that copies to clipboard. Example code: http://www.dynamic-tools.net/toolbox/copyToClipboard/ You may also need to use the "write to browser" command to add script tags to page or to write the function to the page and then call it from "run javascript" **EDIT** I just tried outputting text directly to browser and I could copy it fine. What am I missing? Quote Link to post Share on other sites
Gabor Olah 1 Posted December 15, 2010 Author Report Share Posted December 15, 2010 This is simple but may take some fiddling about. Just use the "run javascript" command to run a javascript that copies to clipboard. Example code: http://www.dynamic-tools.net/toolbox/copyToClipboard/ You may also need to use the "write to browser" command to add script tags to page or to write the function to the page and then call it from "run javascript" OK, I'll try this. I just tried outputting text directly to browser and I could copy it fine. What am I missing? First I add it to a list and then I write the list to the browser with "write to browser" And when I select the list items in the browser and right click to copy it the uBot right click menu comes up that doesn't contain copy. Thanks,Gabor Quote Link to post Share on other sites
Gabor Olah 1 Posted December 15, 2010 Author Report Share Posted December 15, 2010 But I can copy/paste in the compiled bot so problem solved Thanks,Gabor OK, I'll try this. First I add it to a list and then I write the list to the browser with "write to browser" And when I select the list items in the browser and right click to copy it the uBot right click menu comes up that doesn't contain copy. Thanks,Gabor Quote Link to post Share on other sites
Guerrilla 19 Posted December 15, 2010 Report Share Posted December 15, 2010 After you highlight the text hold the "control" key on your keyboard and press "C". This will copy it for you without having to select from the rightclick menu that the ubot menu replaces. Quote Link to post Share on other sites
delphi911 0 Posted December 22, 2010 Report Share Posted December 22, 2010 I want to store clipboard content into a variable. Is this possible? if Yes, How can I do that? PS: I have the pro version. 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.