We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31dd5e8 commit d9f5568Copy full SHA for d9f5568
generate_opml.py
@@ -1,14 +1,13 @@
1
import re
2
3
-xmlbody = """
+xmlbody = """<!-- Created by generate_opml.py, please don't edit manually. -->
4
<?xml version="1.0" encoding="UTF-8"?>
5
<opml version="1.0">
6
<head>
7
<title>Data science blogs</title>
8
</head>
9
<body>
10
<outline text="Data science blogs" title="Data science blogs">
11
-
12
{items}
13
</outline>
14
</body>
@@ -27,4 +26,4 @@
27
26
rssfeed=blog[3].strip())
28
items += '\t\t\t{}\r\n'.format(item)
29
30
-open('data-science.opml', 'w').write(xmlbody.format(items=items))
+open('data-science.opml', 'w').write(xmlbody.format(items=items[0:-2]))
0 commit comments