NamePros.Com (http://www.namepros.com/)
-   CODE (http://www.namepros.com/code/)
-   -   Simple Search Engine (http://www.namepros.com/code/242552-simple-search-engine.html)

Barrucadu 09-29-2006 02:05 PM

Simple Search Engine
 
1 Attachment(s)
Demo

What this does is search a pages contents for a keyword, if the keyword is found, the uri is added to an array, and every page on the array is scanned for links, which are then scanned for the keyword, etc.
The array returned is a user-definable size, and it includes options to limit the spider to only crawl specific domains.

It's a bit slow because it indexes all the pages on the fly, if you made it store them in a database, and then search through the database it would be so much faster, but this is just a simple bit of code for people. Also: because it can be slow, I wouldnt recommend setting the max number of pages to much more than 100, thats what the demo is set to and you can see how slow it is (over a minute and a half, lol)

ToDo:
  • robots.txt support
  • <meta> robots support
  • speed it up a bit

kleszcz 10-04-2006 09:51 PM

Yeah, I think additional caching function would make it awesome search engine script. Looking forward to stable version. :D

boebi 10-20-2006 01:16 PM

Yeah, if would have some more speed, and some better stuff (like better design,caching),
i would run it on one of my site ;)

wolvenraider 11-01-2006 08:01 AM

Originally Posted by boebi
Yeah, if would have some more speed, and some better stuff (like better design,caching),
i would run it on one of my site ;)



Actually I don't see the problem with the layout, it can be easily edited in the demo.php cpage, a simple fieldset would make it good. But that's probably my point of view as a website creator :)


All times are GMT -7. The time now is 01:27 AM.
Site Sponsors
Advertise your business at NamePros

Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0