mj1231
-
Content Count
7 -
Joined
-
Last visited
Posts posted by mj1231
-
-
Hi all! good day!
I'm trying out this socket command. I want to login and post tweets in tweeter using socket commands, it works fine with log in but when it comes to posting tweets i keep on getting The remote server returned an error: (403) forbidden. Does anyone know encountered this error already? how did you solve it? Pls share! thanks ahead!
plugin command("SocketCommands.dll", "socket container") {
plugin command("SocketCommands.dll", "socket set header", "User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0")
plugin command("SocketCommands.dll", "socket navigate", "GET", "http://twitter.com")
set(#token1,$find regular expression($plugin function("SocketCommands.dll", "$socket page html"),"(?<=authenticity_token\" value=\").*?(?=\")"),"Global")
plugin command("SocketCommands.dll", "socket add parameter", "session[username_or_email]", "twitter@gmail.com")
plugin command("SocketCommands.dll", "socket add parameter", "session[password]", "12341234")
plugin command("SocketCommands.dll", "socket add parameter", "authenticity_token", #token1)
plugin command("SocketCommands.dll", "socket navigate", "POST", "https://twitter.com/sessions")
load html($plugin function("SocketCommands.dll", "$socket page html"))
plugin command("SocketCommands.dll", "socket navigate", "GET", "https://twitter.com/")
plugin command("SocketCommands.dll", "socket add parameter", "status", "Nice app! #wittymanager")
plugin command("SocketCommands.dll", "socket add parameter", "authenticity_token", #token1)
wait(10)
plugin command("SocketCommands.dll", "socket navigate", "POST", "https://twitter.com/i/tweet/create")
load html($plugin function("SocketCommands.dll", "$socket page html"))
} -
thanks pash!!
-
Hi all! Im trying to get the image url of the products in amazon but i cannot retrieve the image url exactly, does anybody know how to do it? pls share it with me, thanks ahead! i want to get the url and save it to a csv file.
this is my code
add list to list(%amazonimageurls,$scrape attribute(<id="imgTagWrapperId">,"src"),"Delete","Global")
add list to table as column(&photo,0,0,%amazonimageurls)
save to file("{$special folder("Desktop")}/photo.csv",&photo) -
Here is an example of how you can do this, it may not be the exact same on your webpage but hopefully this gives you an idea on how to achieve this:
navigate("https://ubotstudio.com/site/playground-difficult-form/","Wait") wait(2) clear table(&colors) set table cell(&colors,0,0,"Yellow") set table cell(&colors,1,0,"Red") set table cell(&colors,2,0,"Pink") set(#row,0,"Global") loop($table total rows(&colors)) { set(#color,$table cell(&colors,#row,0),"Global") if($exists(<(type="checkbox" AND value=#color)>)) { then { change checkbox(<(type="checkbox" AND value=#color)>,"Checked") } else { } } increment(#row) }
Thanks for the idea HelloInsomnia! its working now!
-
Thanks for the idea HelloInsomnia! its working now!
-
I want to automate adding products to an ecommerce site, I have a list of products in a csv file, the fields includes code, product name, price, size and color. Now the ecommerce site has a list of colors and use checkbox element for selecting color. My biggest challenge is how to get the value from csv and let ubot check the checkbox of the appropriate color. Does anyone know how to do it? I'm new to ubot. Thanks ahead!
The Remote Server Returned An Error: (403) Forbidden Using Socket Command
in General Discussion
Posted
@HelloInsomnia
Actually, that's what I did i used http post plugin to get the url and parameter its works with the login part but not in posting tweets because of the 403 error.