Created
April 19, 2024 20:45
-
-
Save adventureloop/88b983848813766b58474cffba309550 to your computer and use it in GitHub Desktop.
Create an opml file from a plain text file of urls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open("urls.txt") as f: | |
print('<opml version="2.0">') | |
print('<head>') | |
print('</head>') | |
print('<body>') | |
for l in f.readlines(): | |
l = l.strip() | |
print('<outline text="{}" type="rss" xmlUrl="{}" />'.format(l,l)) | |
print('</body>') | |
print('</opml>') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is bullshit that I had to do this