rivet 0 Posted November 11, 2009 Report Share Posted November 11, 2009 I have a list of urls in a 1 column csv file, and I am trying to make a loop that navigates to each one. I have tried to set a variable with $list from file but I'm not familiar with this enough to get it working. Any suggestions? Thanks Quote Link to post Share on other sites
hypex 2 Posted November 11, 2009 Report Share Posted November 11, 2009 http://img145.imageshack.us/img145/6001/csvloop.jpg Quote Link to post Share on other sites
rivet 0 Posted November 11, 2009 Author Report Share Posted November 11, 2009 Thanks guys, that really helped This community is awesome. Quote Link to post Share on other sites
fbeach73 0 Posted November 13, 2009 Report Share Posted November 13, 2009 nice find for me on my first day playing with the bot.. thx for it.. I am wondering how easy it is to cycle back through the loop again? Ie: restart at 1 again, once its completed the url list? is there a simple command? thx again load the file into a %list with $list from file: add to list->%sites->$list from file(location) set list position to 0 to start from the beginning from the list, set list position->%sites->0 start a loop that runs through the total elements in your %list: loop->$list total(%sites) then nav to the $next list item in your %list: nav->$next list item(%sites) $next list item will increment $list position by 1 each time it is called, so the next time the loop runs it will grab the next item from %sites. Quote Link to post Share on other sites
fbeach73 0 Posted November 13, 2009 Report Share Posted November 13, 2009 ahhh i implemented this and I believe its looping fine, and restarting as well, so I guess my Q is obsolete..tx Quote Link to post Share on other sites
Guest Xdreamer Posted November 15, 2009 Report Share Posted November 15, 2009 Looks logical, thanks a bunch. How does this work with: a) comma separated values in a textfile more than only one column used (for example: url user pass ) Any help would be appreciated Quote Link to post Share on other sites
s1ickwi11y 0 Posted November 19, 2009 Report Share Posted November 19, 2009 I'm wondering the same thing. How does this method work with a multi-column CSV file rather than a one-col sheet? One example is I have a "NAME","URL" format in one of my sheets, I'll scrape, build that list, then run another bot using that sheet. I'll need to be able to open the file and call to each of the two individual columns. Thanks. I agree. Awesome community! 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.