I'm looking for a way on Linux to write a script that scrapes the text from a page which is generated by Javascript (specifically etherpad e.g. http://www.board.net). Ideally I'd like to use an existing tool but I haven't found a suitable one (e.g. lynx, but it doesn't support javascript, or Selenium, but it runs in a browser). Suggestions welcome.
If there's nothing suitable (which would seem surprising for such a simple need), maybe I can write something myself in Python. What useful Python classes exist for something like this?