Web Query Example

$ python webQueries.py
URL: http://www.cs.swarthmore.edu/~soni
Has 415 unique words

URL: http://www.cs.swarthmore.edu/~richardw
Has 395 unique words

URL: http://www.cs.swarthmore.edu/~kwebb
Has 198 unique words

URL: http://www.cs.swarthmore.edu/~knerr
Has 37 unique words

URL: http://www.cs.swarthmore.edu/~meeden
Has 396 unique words

URL: http://www.cs.swarthmore.edu/~brody
Has 113 unique words

Enter a query (or q to quit): computer science
Relevance: 20 http://www.cs.swarthmore.edu/~richardw
Relevance: 17 http://www.cs.swarthmore.edu/~kwebb
Relevance: 16 http://www.cs.swarthmore.edu/~meeden
Relevance: 15 http://www.cs.swarthmore.edu/~brody
Relevance: 14 http://www.cs.swarthmore.edu/~soni
Relevance:  3 http://www.cs.swarthmore.edu/~knerr
--------------------------------------------------
Enter a query (or q to quit): swarthmore college
Relevance:  9 http://www.cs.swarthmore.edu/~brody
Relevance:  8 http://www.cs.swarthmore.edu/~richardw
Relevance:  8 http://www.cs.swarthmore.edu/~kwebb
Relevance:  7 http://www.cs.swarthmore.edu/~meeden
Relevance:  5 http://www.cs.swarthmore.edu/~soni
Relevance:  2 http://www.cs.swarthmore.edu/~knerr
--------------------------------------------------
Enter a query (or q to quit): communication complexity
Relevance:  5 http://www.cs.swarthmore.edu/~brody
Relevance:  1 http://www.cs.swarthmore.edu/~kwebb
--------------------------------------------------
Enter a query (or q to quit): artificial intelligence
Relevance:  8 http://www.cs.swarthmore.edu/~meeden
--------------------------------------------------
Enter a query (or q to quit): bioinformatics
Relevance: 11 http://www.cs.swarthmore.edu/~soni
--------------------------------------------------
Enter a query (or q to quit): natural language processing
Relevance: 17 http://www.cs.swarthmore.edu/~richardw
Relevance:  1 http://www.cs.swarthmore.edu/~kwebb
--------------------------------------------------
Enter a query (or q to quit): cs21
Relevance:  2 http://www.cs.swarthmore.edu/~meeden
Relevance:  1 http://www.cs.swarthmore.edu/~knerr
Relevance:  1 http://www.cs.swarthmore.edu/~brody
--------------------------------------------------
Enter a query (or q to quit): ultimate frisbee
No relevant page found
--------------------------------------------------
Enter a query (or q to quit): system administration
Relevance:  2 http://www.cs.swarthmore.edu/~kwebb
Relevance:  1 http://www.cs.swarthmore.edu/~richardw
Relevance:  1 http://www.cs.swarthmore.edu/~knerr
--------------------------------------------------
Enter a query (or q to quit): q
Return to Lab 08