datarecall 0 Posted December 6, 2010 Report Share Posted December 6, 2010 Is there a way to test to see while looping through a list if the list item contacts *google* Scraping some urls off google and cant figure out a way to ditch their own urls. So I figure if while im iterating through the urls it did find if i could run a wildcard test search i can just skip it. Thanks for the help Quote Link to post Share on other sites
Net66 54 Posted December 6, 2010 Report Share Posted December 6, 2010 1) Scrape all the urls into a list.2) Loop through the list and check if the list item contains google.3) If it does not contain google add this to a NEW list. At the end your new list will have all the urls that don't contain google. You can check if the item contains google using javascript or the pro version has a contains function I believe. Andy Quote Link to post Share on other sites
datarecall 0 Posted December 7, 2010 Author Report Share Posted December 7, 2010 This is what I tried here but now its not adding anything Quote Link to post Share on other sites
datarecall 0 Posted December 7, 2010 Author Report Share Posted December 7, 2010 I got it to run through removed the * around google but its still adding urls like :http://webcache.googleusercontent.com etc, its also getting rid of some urls that dont have google in it. 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.