nanowrite blog post gener
script to create blog posts templates november for nano write.
Creates 30 posts. One for each day of the month.
rst files + meta
Save type as you type it to json file that has time stamp attached to it.
rst name is nanowrimo (year) day (day)
In [3]:
import os
In [4]:
for novran in range(1,31):
print ('nanowrimo15day' + str(novran))
In [22]:
for worcu in range(1,31):
print(worcu)
os.system('wc -w /home/wcmckee/Downloads/writersden/posts/nanowrimo15-day' + str(worcu) + '.rst > /home/wcmckee/nano/' + str(worcu))
In [23]:
mylisit = list()
In [ ]:
In [25]:
for worcu in range(1,31):
opfilz = open('/home/wcmckee/nano/' + str(worcu), 'r')
mylisit.append((opfilz.read()))
opfilz.close()
In [30]:
bahg = list()
In [40]:
behp = list()
In [ ]:
In [43]:
for bah in bahg:
print(bah[0:10])
behp.append(bah[0:10])
In [49]:
for beh in behp:
print(beh)
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [31]:
for myli in mylisit:
print(myli.replace(' ', ', '))
bahg.append(myli.replace(' ', ', '))
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [ ]:
In [5]:
os.system('wc -w /home/wcmckee/Downloads/writersden/posts/nanowrimo15-day*.rst')
Out[5]:
In [ ]:
In [ ]: