I have a file containing web site names. I wish to create a program that will search each web site that I have listed in my file for a keyword. Does anyone have any idea how to do this?
You do not create a 'program'. You will be using a server side language and search through an array / dataset / data base. There are a few different search algorythms (binary search is the first that comes to mind), then you can also sort the data by the number of times a keyword appears in a block of text using regex etc. But you are going to need a server side language ot do all of this. You can search the content of each website as I descibed above, you just have to get the source of the site through the server, which is not super hard. You can also just use a google site search thingy.
Originally posted by PeOfEo You can search the content of each website as I descibed above, you just have to get the source of the site through the server, which is not super hard. You can also just use a google site search thingy.
How do I read the source of a website and the source of all the web pages associated with that website? I have no idea.
well with my server side language of choice, asp.net, I would either just read the file (assumeing it is a local file) like a text file, or I would use system.net.sockets to get the remote source. http://articles.************.com/p/a..._2/ai_95540470 is actually on parsing remote documents. You could also play with some xml with the scripting
That is a program.. Anything which tells a computer to perform certain operations is a program.
Regards,
Andrew Buntine.
For our purposes we should make a distinction. Program should be kept to executable application. Because the term application can be used for a website or for an executable, and now program too? Please, lets make a distinction... you are going to confuse me if we dont
Bookmarks