Cyrax 2 Posted September 26, 2015 Report Share Posted September 26, 2015 Hello freinds the following script seems to just scrape the first 2 pages , but after the first 2 pages it still cycles to the next pages but doesn't scrape the numbers like in the first 2 pages. navigate("http://www.niceic.com/householder/find-a-contractor-results?q=london", "Wait")wait for browser event("Everything Loaded", "")add list to list(%numbers, $scrape attribute(<id=w"gvContractors_*_lblTelephone">, "innertext"), "Delete", "Global")loop while($exists($element offset(<tagname="a">, 104))) { click($element offset(<tagname="a">, 104), "Left Click", "No") wait for browser event("Everything Loaded", "") add list to list(%numbers, $scrape attribute(<id=w"gvContractors_*_lblTelephone">, "innertext"), "Delete", "Global")} i havn't made a bot in a while so maybe i am missing somthing obvious. any advise will be much appreciated Thank youniceic.ubot Quote Link to post Share on other sites
stanf 43 Posted September 26, 2015 Report Share Posted September 26, 2015 you kept reloading the same 3 pageshelp-corrected.ubot Quote Link to post Share on other sites
Cyrax 2 Posted September 27, 2015 Author Report Share Posted September 27, 2015 thank you stanf for taking the time to correct the bot. its now doing exactly what i needed. Thank You so much 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.