Last active
May 4, 2023 23:50
-
-
Save ckunte/6549435 to your computer and use it in GitHub Desktop.
A reading list.
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
#!/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