So today's agenda, we're going to review some basic screen scraper theory, not too much, but a little bit. We're going to define what I constitute as being a difficult case, difficult site to screen scrape. I'm going to demo some screen scraper tricks. And when you look at what I'm doing, you're going to say, man, that's really, how do you manage something like that? Well, I'm actually going to show you some ideas for some large-scale deployment of this technique. And we're going to wrap things up with a heartwarming moment with captchas and puppies. Okay, so what I'm going to show you is some rather unusual ways to do screen scraping, but I think pretty effective. You're not going to walk out of here with a set of scripts you can use, but I'm hoping that you walk out of here with some ideas. What I want to do is I want to expose you to some stuff here and kind of get you thinking along some new lines, hopefully. So I'm going to talk about a couple tools, and I had some criteria for selecting what I was going to talk about today. They had to meet three criteria. Number one, had to be completely customizable, completely hackable. Should be free or open source. And number three, should be platform independent. Generally, what I do is I develop in Windows, and then I deploy either in Windows or with Ubuntu or FreeBSD. A little bit about me. I am Minneapolis-based. I've been writing bots for about 15 years. There's a picture of my city. Soon to be Las Vegas-bound, hopefully. I'll be living here in a couple months. Most of my clients are outside of the U.S., either European or Asian. I'm wearing my DC-612 shirt. Anybody here from DC-612? I'm a big supporter of local DEF CON groups. Seek them out. They're all over the place. And if you don't have one in your area, there's nothing keeping you from creating one. Real quick, back in DEF CON 5 was my first DEF CON. I was in the U.S. and I was in the U.S. and I was in the U.S. and I was in the U.S. and I was in the U.S. and I was in the U.S. and I was in the U.S. and I was in the U.S. and I was in the U.S. and I was in the U.S. and I was in the U.S. I recovered. I covered it for Computer World magazine. I think I've only missed three DEF CONs since DEF CON 5. DEF CON 10, I did an introduction to writing spiders and agents. DEF CON 11, I did one on online corporate intelligence. Two years ago, I did one on executable images. And not only do I keep getting e-mail about that one, I actually get phone calls yet regarding that particular talk. And today we're going to talk about... Screen scrapers and scraping difficult websites. Two years ago, I had a book came out, and this is my connection with No Starch. It's available in English, Italian, supposedly a Russian copy is coming out. I haven't seen it yet. The Chinese version just came out a couple months ago. So, I talk about a lot of kind of traditional techniques and strategies in my book. None of that is obsolete. Basically, the things that I do... The things that I'm showing you today are things you supplement those concepts and tools with. Okay. Why are screen scrapers important? It always amazes me. We've got, with the Internet, we've got the largest collection of information and services ever compiled. And they're all digitized. You can access them through a common format. And it just amazes me that everybody uses the exact same tool, the browser. To access it, right? Think about it. I mean, it doesn't make any sense. It's like every problem's a nail and the solution's always a hammer, right? Browsers, in order to do what they're doing and to do the wide variety of things that they do, they have to be very general purpose, and they make an awful lot of compromises. First off, they're very manual tools. And if you have people involved, you're going to get error. And it's time consuming. Which means it's also expensive to use browsers in a corporate setting. A browser can't make any decisions for you, like a web bot can. Browsers are not proactive. A browser is never going to go off and tell you when something happened online as it's happening. And what I tell people is that you will never, ever be able to excel by using the same tools that everybody else is using. So if you're doing something online, and the internet is important, and you use the exact same tools that your competitors are using, you'll never get a competitive advantage doing that. You're just going to... If you're lucky, you'll do as well as your competition. Okay, quick review of traditional screen scraping. By that I mean downloading web pages, managing cookies, handling encryption, server redirection, hiding your identity, looking stealthy, using proxies, random timing, trying to look like a person, emulating form submission, that's also a very important thing, and parsing information from the web, and then taking action on those things that you find. Now all those things are... There's a... When my book came out, I also open sourced a set of libraries for writing spiders and bots and that kind of stuff. And if you paid to get in, and if you have a CD, there's the URL where you can get those libraries. Okay, what constitutes a difficult case? I've noticed that within probably like the last two years, either by design or by accident, a lot of web pages are becoming much, much harder to scrape. And we'll look at some of those reasons. Um... If you ever get in a situation where you have to scrape, or go to a travel website, and you'll make your query, like you're looking for seats or something, and then you get one of these little pages, kind of like that, uh... little northwest thing there, where it's like, you know, waiting, processing your search. Basically what it's doing is, if you made a query, that takes a long time for it to fetch the stuff from the database, they basically give you something to look at, and the page just keeps refreshing until your data's ready, and then it presents your data. Um, this isn't really a difficult case. This is more of an annoyance. And there are ways of handling that. But it's still, it's an annoyance, for sure. Um, JavaScript can also be an annoyance. Uh, especially when JavaScript is used to to automatically modify forms after you hit the submit button. That happens very frequently. Um, and again, there's a URL with a form analyzer that's kind of handy for using on this kind of stuff. And basically what you do is you just, if there's a form that you want to analyze, you download that page, save it as, you know, to your local file, change the action to that URL, and you fill out the form, assuming that you also have all the JavaScript and everything you need, it'll just redirect you to this web page and it does this analysis of the form, and it's pretty handy when you're trying to analyze forms. The thing that's become really prevalent is, is AJAX. And, um, AJAX isn't just being used for little things anymore. Uh, it used to be used for things like, um, you know, changing a record in a database or something like that. AJAX is now being used a lot for flowing content on pages. Um, which is kind of bad web design because it basically defeats your back button, which is something you never really want to do. But like if you go to Expedia, or Twitter, or a lot of modern web pages, and if you go to the second page of search results and do a show source, it won't show anything that's on the second page because that stuff is all dynamically flowing. So that is a problem. That's a very difficult problem when you're using traditional techniques like curl to download web pages. Flash is a problem primarily when it's used in navigation. Um, there are techniques for extracting text from Flash. So that's not such a big deal. But when it's used as navigation that is a difficult thing. Same thing with dynamic HTML. Um, the other thing that's really gotten bad is some just bizarre cookie behavior. Um, you'll have and again, I'm assuming that the only reason for doing this is to keep people from scraping the pages is you will find, I've seen things like where there is JavaScript that assembles itself after it flows and then writes cookies in certain sequences. Um, I've seen a lot of images that are writing cookies. Um, so maybe they saw my talk two years ago, I don't know. Um, but just really strange cookie behavior. And I've tried sitting there with um, you know, analyzing network traffic and stuff and trying to recreate the stuff and it's really, really difficult to do. Uh, this is one of my favorite ones. Um, I've seen this from time to time where instead of having a name for a form element, you'll get like a you know, a 200 character hash that seems random. So it makes it very difficult to look for, like if you want to emulate a form looking for the uh, um you know, the form name. Yeah? It's a what? Okay. Okay. And, and you really don't have to. So, so the comment was that was made to preventage or um to prevent cross-site scripting kind of techniques. Okay. Um, for me it's just a pain. It makes it hard to write scrapers. But I'm going to show you how to defeat that. The problem is, is that with all of the browser's limitations to a large extent, we're still kind of tied to the browser. Because the browser does handle all this stuff automatically. Um, sometimes you can fool a server into giving you simpler content. For example, you can, you can um spoof your bot and tell it it's an iPhone or something. So you'll get possibly simpler content or some kind of mobile device. Um, but the real, what I found is that it became very important to find a way to A, emulate a browser and maintain full capability to do anything I wanted to do while I'm emulating a browser. So here's what I came up with. Um, I started using iMacro. How many people here use iMacros? Can I just see a show of hands? Okay, good, good, good. Um, iMacros is a browser plug-in. Uh, it's readily available. It meets all my criteria as far as being you know, free platform or independent. It solves every single difficult case that I've mentioned. Uh, when I discovered iMacros and some of these techniques, I swear it was like the gods handing me fire. It was like oh, thank you Jesus, this is wonderful. Um, because it, it is a incredibly great tool and you can hack it very successfully to do things well beyond what iMacros was ever designed to do. And we'll be demoing some of that stuff here today. Um, so iMacro solves all the difficult cases because it uses an actual browser. Okay, that's important. Um, and I'm gonna show you a few additional hacks now that uh, turn it into a serious screen scraping tool. Um, so anyway, like I said, it's, it's um, it's just an add-on for Firefox. It's also available for Internet Explorer. Uh, you just do a quick search on it, download it. It's a real quick and easy install. Uh, once it's installed, uh, you click the little iMacros thing up there, and that will bring up this side panel where you can do things like recording. So if you just hit the record button and enter a URL, for example fill in a form. This is not my real address, by the way. Um, hit the form, press save, and then stop the macro. And then you can replay it. You can, you can go in, you can pick the, uh, current macro, hit play, and uh, I'm gonna do it a quick demo here to show you how this works. So after, I'm gonna, I'm gonna explain a little bit what I'm doing here. Um, after doing a lot of talks, I, I know that it's best to keep your demos as simple as possible. So basically what I have here is I've got a copy of Apache running on my laptop. So this is, I'm not making any network connections outside of this machine. In fact, I'm not even on a network right now. So, here's what I do. I've got my URL here. I'm already at the page I wanna go to. So here's the, uh, little, here's, here's the iMacro's, um, icon. So you can turn the panel on and off. So I'm just gonna come in here, and I'm gonna click record. And I'm gonna hit the record button. And I'm gonna start filling stuff out. Where's my mouse? There we go. ... ... ... ... ... ... ... Okay, so I have filled in the form. I'm gonna hit save. You notice stuff happening in the, uh, left column? Okay, so I've got a result now. And I've got a whole bunch of stuff over here. This is the actual macro code over here. So if I hit stop, um, I can choose to save this macro if I want to. Or I can just come in here, and I can hit the, uh, the current macro. And I can come over here and say play. And it should redo what I just did. So it loaded the page. I've, I've got excessively long delays here, just for dramatic effect. This is gonna actually happen much quicker than this. ... ... Oh! What happened? ... I have absolutely no idea how that happened. Good thing I've got a canned version. ... ... ... ... ... ... ... I'll do the canned version while I'm talking here. Um, so this is, this in itself is very useful. Um, basically it's, it's almost like having active bookmarking. So not only can you bookmark a page, but you can actually go through a series of links. So, for example, if you have a page on, I don't know, some newspaper that you like. You could set this thing up to go ahead and, and click through whatever links it needs to click through to get to your page. And you could save a copy of it to read later. And you could run it on a cron. I mean, you could do all kinds of stuff like that. This, this in itself is, is somewhat limited, but, but it opens up a whole opportunity, um, whole set of opportunities. ... ... Okay, so let's look a little bit at what's going on here. Um, the real interesting part is line five, where it's basically saying, okay, go to this form, and here's the name of the element, and I want you to put this content in there. And it does the same thing on line six, seven, eight, and nine. And then on line ten, it essentially hits the save button. And, uh, that's what the macro looks like. It's, it's very, uh, very simple stuff. Um, where you don't have tags, for example, like that, that, uh, big long, um, I think it was the last one I showed you, the, the difficulties, where you've got the, the form name with the big hash, uh, you can hit x, y coordinates to find those. And what I've done is, if you have varying lengths of content, you basically do kind of like the way you would do a, uh, a sled, if you're doing a buffer overflow error. Instead of having a bunch of no-ops, you start clicking lower than where the button's gonna be, and you just keep clicking up with the width of the button until you hit it. It, it sounds stupid, but it works really well. Okay, so here's, here's the way I like to do these. I, I don't run macros the way I just showed you. What I do is I create a template file, and I'll show you a little bit more what I mean by that. Um, and then I run a PHP program that converts that template into the actual macro, and then I run the macro. So this is what my template file looks like. And here, basically all I've done is I've replaced all of the content with a variable. And I like to do something that makes the variable stand out, so it's basically, um, you know, pound underscore the name of the variable underscore pound. And it makes it very easy to do the next step, where basically I just do some substitution. So what I'll do then is I'll have my, uh, PHP program running, and I get some data from someplace, and we'll talk about where data comes from later. And I will pull in the, uh, template file, which I call, uh, protofile. And then I just do a whole bunch of string substitutions. So I substitute those variables that I put into the template with actual data, and then I write out the, uh, the macro. So this is a very typical way of the way I, I do things. Now, you can use this technique to do substitutions of field variables, URLs, you can change delay times, you can change destination files, um, basically anything you can do with a program, you can you can change. So it's actually very powerful. Uh, plus, you can also create loops, uh, you can change data sources, you can send status, status messages to a central server. There's all kinds of stuff you can do. Um, and then I launch the program from PHP, and, um, again, I don't know. Well, I guess you can see it. Um, basically, it's, you pull up Firefox, and you point to a, uh, particular uh, URL that runs your macro. Now, generally when I do this, I, I launch these usually from a cron file, or some kind of a scheduled task, and I've always had better luck doing this if I either do it from a bash program that calls the PHP, or in the case of Windows, if I have a batch file where that calls the PHP program. The other thing that's important to remember is that if you're doing this on a flavor of Unix, you want to make sure that you designate a display for this thing to, to show on, or else it's not gonna work. And you're gonna have a very long afternoon trying to figure out why your stuff isn't running. Okay, couple hints for using iMacros. I always dedicate a browser, uh, for using iMacros on a particular machine. Um, and the reason for this is that if you're doing this correctly, one of the first things you do every time you have a session is, uh, you clear out all your cookies. And that just kind of makes it difficult for normal browsing if you do that. Um, if you're gonna do this seriously, I, I recommend buying the commercial version of iMacros. They actually have their own browser. Um, for no other reason than it gives you better version control. So you don't have iMacros keeping telling you that you've got an update, or Firefox telling you you have an update. You know, it's nice to test things before they go into production, and that just kind of makes it a little more difficult. Um, the other thing is, um, iMacros is available for Internet Explorer. I don't use that because I found it to be a little flaky. The other thing is that if you're gonna be doing this, and if you're gonna be launching, uh, a macro from a cron, it would be to make sure that you've got the iMacros activated in Firefox before it comes up. Or else your macro's not gonna run, and again, you're gonna have a very long afternoon. Okay, um, a couple of things I like to do in iMacros headers. As I said, a very long timeout. If you set a timeout for 240, that's, uh, what, 240 seconds. What is that? That's like four minutes. Um, especially if you're going through Tor or something where you've got a really slow network connection, um, time is usually not of the essence, so I just let the things run. Um, I generally tell it to ignore all errors. I clear all the cookies. Um, I close all my tabs, and I'll be showing you the importance of this in just a bit. Um, you have to have the option of turning images on and off, and if you can get away with not having images displayed, it's probably to your advantage to have images turned off. Um, and again, this is one of those things you can do in the string substitution that I showed you when you're writing your macro. And again, if you, especially if you're going through Tor or some kind of a anomalizer, it's nice to turn off your images sometimes. The other thing that I do is, is this little thing. If you're extracting data, um, iMacros has a way of extracting data, and you can put it in to spreadsheets and stuff. If you don't put this little line in here, you're gonna get these annoying little pop-ups that come up every time it's extracting data. And if you have an automated system, that just doesn't work, so I always throw this line in there as well. Um, the commands for iMacro are, are really simple, and there's a nice, uh, command reference online, as well as user forms and all that kind of cool stuff. Okay, so let's look a little bit at where this data might come from. This is, um, kind of a, a typical configuration for me. Well, I have, uh, my targets, off to the left there. And then I have the machine that's running iMacros. I refer to that as my harvester. And then I'll have some kind of a central server, which is usually just a website that I've kind of customized for doing this kind of stuff. So, my harvester will go out and periodically poll the central server to ask if it has anything for it to do. And if it does, it'll tell it what to do. So that'll include which websites, to use as targets, and what data to apply to them. And then my harvester will go out and it'll download the page, and it'll save screens, it'll parse results, and then it'll send data back up to the centralized server. That, that's very typical in the way I do this kind of stuff. So, in large-scale deployment, you can have lots and lots and lots of harvesters, okay? And all of these harvesters are running asynchronously and they periodically poll the central server, asking for things to do. They go off and they hit the targets, download the pages, parse stuff off, and send the data back to the central server. Now, you can manage a whole bunch of harvesters this way. The central server can even do things like software updates for the harvesters. Basically what this is is a botnet, right? That's essentially what it is. And this configuration is really changed my thinking in terms of how to how to host a, or how, yeah, I guess how to host what the serving requirements are for screen scrapers. Because you really don't need a data center anymore for this. Because the central server can be some cheap $10 a month website that you're using, and all the harvesters can be you know, $50 10-year-old PCs that you bought on Craigslist. And if you do this well, and if they're on separate power networks and using separate connections to the internet, and, I mean, they can be in separate countries, so you've got all kinds of redundancy built in. None of the stuff that you're looking at generally is anything that isn't already available online, so you don't have security problems. No data is stored locally, so you don't have any backup issues. So hosting becomes really simple. In fact, one of the things I've been tempted to do is they make these little Linux boxes that look like wall warts. They just plug into the wall, and they've got built-in Wi-Fi. I thought about just taking those and going to some places where they have public Wi-Fi, like, you know, libraries. And you just put a little sticker on there that says, you know, security please do not remove, you know, and just plug it in, and you've got another harvester. It could happen. Okay, I'm going to show you some hacks now to iMacros that make it really effective. The first thing that I showed you is just a really straightforward iMacros kind of thing. But we need to take it beyond that, which means we need to add a little more programming power to it. Now, iMacros does have a kind of a JavaScript-like programming language, but I don't want to learn anything new. I'm just going to go on, use tools that I've got, and do something where I have complete total control. And I'm not a big fan of JavaScript to begin with, so. iMacros has some limited parsing and data extraction capability, but I haven't found any like, pre-packaged screen scrapers that do as good a job as a parsing script. Because your scripts can be written to be fault-tolerant and a lot smarter, and can actually make parsing decisions as opposed to looking for things either at static places or with static names. Um So, without what I'm going to show you right here, iMacros leaves you with a lot of the limitations that browsers have inherently. So, what would happen, here's my hack. Suppose you could execute iMacros in one browser tab, and then open another browser tab, and analyze the screen that you downloaded in the first tab. That you could write, you could parse the data, you could read and write stuff to a database, you could pass data back to iMacros, um, you could go open other webpages, you could aggregate information, you could do basically anything you want to do. That's what we're going to do here. So, what we're going to do here, I got another demo, what we're going to do is when we get to this point in the first demo, we're going to tack on some extra code that creates a second browser tab, it launches a local PHP program that's running locally on this machine in Apache, we're going to parse the webpage that we saved in the first tab, we're going to return the access code back to the first tab, and then we're going to complete our form submission. So you can see at the end here, um, there was this big access code that it gave us that we needed to plug into this other form field to complete the, uh, the ordeal. Which looks a lot like a CAPTCHA, right? This is kind of like a simplified CAPTCHA kind of application. Alright, so let's go to demo two here. ... ... ... ... Okay, so it starts like the first one. ... And it fills out the form. ... Again with dramatic delays. ... Okay, so it did that. Now what it's going to do is it's going to save a copy of this screen. It opens a second tab. It goes to that tab. It goes to a local program now that's parsing the data. It actually doesn't take this long to parse, but it's giving me some time to speak. Then it goes back to the first tab. And it pulls in the data source. And it's going to throw that number in that field. Hit save. ... ... Again, dramatic pause. And, uh, it takes us to our final screen. Okay, so you saw what happened there, right? The first tab grabbed a bunch of information. And even though that was a really simple screen, that could have been entirely Ajax created. Okay? It saves that screen, opens a second tab. Second tab runs some custom code that acts on the saved data, returns that data back to the first tab, and it completes the process. I'll often have three or four tabs going when I'm doing this kind of thing. And it's really, really powerful. Let's take a little bit, let's look a little bit at what's really going on here. Okay, so basically I tacked just a few more lines of code onto the old macro. The first one is I'm saving the screen using a iMacro save as command. Then I go ahead and I open up a second tab. I move over to that tab. And then I go to a URL. You can use any URL including local URLs. So I go to a local program that reads the parsed results. And whoops. And basically that program will read the results, send it back in a format that iMacros can read. Then I come back. I open up tab one again. I open up what they call a data source, which is basically just a standard comma separated value file. It reads that in. I'm telling it that I've only got one column of data. And I'm showing where the loop is going to exist here. And I just have one piece of data so there's really just one iteration in the loop. The content has been replaced with the value that's in column one. And then I submit the form and I'm done. So that's all there is to this. It's really, really simple to really expand the capability of iMacros. And again, you can throw any kind of page at it with any kind of JavaScript or Flash or whatever. And you can handle it. It's a thing of beauty. Using additional tabs to run local programs facilitates advanced features that are not possible with iMacros configurations. For example, you can interrupt a macro to do other things like parse data from the pages that were downloaded. You can act on the results. You can interface with local peripherals. In other words, if you want to send a fax in the middle of an iMacros session, you can do that. You can change your proxy settings if you want. You can aggregate data from multiple web sources or websites. You can also aggregate services. For example, maybe you go off and you I don't know, you for example, maybe you're looking at I'm making this up on the spot. Supposing you have a little business where you buy and sell books. So you find something you think might be a good buy on eBay. You got a bot out there looking at books on eBay. And your web bot has to make a decision as to whether or not to buy it. So maybe it goes off onto Amazon and it looks at what the sales ranking is. And if it's a good sales ranking and a low price, maybe you got a little formula you run and decide whether or not you want to buy the book. You know, that's the kind of thing you can do with this kind of power. You can also upload data to essential servers in Macro, which is very powerful. Basically anything you can do with a computer program, you can now do with iMacros. Okay, I promised you a heartwarming moment. So here it comes. Since we're talking about CAPTCHAs, Carnegie Mellon is the group, the university that came up with the whole CAPTCHA idea. And maybe you've seen this reCAPTCHA. They're being used everywhere now. They're used on Twitter. They're used on Craigslist. They're used all over the place. Carnegie Mellon figured out that as a population, we do a quarter billion CAPTCHAs every day. So what they did is they came up with this free service for people. And it's a decent CAPTCHA service. It really is. And right now they're getting 30 million uses a day from their reCAPTCHA service. The cool thing about this is that the words that they're using that you don't need to type in are actually scanned from old documents. Right now they're doing old copies of the New York Times. And what actually happens here is as people complete the CAPTCHAs, they're actually digitizing these old documents for later use. Which is kind of a clever thing to do. So right now when you do your CAPTCHA on Twitter, you're actually digitizing old copies of the New York Times is what you're doing. So it's a pretty clever idea really. It really is. They have an algorithm that they use. And they look to see how many times basically they vote. And I don't know how many votes are required to get a legitimate word. But in this case if fisherman comes up 90% of the time for the first word, it's probably fisherman. I've heard of hacks where people will you get a big group of people together and they all type in the same word until it finally starts to accept it. I don't know if that's true or not. But I've heard rumors that that works. So that's how I guess that they're doing it. I don't know for a fact. But that's my guess. And they're getting really great success. So the original documents, especially with these really old ones, they're printed out with lead type and what not. And the type isn't really great. And when they do an OCR translation, there are a lot of errors as you can see in the second example. The transcriptions look really clean. So in addition to this, the other thing that's happening right now is there are services that will solve CAPTCHAs for you. In fact they write actual APIs that you can use. Which is pretty cool. And unlike the optical character reader solutions that you may or may not have seen at DEF CON over the last couple years, these are actually solved by real people. And the way it works is, not that I would know how this works, but the way I think this works, is you take your image and you send it off to these people and most of them are based in either India, Bangladesh, Pakistan, Vietnam, and three individual people are sitting either in an office or in their home with a computer set up to do this and they'll see the image and they'll type in what they think it is. You get three results back and what you do then is you write some software that basically votes, if two match you can pretty much assume that that's what the real answer is and the accuracy is actually quite high. It's a good deal. And it costs about a half a cent to get a CAPTCHA solved. So it's a good thing. It's a good thing. If you want to find out who's doing this I would just suggest doing a real quick Google search and you'll come up with a number of organizations that do CAPTCHAs all the time. So here's how it works. The CAPTCHA is displayed on a web page and you take the image, the CAPTCHA image and you set it up in their API and you send it off to the service and it's solved not by a human but by several human beings and they send you the text back and you enter that into the CAPTCHA box and the CAPTCHA is solved. Along with some unintentional consequences. Basically it's a feel-good win-win situation for everybody because you end up with spammers paying to digitize old documents and promote literacy worldwide and it's true, it's true. And people in developing nations have jobs and my understanding is that this kind of work puts a lot of college kids through school in places like Pakistan and Vietnam. It's hard to get numbers as to how many people are doing this but the number that I heard is that it's a $20 million a year business CAPTCHA solving at like a half a cent a piece. But do responsible things with this. I don't want to get spam email from all you guys. So in conclusion we reviewed a little bit of traditional screen scraper theory we described why it's becoming more difficult to write scrapers and we saw that I macros can solve really all the difficult cases if you can do these second and third tab hacks on iMacros. It gives you absolute browser emulation capability. It gives you complete control by writing these little scripts that execute in other tabs locally on your harvester machine and we also looked at managing some large scale deployments of this kind of stuff. So I guess I'm done. We have I think we have a little time for questions and whatever doesn't get asked here I'm going to go back to the vendor area where I'll be hanging out at the NoStarch booth. The question was how fast do you get a reply from these CAPTCHA solvers? My experience is that it takes between 45 seconds and a minute. Typically. And you think about what's going on, there's an awful lot of stuff happening during that 45 seconds. So that's really not bad time. And most of the bots I run, it doesn't really matter how long it takes for them to run. Not these particular bots. Other ones are different. Yes? One of the difficult situations I run into is websites not fully displayed and things being bugged in iMac rather than it never continues with its script. Have you run into that? Yeah, the question was websites that don't finish loading, essentially, right? I have seen that. And the way I've gotten around it is to turn off images. Because what you're pro- Yeah, sometimes you've got flash that just kind of never stops loading. If you turn off images, flash goes away. A lot of times you end up waiting for banner ads from slow ad servers, too. That's what really kills me. So yeah, if you can get away with turning off images, turn off images, and that problem should go away. Really, really. Yes? The question is, have I done any multi-threading with this? No. No. And I can't think of too many times when I'd really have... The way I do multi-threading is I would do things... I've done some strange things. Generally, I do it by either adding more hardware, or I've had bots running in frames within web pages. That's another way to do multi-threading. You just basically create a whole new instance. But most things online are very procedural. And that's one of the reasons why I don't use OOP when I program, because the web is very procedural. And I'm an old-school Java programmer converted to a procedural PHP programmer. Yes? The question is, the question is, can you install iMacros through a ActiveX control? I'm sure you can. I mean, I'm sure you can. And you know, this does run on Internet Explorer, too. So, yeah, I'm sure that's possible. Anybody else? Great. You've been great. And I'll catch you in the vendors area. Thank you very much.