Apologies for my first post being a question but I've lurked around here a lot though : ) I'm looking to create a web bot that will help me register at sites. It will be very simple and it will not automate anything over many sites running on the same platform. I'm simply looking to create seperate instructions for each and every website that I've chosen to add to the bot. To begin with it will just go to a registration url and fill in username from some variable and password and something I've told it to fill out so I can run the bot again and again to create a new account. It will also have to stop somewhere to let me fill in stuff it can't fill out (captchas maybe). So with what would I create this. And I would make it run through my browser right? I know no programing but I'd be willing to learn PHP or C++. I know completely different things but would either of those work? Also what will the bot need to identify the username spots, password forms, ect? I could do something simple like make it run through the browser and make it tap tab X many times to get to the field and then fill it. So completely manual for each website then of course. Any suggestions would be helpful for what I should use. Thank you!
Dude that's already very helpful thanks! It gets me on track because I'm so clueless. So with PHP where do you run it from? Do you have it on some server? I need to be able to change ip's but only between runs. You know so when I'm creating an account at the same site again they won't notice. Probably with a proxy so I'm thinking it would be easiest to run it through my browser.
If you have no programming knowledge you can make some simple stuff with iMacros. If you do have programming knowledge, then the scripting edition of iMacros is really powerful. I heard that uBot is pretty good, but it seems quite unknown and unsupported. I've never used it though, so can't say if it's good or bad.
iMacros seems good so I might check it out. I wouldn't really say I have programming knowledge but I had tried some PHP stuff like creating simple password forms on web pages. But since I only learned that I am now confused how you make the same language fill out other peoples forms across the web. And where does it run from?
ok, here's some code for you to post to a form on a site to get you started PHP: <?curl_post('http://examplesitewithform','name=james&email=emailaddress');function curl_post($URL,$poststring) {$ch=curl_init();curl_setopt ($ch, CURLOPT_URL,$URL);curl_setopt ($ch, CURLOPT_POSTFIELDS, $poststring);curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 25);curl_setopt($ch, CURLOPT_TIMEOUT, 25);$data=curl_exec ($ch);flush(); curl_close($ch);if ($data) return $data;else return false;}?>
I also use php because linux hosting is cheap and fast. Also I make the script to run on multiple machines in the same time
Instead of running scripts on multiple machines, use threads and make single script control multiple threads. To OP: Learn C#. It's fairly simple and you can get Visual C#, which allows you to easily create GUI. You can make sick bots with it. PHP might be easier for you to understand and get started in coding. I would go def with any of the C's on what you're doing. I made recently a similar bot, that creates accounts on popular forum platforms using php (watch out BHW ), but I'm going to rewrite it as an application, php is not really the right kind of tool to make 'heavy' bots with. To find a 'button', 'textbox' or any controls/tags/values on a page, you will need to learn Regular Expressions. Also you will need some kind of http sniffer to see what information is being sent between browser/server. HttpFox is pretty good (FF plugin). If you literally want to make a bot, that fills up forms and clicks links in browser - WatIN is a library that lets you do exactly that! But no multi-threading obviously, since it actually controlling your browser.
I vote PHP / Curl. Great for automation, lots of examples out there. Easy proxy handling. You can run it from a server or your PC. When you're running it from your PC, you have the option of running it using the apache webserver running on your PC (ie using web pages served from your own PC to control your scripts) or from the command line (ie the windows command prompt, which is better for real automation).
I'll throw something different into the pot - Perl with Mechanize, nice and easy. Not a lot of difference between that and PHP / CURL so pick what you are more comfortable with (PHP will probably be easier in the long run) At the moment I am getting to grips with Ubot which is easy enough to bash out a few easy bots, if its a larger project things get a bit tougher but I'll get there
I would argue that there isn't much new stuff being written in Perl, whereas experience with PHP will apply to any number of web development things a person might get in to in the near future. If I wasn't going to do it with PHP I'd do it with Python (which I've been learning lately using Open Courseware), because it's a very clean and fully featured language with a great standard library for scraping, parsing and spamming.
Dynamically spawn multiple Webbrowser controls, then associate each one with a Watin instance. Bam, multithreading Pretty hard to figure out tho, lol
if u lack coding knowledge go for imacros. for simple registering etc its going to be a piece of cake to use it. its quite powerful and once u know any other language u can use it with imacros.
I would advise zennoposter, theres tonnes of stuff you can do with it and it's extremely easy to teach to signup to web 2.0 sites etc, I've already used it to create a twitter bot with auto posting, following on keywords it researches. The cheapest version is only $50! Only downside is lack of documentation and videos but you should be able to work it out., either way it's easier than learning a whole new language