User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Python section within the Software Development category of DaniWeb, a massive community of 402,058 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,404 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Python advertiser: Programming Forums
Views: 2202 | Replies: 3
Reply
Join Date: Nov 2007
Location: Ireland
Posts: 21
Reputation: LarZ is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
LarZ LarZ is offline Offline
Newbie Poster

Question Python web browser automation

  #1  
Dec 7th, 2007
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
Last edited by LarZ : Dec 7th, 2007 at 11:52 am.
if this were a computer game i'd be googling a patch right now...
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Mar 2006
Posts: 5
Reputation: JabaPyth is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 2
JabaPyth JabaPyth is offline Offline
Newbie Poster

Re: Python web browser automation

  #2  
Dec 10th, 2007
a few helpful libraries are: urllib, htmllib, urllib2, cookielib
Reply With Quote  
Join Date: Feb 2008
Posts: 2
Reputation: mikedeezy33 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
mikedeezy33 mikedeezy33 is offline Offline
Newbie Poster

Help Re: Python web browser automation

  #3  
Mar 21st, 2008
I have not seen any code release for automating firefox with python, but I have seen one for the IE browser. Check out PAMIE for Internet Explorer: http://sourceforge.net/projects/pamie/
Reply With Quote  
Join Date: Oct 2007
Posts: 41
Reputation: 1337455 10534 is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 5
1337455 10534 1337455 10534 is offline Offline
Light Poster

Re: Python web browser automation

  #4  
Mar 21st, 2008
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')
Last edited by 1337455 10534 : Mar 21st, 2008 at 7:00 pm.
"And da wind cry moron." ~ Pearls Before Swine
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Python Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Python Forum

All times are GMT -4. The time now is 12:10 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC