python-ox/README

19 lines
345 B
Text
Raw Normal View History

2008-04-27 16:54:37 +00:00
python-oxutils some tools to build tools
Depends:
python2.5
python-chardet (http://chardet.feedparser.org/)
BitTornado(optional)
Usage:
import oxutils
data = oxutils.cache.readUrl('http:/...')
text = oxutils.stripTags(data)
oxutils.normalizeNewlines(text)
oxutils.formatBytes(len(data))
oxutils.formatBytes(1234567890)
'1.15 GB'