Jump to content
UBot Underground

Help Message Sending Bot For Facebook


Recommended Posts

you are just amazing..Thanks can you please help me with this..issue..

 

I want to scrape user profiles from this page..

https://www.facebook...54908821393941/

 

 

after this bot needs to send message, but I don't find an option to send message as there is no option to send..can please look at the code and help me out..

 

Thanks

ui text box("UserName",#username)
ui text box("Password",#password)
ui open file("page/Group Name",#pagegroupnames)
create table from file(#pagegroupnames,&pagegroupnamescsv)
set(#row3,0,"Global")
set(#row2,0,"Global")
set(#row1,0,"Global")
define profile scraper(#profilescraper) {
navigate($table cell(&pagegroupnamescsv,#row2,0),"Wait")
click(<id="count_text">,"Left Click","No")
wait for browser event("Everything Loaded","")
click(<class="pam uiBoxLightblue uiMorePagerPrimary">,"Left Click","No")
add list to list(%Groupmembers,$scrape attribute(<tagname="a">,"href"),"Delete","Global")
add list to table as column(&myuserlist,#row1,0,%Groupmembers)
save to file("{$special folder("Application")}\\Userlist.csv",&myuserlist)
}
define Login to facebook(#logintofacebook) {
set user agent("Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36")
navigate("https://www.facebook.com/","Wait")
wait(2)
wait for browser event("Everything Loaded","")
type text($element offset(<email field>,0),#username,"Standard")
wait(3)
type text($element offset(<password field>,0),#password,"Standard")
wait(1)
click(<id="loginbutton">,"Left Click","No")
wait for browser event("Everything Loaded","")
}
loop(1) {
Login to facebook(#logintofacebook)
wait(5)
profile scraper(#profilescraper)
}
add list to list(%memberslist2,$list from file("{$special folder("Application")}\\Userlist.csv"),"Delete","Global")
wait(5)
loop(5) {
navigate($next list item(%memberslist2),"Wait")
wait for browser event("Everything Loaded","")
click(<innertext="Message">,"Left Click","No")
wait(2)
type text(<class="_552h">,"hello","Key Press")
wait(2)
plugin command("WindowsCommands.dll", "keyboard event", "Enter", "Key Press")
wait(10)
}

Thanks for your help I am still learning new things everyday. :) with your help

Link to post
Share on other sites

solved clicking enter Ref 

  • HelloInsomnia
  •  

type text(<name="add_comment_text">, "\{ENTER\}", "Standard")

 

But still how to scrape user profile if someone know how to regex to scrape user profile links only..

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