Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 495 Bytes

File metadata and controls

9 lines (5 loc) · 495 Bytes

Web-Counter

The script defines a function run() with 5 parameters: a link to webpage and four words w1, w2, w3, w4.

  • f1, f2, f3, f4 are the frequencies of w1,w2,w3,w4 in the webpage.

  • The run() function returns a set of all the words in the webpage that have a higher frequency than the lowest value among f1,f2,f3,f4 and a lower frequency than the highest value among f1,f2,f3,f4.

  • If one of the 4 words does not appear in the webpage, it assumes that its frequency is equal to zero.