Agreed, this more of a "how to scrape data from sites you can log into". It's not even a very useful example at that.
For anyone who wants to scrape sites that require login I'd recomend Python with Twill. That lets you do the whole thing with ease.
For anyone who wants to scrape sites that require login I'd recomend Python with Twill. That lets you do the whole thing with ease.
If you needed Javascript you could use one of the Firefox scripting bridges (Selenium or MozRepl).