[Tutor] Beautiful Soup, inserting a node?
Bob Tanner
tanner at real-time.com
Tue Nov 29 04:21:11 CET 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Is there a way to insert a node with Beautiful Soup?
I found away to append "things". But
<html>
<head>
<title>Blah
</title>
</head>
<body>
<h1>Foo!
</h1>
</body>
</html>
I'd like to insert a <div> tag, like this:
<html>
<head>
<title>Blah
</title>
</head>
<body>
<div id="header">
<h1>Foo!
</h1>
</div>
</body>
</html>
- --
Bob Tanner <tanner at real-time.com> | Phone : (952)943-8700
http://www.real-time.com, Minnesota, Linux | Fax : (952)943-8500
Key fingerprint = AB15 0BDF BCDE 4369 5B42 1973 7CF1 A709 2CC1 B288
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQFDi8kqfPGnCSzBsogRAtUrAKCptkOKxAYa4k1FQsQdBdT64sLoaQCfdo22
lHR84OMn37JOpzJ5x/lp+IA=
=2AJE
-----END PGP SIGNATURE-----
More information about the Tutor
mailing list