SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Nov 2003
    Location
    Hampshire, UK
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Having problems finding a script

    I need a script which will find and count all the words on a web page, and then sort those words by frequency of use and then display the list.

    The script should have an entry box where a web url can be entered, and then the script will run, producing a sorted list of the words on the page.

    The script should also have the option to exclude words less than 3 characters in length

    See a close example at http://www.squarefree.com/bookmarklets/seo.html - see word frequency script

    does anyone have this kind of script. Thanks

    Jamie.

  2. #2
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    you cant read someone elses webpage, that script uses already existing SEs
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  3. #3
    SitePoint Wizard Dangermouse's Avatar
    Join Date
    Oct 2003
    Posts
    1,024
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This could be done with php, read the website line by line, split the line up into words, add each word to an array, then count how many times it appears. Maybe repost in the php section?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •