ppcmaniac 0 Posted July 11, 2014 Report Share Posted July 11, 2014 I'v got this script I'm working on: set visibility("Invisible") set(#FBUser, "-taken-out-", "Global") set(#FBPass, "-taken-out-", "Global") set(#GroupURL, "https://www.facebook.com/groups/-group-", "Global") set(#ImgFolder, "D:\\Users\\Desktop\\img\\", "Global") set(#WordList, "awesome,cool,thank,love,best,big,great,amazing,better", "Global") set(#Progress, "", "Global") set(#DataLable, "", "Global") define Start { bot source command(25, #FBUser, #FBPass) set(#Progress, "Loging into Facebook", "Global") wait(2) navigate(#GroupURL, "Wait") set(#Progress, "Going to {#GroupURL}", "Global") wait(2) set(#Count, 1, "Global") set(#bool, 1, "Global") set(#Progress, "Loading Page", "Global") loop while($comparison(#bool, "!=", 0)) { if($contains($scrape attribute(<tagname="body">, "innerhtml"), "created the group.")) { then { set(#bool, 0, "Global") } else { run javascript("window.scrollTo(0,document.body.scrollHeight);") wait(1) increment(#Count) set(#Progress, "Loading Page {#Count}%", "Global") } } } click(<class="UFIPagerLink">, "Left Click", "No") click(<class="see_more_link">, "Left Click", "No") set(#Progress, "Wating for {#Count} seconds for content to load", "Global") wait(#Count) set(#Progress, "Gathering Comment Data", "Global") add list to list(%Words, $list from text(#WordList, ","), "Delete", "Global") add list to list(%Elements, $scrape attribute(<class=r".*?(UFIComment).*?">, "data-reactid"), "Delete", "Global") set list position(%Elements, 0) set(#Count, 0, "Global") loop($list total(%Elements)) { set(#Progress, "Processing Comment {#Count} of {$list total(%Elements)}", "Global") set(#ElementID, $next list item(%Elements), "Global") set(#ElementContent, $scrape attribute(<data-reactid=#ElementID>, "innerhtml"), "Global") set list position(%Words, 0) loop($list total(%Words)) { set(#Word, $next list item(%Words), "Global") if($contains(#ElementContent, #Word)) { then { set(#DataLable, "Found a mach for {#Word}!", "Global") wait(1) set(#FilePath, "{#ImgFolder}Comment-{#Word}-{$rand(1, 1000)}.png", "Global") set(#DataLable, "Saving {#FilePath}", "Global") save element image(<data-reactid=#ElementID>, #FilePath) set(#DataLable, "Done", "Global") wait(1) set(#DataLable, "", "Global") } } } increment(#Count) } clear list(%Elements) set(#Progress, "Gathering Post Data", "Global") add list to list(%Elements, $scrape attribute(<class=r".*?(userContentWrapper).*?">, "data-gt"), "Delete", "Global") set list position(%Elements, 0) set(#Count, 0, "Global") loop($list total(%Elements)) { set(#Progress, "Processing Post {#Count} of {$list total(%Elements)}", "Global") set(#ElementID, $next list item(%Elements), "Global") set(#ElementContent, $scrape attribute(<data-gt=#ElementID>, "innerhtml"), "Global") set list position(%Words, 0) loop($list total(%Words)) { set(#Word, $next list item(%Words), "Global") if($contains(#ElementContent, #Word)) { then { set(#DataLable, "Found a mach for {#Word}!", "Global") wait(1) set(#FilePath, "{#ImgFolder}Post-{#Word}-{$rand(1, 1000)}.png", "Global") set(#DataLable, "Saving {#FilePath}", "Global") save element image(<data-gt=#ElementID>, #FilePath) set(#DataLable, "Done", "Global") wait(1) set(#DataLable, "", "Global") } } } increment(#Count) } set(#Progress, "Done!", "Global") } The problem I'm running into is, once it gets to "save element image(<data-reactid=#ElementID>, #FilePath)" It just stops, no errors pop up, nothing. The file path is correct and the folder is writable. Does anyone know what could be stopping it? or is it more likely a Ubot Bug? 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.