You are viewing a single comment's thread from:

RE: Test Content Readability from a Text File

in #programming6 years ago

This is great, thanks!

As this version reads from a file, I guess one don't have to import html2text?

And to read the path to the file I want to test I added:

test_file = sys.argv[1]

and changed the 'with open' line to

with open(test_file, 'r') as content_file:

That way its quick and easy to just run python read.py /path/to/testfile.txt to check a file.

Quick, easy and fun way to check readability before publishing. Who knows, maybe it will improve my writing?

Coin Marketplace

STEEM 0.28
TRX 0.13
JST 0.032
BTC 61626.58
ETH 2940.28
USDT 1.00
SBD 3.66