Jump to content
UBot Underground

How To Scrap Website Difrent Pages Automatic


Recommended Posts

Are you looking for a scraper that just crawls sites?
 
if so here is a truly aweful and useless one,but if it helps you then it was worth it

define clickLink(#myLink) {
    navigate(#myLink,"Wait")
    wait for browser event("DOM Ready","")
    wait for browser event("Page Loaded","")
    wait for browser event("Everything Loaded","")
    add item to list(%pageScrape,$document text,"Don\'t Delete","Global")
    clear list(%hrefBefore)
    add list to list(%hrefBefore,$scrape attribute(<tagname="a">,"href"),"Delete","Global")
    set(#beforePos,0,"Global")
    set(#host,$eval("location.host"),"Global")
    set(#host,$find regular expression(#host,"\\..+?\\.\\w+$"),"Global")
    loop($list total(%hrefBefore)) {
        if($comparison($find regular expression($list item(%hrefBefore,#beforePos),"^/|{#myHost}"),">",$nothing)) {
            then {
                add item to list(%href,$list item(%hrefBefore,#beforePos),"Delete","Global")
                increment(#beforePos)
            }
            else {
                increment(#beforePos)
            }
        }
    }
}
define webCrawl {
    set(#url,$prompt("Crawl Website URL"),"Global")
    clickLink(#url)
    set(#position,0,"Global")
    loop while($comparison(#position,"<",$list total(%href))) {
        clickLink($list item(%href,#position))
        increment(#position)
    }
}
webCrawl()

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...