Possible Duplicate:
Screen Scraping from a web page with a lot of Javascript
I just want to do tasks such as form entry and web scraping, but on sites that require javascript support. And I also need to enter forms, scrape, and so on in the same session. Ideally, I'd like a way to control a web browser from the command line. And I also want to only use Linux for all this, so I can't use .NET.
I found the webbrowser library for Python, but its capabilities look very limited. If that could interface with mechanize and BeautifulSoup, that'd be amazing. Any suggestions? Thanks!