Jump to content



Photo

Compiled Bot Not Scraping With Exbrowser


  • Please log in to reply
1 reply to this topic

#1 gavner25

gavner25

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 21 October 2019 - 04:34 PM

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)
}
 


#2 gavner25

gavner25

    Advanced Member

  • Members
  • PipPipPip
  • 51 posts
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v3.5
  • License:Standard Edition

Posted 21 October 2019 - 05:12 PM

Actually i just updated to 5.9.55 and it works!!






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users