theninjamanz 29 Posted May 24, 2010 Report Share Posted May 24, 2010 Hi there. I don't really know the best way to do this but here goes. Let's say that a form has a varying number of asterisks on a page. If the number of asterisks is 3 then run sub.If the number of asterisks is 4 then run sub. The problem I have is not the above, but how I can arrive at the value that equals the number. Is there a tutorial that will help me understand this. I need to count the number of asterisks (but for the sake of argument could be the number of times the letter X is on a page) then do an eval on that. I am guessing I would use the Page scrape or search page function? Can someone help. Cheers. Quote Link to post Share on other sites
Net66 54 Posted May 24, 2010 Report Share Posted May 24, 2010 Hi there. I don't really know the best way to do this but here goes. Let's say that a form has a varying number of asterisks on a page. If the number of asterisks is 3 then run sub.If the number of asterisks is 4 then run sub. The problem I have is not the above, but how I can arrive at the value that equals the number. Is there a tutorial that will help me understand this. I need to count the number of asterisks (but for the sake of argument could be the number of times the letter X is on a page) then do an eval on that. I am guessing I would use the Page scrape or search page function? Can someone help. Cheers. scrape the whole page into a variable. Create temp "List from text" using * as the delimeter.#numberofasterisks=list total(templist)dec #numberofasterisks (this is because the list will have one more line that delimeters so you need to decrease by one). Hope that makes sense! Andy Quote Link to post Share on other sites
theninjamanz 29 Posted May 25, 2010 Author Report Share Posted May 25, 2010 scrape the whole page into a variable. Create temp "List from text" using * as the delimeter.#numberofasterisks=list total(templist)dec #numberofasterisks (this is because the list will have one more line that delimeters so you need to decrease by one). Hope that makes sense! Andy Thanks, will have a look at this and let you know. Quote Link to post Share on other sites
theninjamanz 29 Posted May 25, 2010 Author Report Share Posted May 25, 2010 Thanks, will have a look at this and let you know. How can I scrape the whole page. When I use the command it asks me what I want on the left and right. I just want everything, so I'm not sure what I need to select. Quote Link to post Share on other sites
theninjamanz 29 Posted May 25, 2010 Author Report Share Posted May 25, 2010 Cheers, worked it out, just needed to select the range of the scrape. I've attached a graphic in case it helps someone else. Quote Link to post Share on other sites
Net66 54 Posted May 25, 2010 Report Share Posted May 25, 2010 Cool - glad you worked it out. Sometimes with ubot you have to a little 'creative'. Using lists/delimeter to count the number of occurances is something I thought up early on and have used it myself a couple of times. Andy Quote Link to post Share on other sites
HarryPotter 9 Posted July 8, 2010 Report Share Posted July 8, 2010 hum... tried scraping the entire serp page for google... i can't seem to figure out the range at all. anyone else tried scraping the entire results google page? 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.