unurohack 1 Posted January 13, 2015 Report Share Posted January 13, 2015 Hi guys, I need some help from you ...If you can help me with a good answer, I'd be grateful. I need a simple script that is based on regex, this script must find all urls internal from current page.For exemple: I found a function but not working correctly for me.This function extracts all URLs on the page, I need to extract only the internal urls.For example, if I navigate on www.unuro.com ... need function to extract only the pages that have domain unuro.com add list to list(%internal pages, $find regular expression($document text, "(((ftp|https?):\\/\\/)(www\\.)?|www\\.)([\\da-z-_\\.]+)([a-z\\.]\{2,7\})([\\/\\w\\.-_\\?\\&]*)*\\/?"), "Delete", "Global") Thank you. Quote Link to post Share on other sites
unurohack 1 Posted January 14, 2015 Author Report Share Posted January 14, 2015 can someone help me?... Quote Link to post Share on other sites
gavind 6 Posted January 14, 2015 Report Share Posted January 14, 2015 Hi. Is below the one you're looking for? http://www.ubotstudio.com/forum/index.php?/topic/17242-sell-collection-of-useful-scripts-for-ubot-studio-20/ Quote Link to post Share on other sites
pash 504 Posted January 14, 2015 Report Share Posted January 14, 2015 Try. set(#NowDomain,$eval("var x = window.location.host; x;"),"Global") set(#NowDomain,$replace(#NowDomain,".","\\."),"Global") set(#NowDomain,$replace(#NowDomain,"-","\\-"),"Global") set(#NowDomain,$replace(#NowDomain,"www.",""),"Global") clear list(%internal pages) set(#ss,$document text,"Global") add list to list(%internal pages,$find regular expression($document text,"(((ftp|https?):\\/\\/)(www\\.)?|www\\.){#NowDomain}([\\/\\w\\.-_\\?\\&]*)*\\/?"),"Delete","Global") 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.