HOw to write a click bot

Blavek

Literotica Guru
Joined
Sep 21, 2003
Posts
787
Ok I have an idea to help out some of our litsters. I want to write a program that will troll through a thread and make a list of urls so our ampicers can make there index in minutes as opposed to hours. Now I know that click bots exist and they go through a webpage find the urls and click them for you. So I would like to know if anybody knows how to write one has written one or remembers seeing somewhere something similiar to this. Help me out folks thanks.

Also I know enough C and CPP or VB to write it in one of those languages. Thanks guys
 
If you know enough C, VB etc to write one then write one... Seems pretty silly to me, there is enough websites out there that'll host pictures for free that better sorts their pictures than having someone write a click program.

All you'd need to do is have it so "on mouse down" on a link it stores the link address in a text file in a nice format that people can just copy paste the text file onto the first post in their thread...

http://www.ratemyfaceadult.com is one.
 
Its a little more difficult than that. I need to be aware of the source code. OR I need to be able to intercept and decode the message after a click and determine what program its for and what its supposedly doing... Thats rough. My intention is to get the source for a webpage scan it and find the links and store them.
 
I think you're looking at a spider program if I understand you properly, if not send me a message or reply and I can help point you in the right direction:

If you're looking to make an index of all the pages on a site, it's a simple matter of having a hashtable and a document reading fucntion. Open your root document (HTTP is simple enough. just send "GET /index.htm HTTP/1.1\n\n" to a socket and then read the socket until it terminates) and read all the data into whatever your favorite language uses for strings and then search the string for 'href='.

Once you find 'href=', if the next character is a double quote, read into a temp string until you hit the next double quote (or closing/opening angle bracket for safety's sake). If the next letter is NOT a double quote, read into the string until you hit a space or closing/opening angle bracket. Check if that string in in your hashtable. If so, continue searching for your next href. If not, add it to the hashtable and if the URL is in the domain you're indexing, add it to the queue to be searched otherwise just add it to the hashtable. Or you can specify "3 link levels away from the root" but thats up to you. This keeps you from trying to index the whole internet :p. Continue until you search each document that meets your requirements completely.

It's just a really spaghetti-like text manipulation.
 
Back
Top