Skip to content

Commit d9f5568

Browse files
committed
Update generate script
1 parent 31dd5e8 commit d9f5568

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

generate_opml.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
import re
22

3-
xmlbody = """
3+
xmlbody = """<!-- Created by generate_opml.py, please don't edit manually. -->
44
<?xml version="1.0" encoding="UTF-8"?>
55
<opml version="1.0">
66
<head>
77
<title>Data science blogs</title>
88
</head>
99
<body>
1010
<outline text="Data science blogs" title="Data science blogs">
11-
1211
{items}
1312
</outline>
1413
</body>
@@ -27,4 +26,4 @@
2726
rssfeed=blog[3].strip())
2827
items += '\t\t\t{}\r\n'.format(item)
2928

30-
open('data-science.opml', 'w').write(xmlbody.format(items=items))
29+
open('data-science.opml', 'w').write(xmlbody.format(items=items[0:-2]))

0 commit comments

Comments
 (0)