Jump to content



Photo

[Sell] - Ubot Comminication Plugin - Browser Control (Pro) Use Chrome / Ff Etc - Run Code On / Control External Bots, Web Server Control (Pro) + More

Ubot Communications Plugin Ubot addons Control Bots Via Web Server Bots To Control Other Bots Remote Control Bots

  • This topic is locked This topic is locked
440 replies to this topic

#101 diskwizz

diskwizz

    Advanced Member

  • Members
  • PipPipPip
  • 160 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 06 February 2015 - 04:11 PM

Can you add a command with an option to keep the browser open? If not I guess we would have to add a loop while to keep it open.

Well it's designed to quickly close and open a browser again once it's actions are done and you would need a new fresh browser. Every time the browser open's it loads in a new fresh browser instance that shares no information with the previous once. Even if you open two at once they know nothing about each other cookie etc wise.

What we have experienced in the beta group is that people use Firefox or Chrome to develop the routine then on production they switch over to PhantomJS. Mainly because PhantomJS is quicker, uses less cpu and less memory.



#102 diskwizz

diskwizz

    Advanced Member

  • Members
  • PipPipPip
  • 160 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 06 February 2015 - 04:16 PM

Just put an alert at the end. And while that alert box is open, the browser stays open as well. 
And it's not like with the ubot browser. This browser can be accessed and used.

 

Dan

Thanks Dan, yes this is not an internal browser this uses browsers already installed on your machine to be used for your work.

The "CBrowser Container" is designed so child commands/nodes know with wich browser to interact with.



#103 stanf

stanf

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 545 posts
  • OS:Windows 10
  • Total Memory:3Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 06 February 2015 - 04:41 PM

if the browser is ment to close at the end of the node,

how do you code the rutine?

fill this text box

click that item



#104 diskwizz

diskwizz

    Advanced Member

  • Members
  • PipPipPip
  • 160 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 06 February 2015 - 04:49 PM

if the browser is ment to close at the end of the node,
how do you code the rutine?
fill this text box
click that item

Well by adding the commands inside the Container.

This is a somewhat more complex example that uses Xpath, Xpath is about 40-60 times quicker then Ubot's standard Locators like "<tagname="a">". We support Ubot locators, Xpath locators and CSS locators.
 

plugin command("Communication.dll""CBrowser Container""Firefox""""") {
    plugin command("Communication.dll""CBrowser Navigate""http://www.bing.com/")
    plugin command("Communication.dll""CBrowser Type Text""My first external browser search")
    plugin command("Communication.dll""CBrowser Click")
    loop(10) {
        add list to list(%UrlCollection,$plugin function("Communication.dll""$CBrowser Scrape List Elements Attribute""href"),"Delete","Global")
        plugin command("Communication.dll""CBrowser Click")
    }
    wait(3)
}


Don't know why but this code won't be saved in a code block.


Edited by diskwizz, 06 February 2015 - 04:52 PM.


#105 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3153 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 06 February 2015 - 04:50 PM

if the browser is ment to close at the end of the node,

how do you code the rutine?

fill this text box

click that item

 

You open the site in your normal google chrome browser. And then you look at the HTML Code or the Element viewer. 
There are also some XPATH plugins for firefox if you like that more.

 

But there is no element select like with the regular ubot browser. 

But you could use the normal ubot elements in the CBrowser elements as well. 
But I would highly recommend using Xpath. A lot more flexible and a lot quicker.

 

Dan


Signature-JPG.jpg


#106 rocket976

rocket976

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 574 posts
  • OS:Windows 7
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 06 February 2015 - 05:17 PM

Thanks for the alert tip Dan. Stanf take a look at how easy it is to get the xpath  http://screencast.com/t/GQ3pJfoYx  wish I used this long ago.



#107 steven.cross

steven.cross

    Member

  • Fellow UBotter
  • PipPip
  • 14 posts
  • LocationKoh Samui
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 07 February 2015 - 06:23 AM

Hi, I can't get this plugin to work with the code provided. I get a crash every time - http://screencast.com/t/mO4FUHc4xYY . I tried it with other plugins and without, in vers 4 and vers 5, compiled and in studio, with chrome and with firefox, on my pc and on vps. Same thing every time: loads the browser than crashes.

Thank you



#108 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3153 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 07 February 2015 - 07:22 AM

Hi, I can't get this plugin to work with the code provided. I get a crash every time - http://screencast.com/t/mO4FUHc4xYY . I tried it with other plugins and without, in vers 4 and vers 5, compiled and in studio, with chrome and with firefox, on my pc and on vps. Same thing every time: loads the browser than crashes.

Thank you

Does that happen when you select Chrome as well?

I assume you have .Net 4.5 installed right?

And latest versions of Firefox and Chrome?

 

Dan


Signature-JPG.jpg


#109 steven.cross

steven.cross

    Member

  • Fellow UBotter
  • PipPip
  • 14 posts
  • LocationKoh Samui
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 07 February 2015 - 07:34 AM

yes...4.5 installed - tried it with both chrome and firefox as mentioned above...on my pc, laptop and vps - same thing...



#110 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3153 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 07 February 2015 - 07:42 AM

yes...4.5 installed - tried it with both chrome and firefox as mentioned above...on my pc, laptop and vps - same thing...

That's really strange then. Porbably best to PM diskwizz so that he can take a look.

 

 

@ALL:

 

Here's a quick Google scraping example:

 

 

plugin command("Communication.dll""CBrowser Container""Chrome"""$plugin function("Communication.dll""Set User Agent""ozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36")) {
    plugin command("Communication.dll""CBrowser Navigate""http://www.google.com")
    plugin command("Communication.dll""CBrowser Wait For Element", 60)
    plugin command("Communication.dll""CBrowser Type Text""Ubot Studio")
    plugin command("Communication.dll""CBrowser Wait For Dom Ready", 5)
    plugin command("Communication.dll""CBrowser Click")
    plugin command("Communication.dll""CBrowser Wait For Dom Ready", 5)
    wait(2)
    clear list(%links1)
    clear list(%links2)
    add list to list(%links1$plugin function("Communication.dll""$CBrowser Scrape List Elements Attribute""href"), "Delete""Global")
    set(#counter, 0, "Global")
    loop($list total(%links1)) {
        if($not($contains($list item(%links1#counter), "google")) AND $contains($list item(%links1#counter), "http")) {
            then {
                add item to list(%links2$list item(%links1#counter), "Delete""Global")
            }
        }
        increment(#counter)
    }
}
alert("Done")

 

Cheers

Dan


Signature-JPG.jpg


#111 steven.cross

steven.cross

    Member

  • Fellow UBotter
  • PipPip
  • 14 posts
  • LocationKoh Samui
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 07 February 2015 - 08:00 AM

Well I don't know what version he gave me...I can't even paste your code Dan.

 

2015-02-07_2157.png



#112 Bot-Factory (Dan)

Bot-Factory (Dan)

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 3153 posts
  • LocationEurope/Germany
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 07 February 2015 - 09:55 AM

Well I don't know what version he gave me...I can't even paste your code Dan.

 

2015-02-07_2157.png

 

 

The forum is messing up the code.. Did not see that when I posted it.

 

I'll attach my ubot file.

 

Dan

Attached Files


Signature-JPG.jpg


#113 steven.cross

steven.cross

    Member

  • Fellow UBotter
  • PipPip
  • 14 posts
  • LocationKoh Samui
  • OS:Windows 8
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 07 February 2015 - 10:09 AM

Thank you for the code Dan, but - nope, still the same crash... I'll just have to wait for diskwizz to come along to see what's the problem. To bad I wanted to play with it today

Steven



#114 Chris M

Chris M

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 497 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 07 February 2015 - 11:27 AM

No Dans code works for me except that I have to change some of the xpath for Google US but I did get a script error when running
down in the looping.



#115 diskwizz

diskwizz

    Advanced Member

  • Members
  • PipPipPip
  • 160 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 07 February 2015 - 12:44 PM

Well I don't know what version he gave me...I can't even paste your code Dan.

 

2015-02-07_2157.png

You can't paste the code because on line 3,4 and 6 it's missing parameters. But if it crashes on your machine then let's test out whats going wrong. Are you able to setup a teamview session so we can test what goes wronge?



#116 Pete

Pete

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 882 posts
  • LocationUK london
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v3.5 & v4.0
  • License:Developer Edition

Posted 08 February 2015 - 10:39 AM

The benefits are more choices, no more memory leaks, no more browser crashes and you can actually use different user agents then chrome user agents. The issue now is if i use a firefox user agent i could test if it's fake by looking if firefox only javascript executes in the browser, many people already have seen sites that can detect awesomium browsers. Now you can actually use the correct browser and it's impossible to detect and prevent the actions we do in the bot, since we are actually using firefox. I hope this makes sense.

I understand this is early days for this plugin that’s giving us some great options. 
Will it be possible at some point to spoof more the screen size and user agent?
Many sites have gone far beyond this now. 
System time is becoming big if you have a US IP, US user agent, but your system time is set to say GB,
Check out https://www.browserleaks.com/  and  https://panopticlick.eff.org/  to see more
 



#117 diskwizz

diskwizz

    Advanced Member

  • Members
  • PipPipPip
  • 160 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 08 February 2015 - 01:42 PM

I understand this is early days for this plugin that’s giving us some great options. 
Will it be possible at some point to spoof more the screen size and user agent?
Many sites have gone far beyond this now. 
System time is becoming big if you have a US IP, US user agent, but your system time is set to say GB,
Check out https://www.browserleaks.com/  and  https://panopticlick.eff.org/  to see more
 

Yes we can add any requests in the future, although only a handful of sites at this time checks for system time. Basically we can fake anything with this plugin more then currently possible now with Ubots awesomium browser.



#118 diskwizz

diskwizz

    Advanced Member

  • Members
  • PipPipPip
  • 160 posts
  • OS:Windows 8
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 08 February 2015 - 02:56 PM

Added new requested function "$CBrowser Element Exist". This function will return true if the element exist and false if the element doesn't exist.
HNxPIJA.png?1


Edited by diskwizz, 08 February 2015 - 03:36 PM.


#119 rocket976

rocket976

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 574 posts
  • OS:Windows 7
  • Total Memory:More Than 9Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 08 February 2015 - 03:49 PM

Awesome Diskwizz thanks

 

 

Added new requested function "$CBrowser Element Exist". This function will return true if the element exist and false if the element doesn't exist.
HNxPIJA.png?1



#120 Pete_UK

Pete_UK

    Advanced Member

  • Members
  • PipPipPip
  • 135 posts
  • LocationUK
  • OS:Windows 7
  • Total Memory:8Gb
  • Framework:v4.0
  • License:Developer Edition

Posted 09 February 2015 - 11:06 AM

Just joined the club :)






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users