![]() |
Simple Web Crawler in Perl
Have you ever wondered how a search engine like Google works? Well, it uses web crawlers and web spiders which “crawl” the web from one URL to all connected URLs and so on retrieving relevant data from each URL and classifying each web page according to some criteria and storing the URL and related keywords in a database.
In this article, we’ll take a look at how a web crawler actually goes on crawling the web. The algorithm can be expressed as follows -- Code:
Initialize List_URLsCode:
#!/usr/bin/perlSo now you are acquainted with how a web crawler works. This code was written on a linux machine. Thus, the use of command “curl” which is a shell command. Now you can go on to modify the code to include a maximum depth level using Depth-First search or to search for a particular keyword in all these pages. The world wide web is under your control now! ;) |
Re: Simple Web Crawler in Perl
Nominate this article for Article of the month - Aug 2010 before September 15 2010.
|
Re: Simple Web Crawler in Perl
I advise to make it a hash than array to remove repetition of same links (prevent deadlock).
|
Re: Simple Web Crawler in Perl
Vote for this article for Article of the month - Aug 2010
|
Re: Simple Web Crawler in Perl
google have a internal big process for crowning a webstie
|
Re: Simple Web Crawler in Perl
I found a website called IRobot. It is an open source web crawler.
I'm seriously thinking about downloading it & use it to automate a few things for me to make my life easier.. watching this little guy in action got the little squirrels in my head to do some exercise. I was wondering if there was such a robot or web crawler that could find articles for me if I gave it a keyword or key phrases & bring them back to me so I may use an article spinner. I robot can do this, but. Only if you know the URL. I was wondering if there was such a web crawler or spider that exists to just go out into the World Wide Web & find these articles automatically by just giving it keywords or key phrases… If it doesn't exist, would somebody here be willing to build one for me? I'm trying to make money online via affiliate programs, AdSense etc. etc. what I would like to do is submit as many articles as I can to as many article directories that I can creating some sort of broken link wheel. That way it would look a little more natural to the search engines. I would be able to pay somebody to create one for me, but. I only get so much every month. So, hopefully this person would be kind enough to take monthly payments in small increments every month until it's paid off. Anyway, thank you for taking the time to read this. Rob |
| All times are GMT +5.5. The time now is 07:51. |