Jump to content
UBot Underground

Css3 Selector For Ubot (My First Plugin,xpath Alternative)


Recommended Posts

Hey Everyone,
 
This is my first plugin so expect some errors :)
 
I have had too many instances of being paid to give a Ubotter help,particularly beginners,and they do not have Aymans HTTP plugin so I cannot use Xpath and have to work way too hard with the script,so here is a solution
 
Its pretty cool and appears to work well
 
To get a CSS expression use Chrome Dev Tools,or Ubot 5.9+ using Chrome 39 #,open Web Inspector,click the inspect button,and click the element you want to select,like the Ubot element Inspector,and in the inspector the area is highlighted,right click the highlighted area and select,"Copy CSS Path"
 
Hope you like it
 
https://www.dropbox.com/s/8ayjnj3kxwpiqyo/CSSPluging.dll?dl=0
 
The name of the Ubot function is "CSS selector" in your toolbox,it should be in the "HTML Functions" Category
 
code example
 

*Finding Class Name fixed

navigate("http://network.ubotstudio.com/forum/index.php/topic/18575-css3-selector-for-ubot-my-first-pluginxpath-alternative/","Wait")
wait for browser event("Everything Loaded","")
alert($plugin function("CSSPluging.dll", "$CSS Selector", $document text, "#content > div.ipsBox_withphoto > h1", "TextContent"))
Link to post
Share on other sites
  • 3 months later...

No,

 

I've been working on a suite of functions,I was a bit busy with other work the last few weeks,

the above plugin wasn't really ready, it is now ready with more functions too,

 

Give me one more week, and get excited :)

 

PS since adding some functions and refining the above function, today I had my first bot project which I was working on all day, using the tools,it was hands down the most productive day I've ever had, got so much work done and so easy with no complications

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