Click to See Complete Forum and Search --> : Searching through a site


DJRobThaMan
07-12-2003, 10:51 PM
So, I was thinking about how to write a Perl script for a search engine on a website, to search for maybe old articles and anything else I guess that you could find on the site. I wasn't sure exactly how to go about it tho. I was thinking maybe just link the text input box where the user types in the keywords for searching to a cgi that opens an array of html files (all that make up the site) and then take the keywords from the meta tags from each of the files and match them.

Do you think this is possible? (I'm almost sure it is, just not able to test it till I get access to my CPU again in a month or 2)

It seems a tad bit tedious but I can't really think of another way to do it. If anybody has any other ideas that they think could help me or just wanna post to say how much of an idiot i am cuz I'm making a simple thing really hard, please enlighten me. Thanks.


Lata

Jeff Mott
07-14-2003, 09:25 PM
It seems a tad bit tedious...That's really what computers are for. They do the jobs we don't want to do and they do them quickly.

DJRobThaMan
07-14-2003, 10:28 PM
No, when I said it would be tedious i more meant it along the lines of it would be tedious for me to spend time typing out all the keywords on each site (especially with the kind of layout i'm thinking about) to have the search engine be comprehensive.

Anyway, do you think that that's the way to go? To use the meta tags to do it?

Jeff Mott
07-15-2003, 02:14 AM
It is one option. Another option would be to scan the page's actual content instead. This would save you the trouble of creating the meta tags and keywords on all the pages and may provide for more accurate searches.