Jump to content
UBot Underground

Multithreading Help Needed PLEASE


Recommended Posts

hi guys,

 

hope someone can help. basically im at a point now where im stuck.

 

my situation or what i would like: i have a list of accounts. i log into those accounts in a new browser. i try to scrape a list contained within & unique to each of those accounts. i then want to go to or navigate through the scraped list and perform certain actions for that account.

 

problem is that something goes wrong with the scraped lists & the actions subesquently dont perform.

 

someone pleeeeease help! this is what ive got minus the UI stuff:

 

clear list(%Posting)

add list to list(%Posting, $list from file(#accountstopost), "Delete", "Global")

define log in {

thread {

in new browser {

navigate("https://www.example", "Wait")

type text($element offset(<email field>, 0), $next list item(%Posting Accounts), "Standard")

type text($element offset(<password field>, 0), #postingpassword, "Standard")

wait for element($element offset(<password field>, 0), "", "Appear")

click(<login button>, "Left Click", "No")

wait for browser event("Everything Loaded", "")

catcha solve("")

scrape groups()

decrement(#used threads)

}

}

}

define scrape groups {

click(<href="linkgoes here">, "Left Click", "No")

wait for browser event("Everything Loaded", "")

clear list(%Joined)

add item to list(%Joined, $scrape attribute, "fullhref"), "Delete", "Local")

wait for browser event("Everything Loaded", "")

loop($list total(%Joined)) {

navigate($next list item(%Joined), "Wait")

wait for browser event("Everything Loaded", "")

type text(<id="abc">, (#posttitle), "Standard")

wait($rand(2, 5))

}

}

set(#used threads, 0, "Global")

loop($list total(%Posting)) {

loop while($comparison(#used threads, ">=", #num threads)) {

wait(1)

}

loop process()

}

define loop process {

increment(#used threads)

log in()

wait(1)

}

 

thanks guys and really hoping someone can hlep me out here!

 

cheers

Link to post
Share on other sites

your code wouldnt copy and paste since parts of it was missing or not finished. So you likely will nto be able to close and reopen it in node view

 

here is a better setup that should work well.

 

clear list(%Posting)
add list to list(%Posting, $list from file(#accountstopost), "Delete", "Global")
define log in {
   thread {
       in new browser {
           navigate("https://www.example", "Wait")
           type text($element offset(<email field>, 0), $next list item(%Posting Accounts), "Standard")
           type text($element offset(<password field>, 0), #postingpassword, "Standard")
           wait for element($element offset(<password field>, 0), "", "Appear")
           click(<login button>, "Left Click", "No")
           wait for browser event("Everything Loaded", "")
           sgroups()
           decrement(#used threads)
       }
   }
}
define sgroups {
   click(<href="linkgoes here">, "Left Click", "No")
   wait for browser event("Everything Loaded", "")
   comment("dont need to clear local lists")
   comment("THIS NEXT NODE WILL NOT LOAD HOW YOU AHVE IT CODED

add item to list(%Joined, $scrape attribute, \"fullhref\"), \"Delete\", \"Local\")")
   wait for browser event("Everything Loaded", "")
   set(#row, 0, "Local")
   loop($list total(%Joined)) {
       navigate($list item(%Joined, #row), "Wait")
       wait for browser event("Everything Loaded", "")
       type text(<id="abc">, #posttitle, "Standard")
       wait($rand(2, 5))
       increment(#row)
   }
}
set(#used threads, 0, "Global")
loop($list total(%Posting)) {
   loop while($comparison(#used threads, ">=", #num threads)) {
       wait(1)
   }
   loop process()
}
define loop process {
   increment(#used threads)
   log in()
   wait(1)
}


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...