newB 0 Posted October 23, 2009 Report Share Posted October 23, 2009 I would like to be able to load a list of urls via a txt file into the bot and have it go through each url and do the scripted commands. I just can't figure out how to do this. Help? So in other words, I have 5 urls, I want to go to the first one, login, upload or write or whatever, logout, go to the next one, login, upload or write or whatever, logout, go to the next one...etc. Can this be done if the urls are different? Or do I have to just clone and edit? edited to add: the actions in each site remains the same btw. I'm thinking I'm missing a simple solution here............................ I have done the actions I want to take once logged in. I basically want a bot that where I can login to my blogs and add some pages, but I don't want to create a new exe for each blog. Is there a way I can make it where I can specify a file or input the list and the passwords and it will just go through the list top to bottom and do this simple thing? Quote Link to post Share on other sites
emp 2 Posted October 23, 2009 Report Share Posted October 23, 2009 Yes, you can do this. Here is how I would do this: uBot can open a file and load the contents into a list. Then you loop through the list and use the URL to navigate to the site with the nav command. - Once you are on a site, you can have uBot perform a set number of tasks (those are contained in their own subroutines, like "posting for wordpress, posting for blogspot, etc..." - Using an if statement, a different subroutine is called, depending on which site you are on. The loop goes to the next URL ::emp:: Quote Link to post Share on other sites
newB 0 Posted October 23, 2009 Author Report Share Posted October 23, 2009 I'll give it a go. Still not all great with using the loops and if then type of routines yet. I've never done any coding type stuff at all before so this is all very new to me! But I seem to have the basics working well which has been exciting cause I know absolutely nothing about making bots or coding for that matter! Quote Link to post Share on other sites
newB 0 Posted October 23, 2009 Author Report Share Posted October 23, 2009 Also, I am not sure I grasp how to get the nav command to pull a url from the list. I only seem to get it to work without errors by manually putting the url in the url blank for the nav. What am I doing wrong? Quote Link to post Share on other sites
emp 2 Posted October 23, 2009 Report Share Posted October 23, 2009 hi there. I just made a short video for you to look at. I just set a variable, but t works the same with a list. http://www.screencast.com/users/emper/folders/Jing/media/d24eb9d0-f79b-4a19-a73f-94406331192c The problem is that uBot already has a URL ready in the nav command, which you need to clear. I ran into the same issue at first. ::emp:: Quote Link to post Share on other sites
newB 0 Posted October 23, 2009 Author Report Share Posted October 23, 2009 Thank you so much! I was so frustrated with this thing for the first hour and a half and then I found the other vids on the regular page and they were so much easier to understand than that manual (for me). And it was just a breeze after that. I wanted to return the thing for a refund asap because I thought I could never understand this stuff, but once you get it, you get it! Thanks for all the help! I'm up at 3am here so have to really be to bed, but was so excited about this new toy lol. Will have to try it out tomorrow more or this weekend! Quote Link to post Share on other sites
emp 2 Posted October 23, 2009 Report Share Posted October 23, 2009 Sure is shiny, this new toy, isn't it? Glad I could help you, have fun! ::emp:: Quote Link to post Share on other sites
Guest turbolapp Posted October 23, 2009 Report Share Posted October 23, 2009 Hey guys, Since it looks like NewB is happy, mind if I hijack the thread a bit? I think we have a sort of cousin situation here. My question is twofold: 1) I'm trying to access data on the yellowpages business urls. I would like to eventually make it to where the bot goes to each url to search for specific data. I'm trying to figure out how to approach this. Should I scrape all the urls to a list and then have ubot nav to the list like above? Or should I have the ubot just go to link on the page and click through? 2)Either way, My looping has been disastrous. I can't really get it to work ( I keep winding up with 36 IE browsers popping open at me... :-\ )The tutorial on loops was based solely on having numbers fill a field and I'm not quite sure how to transition that to having url links clicked. Quote Link to post Share on other sites
emp 2 Posted October 23, 2009 Report Share Posted October 23, 2009 Hi turbo. Yes, I would do it like you said above at 1. ::emp:: Quote Link to post Share on other sites
Guest luminus Posted October 24, 2009 Report Share Posted October 24, 2009 Definitely #1. Once you scrape the list you can then control the speed of browsing and you can see where you are, etc. After you have a list of URL's you would probably use Nav and the parameter $next list item, as in the image below. http://www.botsoftware.org/images/asdf.png Quote Link to post Share on other sites
Guest turbolapp Posted October 24, 2009 Report Share Posted October 24, 2009 Thanks Luminus! That's almost exactly what I did yesterday (I'm ridiculously proud of myself for figuring it all out) but of course it didn't work right. It almost did, but it kept going back to the first url. So it would go: first url , second url, first url, third url, first url...etc.( I also added a whole huge if/not/then scenario too, so that may be a culprit but I don't think so.) By this time I had been working on it for a few hours and I was going cross eyed so I figured I would come back to it today. With your map and me feeling restful, I should be able to muddle through today. I'll post back if I have issues. Quote Link to post Share on other sites
Guest turbolapp Posted October 25, 2009 Report Share Posted October 25, 2009 OK I need some help I seem to be stuck on this one part. I can't figure out what I put in for a parameter in the list I just created? I mean it's all the urls from the previous list that met certain requirements...how do I make that into a parameter? http://img40.imageshack.us/img40/4772/script1.png http://img40.imageshack.us/img40/7785/script2.png http://img32.imageshack.us/img32/6452/script3y.png Quote Link to post Share on other sites
Guest jonathani501 Posted October 25, 2009 Report Share Posted October 25, 2009 Gonna take a stab, $next list item > %ISP Websites ??? If not, looks like fun, gotta a copy of the script you can post without any info, I'm up for a challenge. Quote Link to post Share on other sites
Guest turbolapp Posted October 25, 2009 Report Share Posted October 25, 2009 Thanks for helping Jon. I didn't really understand what you were trying to say in your last sentence. As for your advice about the constant. I liked it, it made sense and I actually got a bit further in the process. This time a couple of urls were added to the list (where as before none were) However I got this error message over and over towards the end: http://img28.imageshack.us/img28/3752/error1q.png Quote Link to post Share on other sites
Guest turbolapp Posted October 26, 2009 Report Share Posted October 26, 2009 bump Quote Link to post Share on other sites
Guest turbolapp Posted October 27, 2009 Report Share Posted October 27, 2009 Ok incase anyone was following along: the solution was to set parameter as a variable. So variable = $next list item and then have it navigate to the variable as well as using the variable in the add to list that I was having so much problems with. Fun Fact I learned along the way. The set variable has to be inside the loop otherwise it gets stuck on the first line item. 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.