create account

RE: How readable are your articles? Let's find out with Python! by makerhacks

View this thread on: hive.blogpeakd.comecency.com

Viewing a response to: @steemtux/re-makerhacks-how-readable-are-your-articles-let-s-find-out-with-python-20180224t144112501z

· @makerhacks · (edited)
Yes, it would make it easier actually, you would just read the text file into a string:

```
with open('Path/to/file', 'r') as content_file:
    test_string = content_file.read()
```
properties (22)
authormakerhacks
permlinkre-steemtux-re-makerhacks-how-readable-are-your-articles-let-s-find-out-with-python-20180224t201846774z
categorypython
json_metadata{"tags":["python"],"app":"steemit/0.1"}
created2018-02-24 20:18:45
last_update2018-02-24 20:19:00
depth2
children2
last_payout2018-03-03 20:18:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length182
author_reputation156,977,359,570,955
root_title"How readable are your articles? Let's find out with Python!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,174,340
net_rshares0
@makerhacks ·
Here is the code for this https://gist.github.com/omiq/e3722435dd9cb3b719f33f3970edda4b
properties (22)
authormakerhacks
permlinkre-makerhacks-re-steemtux-re-makerhacks-how-readable-are-your-articles-let-s-find-out-with-python-20180224t202411077z
categorypython
json_metadata{"tags":["python"],"links":["https://gist.github.com/omiq/e3722435dd9cb3b719f33f3970edda4b"],"app":"steemit/0.1"}
created2018-02-24 20:24:12
last_update2018-02-24 20:24:12
depth3
children0
last_payout2018-03-03 20:24:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length87
author_reputation156,977,359,570,955
root_title"How readable are your articles? Let's find out with Python!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,175,187
net_rshares0
@steemtux ·
Thank you for your reply, much appreciated! My python foo isn't very strong, but I'll give it a go and try out. Would be cool to have the ability to test it locally before publishing, just for fun.
👍  
properties (23)
authorsteemtux
permlinkre-makerhacks-re-steemtux-re-makerhacks-how-readable-are-your-articles-let-s-find-out-with-python-20180224t202211162z
categorypython
json_metadata{"tags":["python"],"app":"steemit/0.1"}
created2018-02-24 20:22:12
last_update2018-02-24 20:22:12
depth3
children0
last_payout2018-03-03 20:22:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length197
author_reputation170,129,148,681
root_title"How readable are your articles? Let's find out with Python!"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,174,887
net_rshares2,385,846,008
author_curate_reward""
vote details (1)