Pages

tombay

Sunday, June 26, 2011







Blog post using tombay notes




This
tutorial shows how to post to your blogger blog using the desktop
based


This will show how to post using a








Html parser:







#!/usr/bin/python


from
BeautifulSoup import BeautifulSoup


f = open("hello.html",
"r").read()


g=f


soup = BeautifulSoup(g)


b =
soup.prettify()


print b


k=open("hello.html",
"w")


k.writelines(b)


k.close()


b=open
("hello.html", "r").read()


a= str(b)


print
a





No comments:

Post a Comment

Blogger templates

About us