Jump to content
UBot Underground

Compiled Bot Not Scraping With Exbrowser


Recommended Posts

I have a bot that works fine in ubot before i compile it. However, when i compile it, the bot does not scraping the emails from each page. It just loops through each page with no results. See my code here. What could be the issue? Should i try another version of Ubot? I am use 5.9.37

 

set(#website,"behance.net","Global")
clear list(%behanceurls)
add list to list(%behanceurls,$list from file("C:\\Users\\gavner\\Dropbox\\Ubot\\scraping\\behance url list found from 80000.txt"),"Delete","Global")
plugin command("ExBrowser.dll", "ExBrowser Launcher", "Firefox", "", "")
wait(2)
loop($list total(%behanceurls)) {
    plugin command("ExBrowser.dll", "ExBrowser Navigate", $list item(%behanceurls,1))
    wait(1)
    if($contains($document text,"@")) {
        then {
            clear list(%emailforcontact)
            add list to list(%emailforcontact,$find regular expression($plugin function("ExBrowser.dll", "$ExBrowser Document Text"),"([a-zA-Z0-9._-]+@([a-zA-Z0-9_-]+\\.)+[a-zA-Z0-9_-]+)"),"Delete","Global")
            wait(1)
            append to file("C:\\Users\\gavner\\Documents\\scraping\\{#website}.txt","{$new line}{%emailforcontact}","End")
        }
        else {
        }
    }
    remove from list(%behanceurls,1)
    wait(1)
    save to file("C:\\Users\\gavner\\Documents\\scraping\\behance url list found from 80000.txt",%behanceurls)
}
 
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...