Guest jonathani501 Posted October 21, 2009 Report Share Posted October 21, 2009 I am working on a scrape bot. The page layout is similar what we did in Google Keywords, it's [NAME] - [#1] - [#2]. I need the info in #2 but have to pull #1 & #2 like in the tutorial Here's what I want to do, use a if/then check to see if #2 is = 0 if so, then go to the next record. Reason, bot is going to click on Name if there is any info in #2 and scrape the next page. If it's 0 then no need for it to visit empty areas. Thanks! Quote Link to post Share on other sites
Guest turbolapp Posted October 23, 2009 Report Share Posted October 23, 2009 I think this might be where the If/not command comes in handy. Not sure about your particular situation but for me I have a list of a few hundred urls. Many of the urls no longer point to valid sites. I want to make a new list of only valid urls so I will do: If Not error codes then add to list Obviously that's a little rough and i have no idea if it's going to work or not (still working on it) but it's the best I've come up with so far. If there's a better idea, I would like to know as well. 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.