lioncool 1 Posted November 15, 2016 Report Share Posted November 15, 2016 i tried this code not workit work but scrape everything Remote Host xxxx IP Address xxxxxhow to get ip only http://www.lagado.com/proxy-test set(#captureIP, $scrape attribute($element offset(<tagname="p">, 7), "innertext"), "Global") Quote Link to post Share on other sites
Gogetta 263 Posted November 16, 2016 Report Share Posted November 16, 2016 It can be done much easier by using some regex. navigate("http://www.lagado.com/proxy-test","Wait") clear list(%getIPAddress) add list to list(%getIPAddress,$find regular expression($document text,"(?:[0-9]\{1,3\}\\.)\{3\}[0-9]\{1,3\}"),"Delete","Global") alert($list item(%getIPAddress,0)) 1 Quote Link to post Share on other sites
lioncool 1 Posted November 16, 2016 Author Report Share Posted November 16, 2016 do you know why Instagram page not load in ubot it show blank pagei changed diff agent sometime show blank page Quote Link to post Share on other sites
deliter 203 Posted November 16, 2016 Report Share Posted November 16, 2016 my regex sucks so I rely on my pure Ubot scraping skills,maybe this will help you too,this gets the first b tag,that has remote IP address in bold,,and scrapes its parent and replaces the "Remote IP Address " with nothing alert($replace($scrape attribute($element parent($element offset(<tagname="b">, 0)), "innertext"), "Remote IP Address ", "")) 1 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.