dbwebhosting 0 Posted May 11, 2014 Report Share Posted May 11, 2014 Hi guys, I am building a scrapper and i am scrapping the following details; CompanyAddressContact number I have it all working and i want to add a 'Website' scrape. However i don't want it to mess up my lists if their is no website. It needs to add a a blank and then move on if the website does not exist. Still learning ubot guys so please be patient with me Regards Quote Link to post Share on other sites
a2mateit 395 Posted May 12, 2014 Report Share Posted May 12, 2014 Use set to set your $next list item, then use an if statement with a comparison. If #set = $nothing then do nothing/else do scrape... Not at the computer at the moment or I would paste up a small code sample. Quote Link to post Share on other sites
Ptrick125 45 Posted May 13, 2014 Report Share Posted May 13, 2014 For a blank, use the $nothing parameter and if you need to check if something is there, use the $if command and an $exists parameter Quote Link to post Share on other sites
deliter 203 Posted May 31, 2014 Report Share Posted May 31, 2014 if list item is equal to nothing,increment list item,but I would,clear blank items from the list first before using it or,if item is greater than nothing,than add item to list,if not,do not add to list 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.