Skip to content
Snippets Groups Projects
Commit dda6906e authored by mb's avatar mb
Browse files

changed the systems.py script's output, to generate a story html for each etherpad

parent adade848
No related branches found
No related tags found
No related merge requests found
......@@ -2,21 +2,22 @@ import re
import urllib
pads = [
'http://10.10.161.238/ether/p/amazon/export/txt',
'http://10.10.161.238/ether/p/polyhistorm/export/txt',
'http://10.10.161.238/ether/p/etymologiae/export/txt',
'http://10.10.161.238/ether/p/cyclopaedia/export/txt',
'http://10.10.161.238/ether/p/encyclopedia/export/txt',
'http://10.10.161.238/ether/p/great-inventions/export/txt',
'http://10.10.161.238/ether/p/taric/export/txt'
'http://10.10.161.238/ether/p/greatinventions/export/txt',
'http://10.10.161.238/ether/p/taric/export/txt',
'http://10.10.161.238/ether/p/amazon/export/txt'
]
with open("../../stories/systems.html","w+") as fileout:
for pad in pads:
for pad in pads:
lines = urllib.urlopen(pad).readlines()
padname = pad.replace('http://10.10.161.238/ether/p/','')
padname = padname.replace('/export/txt','')
lines = urllib.urlopen(pad).readlines()
padname = pad.replace('http://10.10.161.238/ether/p/','')
padname = padname.replace('/export/txt','')
with open("../../stories/system-"+padname+".html","w+") as fileout:
fileout.write('<div id="main">')
......@@ -43,6 +44,6 @@ with open("../../stories/systems.html","w+") as fileout:
</div>
""")
print '*output of systems.html is written*'
print '*output of system-'+padname+'.html is written*'
fileout.close()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment