[Tutorial] Simple AddMeFast bot using Selenium

krompir, The example is just a 'starter' it is intended to give you something to start playing with. I extended myself and solved the YouTube Views captcha but haven't published this part of the code otherwise it will be fixed/updated - but it was very easy to figure out. :)

Lil Homie, it's farming thousands of points a day but I'm basically spending them as soon as I get them rather than trying to build up a stockpile so if it is found out I've already spent the points.
 
Hello bader6,

The software is completely free and open-source, but will require a little programming skill to use. The examples I've provided are written in the Java programming language which works on Windows, Mac and Linux and there are plenty of free tools to develop with.

Code: github_com/ikstob/botski

However if programming is not your things there are freely available bots here on BHW, as well as paid ones from places like socialexchangebots_com
 
Nice idea with xvfb. Can you quantify the speedup in comparison to directly starting e.g. firefox? Am also thinking about implementing that :)

What I did to speed up things: My multithreaded stuff recycles the webdriver (currently just ff): fresh drivers are needed from here to there, but not everytime. Most load initially is io and comes from generating the temporary profile.
 
I run just about everything on Linux VPS's, rather than paying to run them 24/7 I package up "jobs" and basically schedule them to start at a point in the future.

At the moment I'm using Amazon's EC2 to do that, I pick an availability zone near the servers I'm going to interact with to reduce latency and then use Spot Instances (where you bid for VPS time and pay by the hour). Right now I'm getting about $0.002-0.004/hour (0.2-0.4 cents per hour) for compute time using the 'micro' instances. They come with 613MB of RAM which is plenty to run Xvfb, Java and Firefox/Chrome.

I have also tested and use Xvfb on my home/dev server, its performance is imperceptible to running apps on a regular X server - I definitely recommend it. I package *everything* into a single executable JAR file, so from my Spot Instance booting to the job starting is around 2 minutes of setup time (all automated). Of course every time I run one of these jobs I get a fresh/random public IP address from Amazon.
 
OP, how does your bot solve the U-tube views captcha (the "select image with false position" one) ?
tnx

The selenium bot will not solve captcha. What you can do is program selenium to pause at the captcha page then call a captcha service to solve the captcha then program selenium to continue after the captcha is solved. This is the only way unless you are going to manually solve the captcha....Trust me..do not waste your time trying to look for a bot to solve capthca....either pay someone to solve the captcha like microworkers..or pay for service to solve captcha...one more thing in most cases you are hit with captcha because ip source and ip destination conflict with each other...unless service gives captcha by default.for example AOL does not have captcha but when ip destination and source conflict with each other then capture appears..
 
I'm working on a handful of bots/tools which will all be free/open-source for the community to use and improve upon. In some cases they'll do some pretty advanced things on their own, in other cases they'll give you a base to build easily build your own tools and methods. I just wanted to share a simple example of how to use Selenium to automate a mind-numbingly boring task. This example is all written in Java but you could do much the same thing using Selenium's Python or C# bindings.

Basically this example is a working AddMeFast bot ... it just logs into Facebook, logs into AddMeFast, and then sits doing the "Facebook Likes" task all day long :)

Some of the neat tricks you can do from Selenium is inject JavaScript into the current page, this makes clicking buttons etc. very easy. Check the source code below (i'm too new to post the link, but figure it out). Because its all Java code you can run it on Windows, Mac or inexpensive Linux VPS's very easily.

Source code: gist_github_com/4113207

Skill required: Intermediate

Requirements:
- Java 1.6
- Java development environment Eclipse/Netbeans
- Libraries for Selenium
Hi everybody. i know this topic is old too, but hope someone reply this. Well, recently i've found this topic and well this is great, but something would go wrong in the facebook page, it's not automate like pages, i guess this part of code
Code:
jse.executeScript( "var inputs=document.getElementsByTagName('input');for(var i=0; i<inputs.length; i++){var input=inputs[i];var value=input.getAttribute('value');if(value!=null){if(value=='Like'){input.click();break;}}}" );
is not working anymore. Hope anyone can fix it! Thanks.. sr for my bad english
 
This seems too tempting to get started with, but unfortunately, all this technical stuff seems to be beyond me! :(
 
well, im looking for any way to contact to ikstob, but he still not online yet.. i trying to fix this but seem facebook change its code... well, if is there anyone can solve this( or just give me some idea) , i would like to make a tutorial about this bot with full installation java, selenium for beginner who has just started with java. Thanks, ( sorry for my bad english)
 
Back
Top