* max . (Mon, 14 May 2007 20:27:15 -0600)
> does anyone know of a tutorial for finding links in a web site with python.
import formatter, \
htmllib, \
urllib
url = 'http://python.org'
htmlp = htmllib.HTMLParser(formatter.NullFormatter())
htmlp.feed(urllib.urlopen(url).read())
htm
"max ." <[EMAIL PROTECTED]> wrote
> does anyone know of a tutorial for finding links in a web site with
> python.
>
Beautifulsuop has been mentioned but its not part of standard python.
Her is an example of the standard library parser:
html = '''
Test page
Here is the first heading
A short
Hi,
import urllib
from BeautifulSoup import BeautifulSoup
page = urllib.urlopen(url) # url is the page address, if you are reading
a file in your hard drive you could use just open(filename) too, and no
needing to urllib
soup = BeautifulSoup(page)
#links = [str(link) for link in soup.findAll('
max . wrote:
> does anyone know of a tutorial for finding links in a web site with
> python.
I believe BeautifulSoup could help with this, but am uncertain.
>
> or creating files and asking ware to create a file.
There are many ways to do this. The simplest would be:
filepath = raw_input("Where wo
does anyone know of a tutorial for finding links in a web site with python.
or creating files and asking ware to create a file.
thanks
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
can send paramaters to the page I want
her to open
Best Regards
Alberto
>From: Michael Lange <[EMAIL PROTECTED]>
>To: tutor@python.org
>Subject: Re: [Tutor] HTML links from Tkinter
>Date: Fri, 15 Jul 2005 10:45:29 +0200
>
>On Fri, 15 Jul 2005 10:55:37 +1200 (NZST)
On Fri, 15 Jul 2005 10:55:37 +1200 (NZST)
[EMAIL PROTECTED] wrote:
> There's no table widget in standard Tkinter. Search in the Python Cookbook
> (on
> ActiveState) for a MultiListbox; it might do what you need.
>
> --
On the Tkinter wiki there are some links to Tkinter table widgets (I have
Quoting Alberto Troiano <[EMAIL PROTECTED]>:
> Is there any way that I can link a button to go to certain web page?
> and how can I do that?
If you want to open a web page in the user's default browser, check out the
webbrowser module in the standard library.
If you want to go to a website and s
Hey tutors
I was wondering
I'm making an telephone guide with Tkinter and I need to show a search in a
table
Like most php pages do
Is there any way that I can link a button to go to certain web page?
and how can I do that?
Another thing, I'll make a query by name and I want to show every results