tony spencer » Python http://www.tonyspencer.com It's Just Links Sat, 19 Oct 2013 14:31:31 +0000 http://wordpress.org/?v=2.9.1 hourly 1 Crazy Python Crawler http://www.tonyspencer.com/2008/01/07/crazy-python-crawler/ http://www.tonyspencer.com/2008/01/07/crazy-python-crawler/#comments Mon, 07 Jan 2008 18:23:07 +0000 tony http://www.tonyspencer.com/2008/01/07/crazy-python-crawler/ Someone emailed me doubting my crawler could operate at the speeds I posted last week so here is a video I took this morning. I should have waited a few minutes after launching it before starting the video as it really starts cranking once all the threads get rocking and you can see that near the end of the video. Also notice my streaming internet radio going in and out thanks to no available bandwidth left on my 5Mbps line.
:)

You can also hear a ticking sound. That is my new 1TB drive. It makes these weird ticking noises even when its not in use. REally sounds like the arm hitting something its not supposed to hit. Hope its not defective.

Video link

]]>
http://www.tonyspencer.com/2008/01/07/crazy-python-crawler/feed/ 4
Big SEO’s with Crawlers: Lets See Your Stats http://www.tonyspencer.com/2008/01/03/big-seos-with-crawlers-lets-see-your-stats/ http://www.tonyspencer.com/2008/01/03/big-seos-with-crawlers-lets-see-your-stats/#comments Fri, 04 Jan 2008 04:07:39 +0000 tony http://www.tonyspencer.com/2008/01/03/big-seos-with-crawlers-lets-see-your-stats/ OK I’m just ecstatic with my new crawler, I think nobody but Google has one better than me, and I’m ready for a good old fashion show-and-tell. Multi-threaded programming is a bear to deal with and I’ve written several crawlers in different languages. For years I’ve been plagued with several complex problems:

* Complex code that is difficult to maintain and difficult to setup on a server
* Memory leakage
* Configurability

So the latest design is just 192 lines of Python in a single file, has a single configuration file, and takes about 5 minutes to setup on a standard Linux machine. I ran it last night and was delighted with the results:

Test Run
Tested 139,740 urls
Completed in 2 hrs, 13 mins
3.6 GB of html
Average filesize: 25.05 KB

Averaging
18.2 urls/second
1.572 million urls/day

Hardware and Environment
3 year old Dell Poweredge SC240
Pentium 4
3.5 GB of RAM
Average CPU load: 0.16
Average physical RAM used: 950 MB
OS: Ubuntu 7.10 (Gutsy Gibbon)
Filesystem: ReiserFS 3

Network connection:
Residential cable modem 5Mbps down (of which 100% is consumed when its running so likely to be faster on a fatter pipe)

Even better this code is infinitely extensible. We’ll spread it across as many machines as necessary to download the entire internet.

Big SEO’s with Crawlers… what are your stats?

]]>
http://www.tonyspencer.com/2008/01/03/big-seos-with-crawlers-lets-see-your-stats/feed/ 9