html parser etc help
Xah Lee
xah at xahlee.org
Sat Jun 15 04:03:33 EDT 2002
Thanks Jeremy Yallop for help. Some follow up questions...
in the following code:
import os
def visit(arg, dirname, fnames):
for file in fnames:
if file.endswith('.html'):
print file
print arg
os.path.walk('/export/home/xah/unixnotes/',visit,'---')
* in the os.path.walk, what's the third argument for?
* what if i want to print the full path?
* what if i want to print a particular type of file, for example only
directories.
* how to find out about a particular function or method, or what
modules are available?
in perl i'd do "perldoc -tf functionname" to find out about a
particular function. Or
, or in Java there's the API doc.
http://java.sun.com/j2se/1.3/docs/api/index.html
Thanks.
Xah
xah at xahlee.org
http://xahlee.org/PageTwo_dir/more.html
More information about the Python-list
mailing list