ikstob
Junior Member
- Nov 12, 2012
- 147
- 130
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
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
Last edited: