Does anyone know how easy it is to automate a web browser using python?

If so, can you point me in the direction of any basic examples of screen scraping and html manipulation using python

I work with firefox

LarZ

Recommended Answers

All 3 Replies

a few helpful libraries are: urllib, htmllib, urllib2, cookielib

Webbrowser is great too.

import webbrowser as WEB
WEB.open('anyfile.extension')
# are URL's accepted? probably
# or under Linux, you could;
# import os
# os.system('firefox URL')
# and then
# os.system('killall -9 firefox')
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.