Frank 177 Posted April 10, 2011 Report Share Posted April 10, 2011 For once and for all, I'd really love to get a handle on use of threads and sockets. Do any of you folks have a practical example of using these functions together and tracking data in the central code of these? I've been wanting to figure this out bigtime. Frank Quote Link to post Share on other sites
JohnB 255 Posted April 10, 2011 Report Share Posted April 10, 2011 Frank, this is a the basic fundamental setup for combining the two (this non-functional example assumes you are navigating from a list, but obviously is not limited to just that function) multithreading socket bot setup.ubot Hope that helps John 1 Quote Link to post Share on other sites
cntmedia 0 Posted April 10, 2011 Report Share Posted April 10, 2011 @JohnB Are sockets and threads splitting ram up equally? Or is there a performance hit with just using them? Thnkx Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted April 10, 2011 Report Share Posted April 10, 2011 Threads uses multiple windows working simultaneously Where as Sockets I believe yanks out un-needed items from the browser making it load faster and run faster then it would normally when using standard browsing Using the 2 together ends up in a work flow environment MUCH faster then normal. And can see a significant increase in speeds. It has it's limitations. But where there is limitations there is always room to improve. Quote Link to post Share on other sites
JohnB 255 Posted April 10, 2011 Report Share Posted April 10, 2011 Sockets connect directly to the site bypassing the browser altogether, hence the speed. (The only thing being processed is text...there are no images, javascript functions, etc) John I can't really say much about RAM usage. I have never had an issue with RAM and therefore don't monitor it. I'm definitely not the Clark Griswold of Botting! http://ubotstudio.com/forum/public/style_emoticons/default/biggrin.gif Quote Link to post Share on other sites
Frank 177 Posted April 19, 2011 Author Report Share Posted April 19, 2011 Thanks John for the script. I see how to use sockets, but they don't seem to do anything. I was trying to navigate to bing.com and the screen comes up blank. Is that the nature of the particular website? Frank Quote Link to post Share on other sites
CharlieTango 3 Posted April 19, 2011 Report Share Posted April 19, 2011 Thanks John for the script. I see how to use sockets, but they don't seem to do anything. I was trying to navigate to bing.com and the screen comes up blank. Is that the nature of the particular website? Frank Sockets bypass the browser. Add a "Write to Browser" function after you navigate to a url, to see what's in the socket. Quote Link to post Share on other sites
Gogetta 263 Posted April 19, 2011 Report Share Posted April 19, 2011 Sometimes even write to browser doesnt work properly. I have just finished creating an IMDB scraper that wouldn't display properly using the write to browser. It wasn't until I scraped the body and saved it to a notepad was I able to code it. Quote Link to post Share on other sites
Frank 177 Posted April 21, 2011 Author Report Share Posted April 21, 2011 Ok, I really don't understand the sockets command, lol. I'm going to start poking around here to get a better understanding. F Quote Link to post Share on other sites
Frank 177 Posted April 21, 2011 Author Report Share Posted April 21, 2011 Great tut right here: http://vimeo.com/20510513 THANKS SETH!!!! Frank Quote Link to post Share on other sites
Frank 177 Posted April 22, 2011 Author Report Share Posted April 22, 2011 It's rare that I'll repost on a thread after I've posted, but I have to say one thing... SOCKETS ARE DAMN COOL!!! After figuring out how to work with them, they are a really awesome tool. I'm able to now scrape Google at lightining speeds. And totally invisible to the user - too very cool! One question though, how can we reliably pull values from lists or variables within a thread without using temp files? Frank Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.