View Single Post
Old 02-22-2012, 08:04 PM   #8
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,709
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
How do you use SmartyPants? Do I have to write Python code to use it?
At least a little bit. It's designed to be imported as a python module.

Then your code can be as simple as:
Read in the html file
Pass the html data to the smartyPants function
Write the data it returns to a new file.

If you give me a little time, I might be able to post a pretty simple working sample (as long as you know your way around command-line stuff).
DiapDealer is offline   Reply With Quote