> You can click the "Press me" button as many times as you wish; it > retrieves and displays/prints the same HTML file on each click.
Hi, Thanks for your reply. I forgot to mention that my first solution created a headless browser, i.e. it didn't create any GUI. I would like to keep it that way, thus I could scrape (AJAX-powered) webpages in batch mode without any user interaction. One workaround is to put the scraper in a separate file and call it as an external command. But I'd like a more elegant solution that that. Laszlo -- http://mail.python.org/mailman/listinfo/python-list