Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save adventureloop/88b983848813766b58474cffba309550 to your computer and use it in GitHub Desktop.
Save adventureloop/88b983848813766b58474cffba309550 to your computer and use it in GitHub Desktop.
Create an opml file from a plain text file of urls
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>')
@adventureloop
Copy link
Author

It is bullshit that I had to do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment