Ebizon 0 Posted December 16, 2013 Report Share Posted December 16, 2013 (edited) i have an list of url all url for download particular file.i want pic one url and search in majestic seo site and download its csv file related to that url.and this process is going on loop.the problem is that how can i click download dialog box and download csv file according to particular url.please suggest me how can i do this task.i have try many times but its not done. Edited December 16, 2013 by Ebizon Quote Link to post Share on other sites
the_way 52 Posted December 16, 2013 Report Share Posted December 16, 2013 you would need to scrape the name of the site, then create a folder with that name,then follow the instructions inhttp://wiki.ubotstudio.com/wiki/Click_Dialog_Button and make sure that you exactly match the text from the dialog box, and you should b ok. Quote Link to post Share on other sites
Ebizon 0 Posted December 16, 2013 Author Report Share Posted December 16, 2013 Sir i have allready try this.but its not work properly.please tell me how can i download multiple file using a loop in download file command..? Quote Link to post Share on other sites
the_way 52 Posted December 17, 2013 Report Share Posted December 17, 2013 It wont work with more than one dialog box open, so your loop has to save it then go to the next one. as far as the dialog box is concerned, try practicing a simple image download from the ubot site first, if you can get that working, you'll find magestic easier to do. there are 2 options to save file images, there is save image element too. you could also post the part of your code here, and we can have a look Quote Link to post Share on other sites
koziu 0 Posted January 22, 2016 Report Share Posted January 22, 2016 (edited) Hi,this is an old topic, but highly relevant to my problem. I'm trying to download backlinks from a given domain from the list and everything is fine until the export window comes up. When I run only the node responsible for clicking on export button it works. When I run whole sequence it doesn't. Here's my code: add list to list(%listDomains,$list from file("{$special folder("Application")}\\test.txt"),"Delete","Global") set(#loopCounter,0,"Global") navigate("https://majestic.com/reports/site-explorer","Wait") loop while(#loopCounter < $list total(%listDomains)) { set(#domainToCheck,$list item(%listDomains,#loopCounter),"Global") wait(2) change attribute(<name="q">,"value",#domainToCheck) wait for browser event("Everything Loaded","") click(<id="explorersubmit">,"Left Click","No") wait for browser event("Everything Loaded","") click($element offset(<tagname="a">,95),"Left Click","No") wait for browser event("Everything Loaded","") wait(3) click($element offset(<class="csvlink">,0),"Left Click","No") wait for browser event("Everything Loaded","") wait(2) allow popups("In New Window") wait for element(<id="export-button">,"","Appear") wait(3) plugin command("WindowsCommands.dll", "click mouse", "majBot* - UBot Studio Stealth Professional Edition", "HwndWrapper[UBot Studio.exe;;a3c5dd0f-fabe-4b61-aad0-a8b4d0128df2]", 1148, 583, "Left Click") wait(3) navigate("https://majestic.com/reports/site-explorer/top-backlinks","Wait") wait for browser event("Everything Loaded","") remove from list(%listDomains,#loopCounter) increment(#loopCounter) } It pulls domains from the list and user should be already logged. Probably there is some unecessary code, like allow popups, but I tried everything I could think of. Here's the screenshot of this window: I've tried double-clicking, wait between couple of clicks etc. It seems ubot doesn't recognize this window at all, when I try to mark any element of it it doesn't pull anything. Can someone direct me to the right direction, please? This is my first post here, I'm just starting with ubot. It can be frustrating, especially when I'm starting, but love the possibilities I can have with it. Cheers,Michal Edited January 22, 2016 by koziu 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.