Skip to content

Instantly share code, notes, and snippets.

@ckunte
Last active May 4, 2023 23:50
Show Gist options
  • Save ckunte/6549435 to your computer and use it in GitHub Desktop.
Save ckunte/6549435 to your computer and use it in GitHub Desktop.
A reading list.
#!/usr/bin/env python
# encoding: utf-8
"""
eurl.py extracts all URLs (one per line) from the OPML file or URL. [I needed
this script produce a list of feed URLs so I could manually enter these RSS
feeds in the new Reeder 2 for iOS.]
Acknowledgement: Special thanks to Kurt McKee ( http://kurtmckee.org/ ) for the
script: http://stackoverflow.com/a/7782782
"""
import listparser as lp
def main():
d = lp.parse('http://gist.github.com/ckunte/6549435/raw/fd18f5c1254b576c766c997f754bb0e7648d1065/subscriptions.opml')
f = open('/Users/ckunte/Desktop/feedlist.txt', 'w')
for i in d.feeds:
f.write(i.url + '\n')
f.close()
pass
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment