New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

initial code to parse opml #1

Merged
merged 1 commit into from Jan 2, 2018
Jump to file or symbol
Failed to load files and symbols.
+27 −0
Diff settings

Always

Just for now

View
@@ -0,0 +1,26 @@
(comment parse my opml file to print a summary)
(ns-aliases *ns*)
(ns-unalias *ns* 'zip)
(require
'[clojure.java.io :as io]
'[clojure.data.xml :as xml]
'[clojure.zip :as zip]
)
(def opml (->
"data/BeyondPodFeeds.opml"
io/file
io/reader
xml/parse
zip/xml-zip
))
(->
opml
zip/down
zip/right
zip/children
pprint
)
View
@@ -0,0 +1 @@
<?xml version='1.0' encoding='utf-8' standalone='no' ?><opml version="1.1"><head><title>BeyondPod Feeds</title><dateCreated>Mon, 01 Jan 2018 17:35:45 EST</dateCreated><dateModified>Mon, 01 Jan 2018 17:35:45 EST</dateModified></head><body><outline text="Uncategorized" /><outline text="Listen 1"><outline text="Radiolab from WNYC" xmlUrl="http://feeds.wnyc.org/radiolab" type="rss" /><outline text="NPR Programs: Wait Wait... Don't Tell Me! Podcast" xmlUrl="http://www.npr.org/rss/podcast.php?id=35" type="rss" /><outline text="Triangulation (MP3)" xmlUrl="http://feeds.twit.tv/tri" type="rss" /><outline text="PRI Echoes Interviews" xmlUrl="http://echoes.org/podcasts/feed" type="rss" /><outline text="Grammar Girl Quick and Dirty Tips for Better Writing" xmlUrl="http://www.qdnow.com/grammar.xml" type="rss" /><outline text="NPR How To Do Everything Podcast" xmlUrl="http://www.npr.org/rss/podcast.php?id=510303" type="rss" /><outline text="The Candid Frame A Photography Podcast" xmlUrl="http://thecandidframe.libsyn.com/rss" type="rss" /><outline text="Photography Tips from the Top Floor" xmlUrl="http://feeds.tipsfromthetopfloor.com/tftf" type="rss" /><outline text="All About Android" xmlUrl="http://leoville.tv/podcasts/aaa" type="rss" /><outline text="Android App Addicts" xmlUrl="http://feeds.feedburner.com/androidappaddicts" type="rss" /><outline text="APM: Garrison Keillor's The Writer's Almanac Podcast feed" xmlUrl="http://writersalmanac.publicradio.org/podcast/feed.php" type="rss" /><outline text="This Week in Photo" xmlUrl="http://feeds.pixelcorps.com/feeds/twip.xml" type="rss" /><outline text="Improve Photography" xmlUrl="http://improvephotography.com/feed/podcast/" type="rss" /><outline text="PhotoNetCast Photography podcast" xmlUrl="http://feeds.feedburner.com/Photonetcast" type="rss" /><outline text="Back to Work" xmlUrl="http://feeds.5by5.tv/b2w" type="rss" /><outline text="Martin Bailey Photography Podcast MP3" xmlUrl="http://www.martinbaileyphotography.com/podcastmp3.php" type="rss" /><outline text="Android App Arena (MP3)" xmlUrl="http://feeds.twit.tv/arena.xml" type="rss" /><outline text="LensWork - Photography and the Creative Process" xmlUrl="http://lenswork.com/podcast.xml" type="rss" /><outline text="TWiP Talks" xmlUrl="http://thisweekinphoto.com/category/interviews/feed/" type="rss" /><outline text="TWiP Street Focus" xmlUrl="http://thisweekinphoto.com/category/street-focus/feed/" type="rss" /><outline text="The Digital Photo Experience" xmlUrl="http://feeds.feedburner.com/DPExperienceEnhancedPodcast" type="rss" /><outline text="The Photo Brigade Podcast" xmlUrl="http://photobrigade.libsyn.com/rss" type="rss" /><outline text="Photo Taco: Quick photography tips" xmlUrl="http://improvephotography.com/category/taco/feed/" type="rss" /><outline text="Thoughts on Photography" xmlUrl="http://thoughtsonphotography.libsyn.com/rss" type="rss" /><outline text="99% Invisible" xmlUrl="http://feeds.99percentinvisible.org/99percentinvisible" type="rss" /><outline text="The Craft &amp; Vision Podcast" xmlUrl="http://craftandvision.libsyn.com/rss" type="rss" /><outline text="Android Police Podcast" xmlUrl="http://feeds.feedburner.com/AndroidPolicePodcast" type="rss" /><outline text="TWiP Your Itinerary" xmlUrl="http://thisweekinphoto.com/category/your-itinerary/feed/" type="rss" /><outline text="On Taking Pictures" xmlUrl="http://feeds.5by5.tv/otp" type="rss" /><outline text="Process Driven" xmlUrl="http://fadedandblurred.com/audio/process-driven/process-driven.xml" type="rss" /><outline text="Groovy Podcast" xmlUrl="http://groovypodcast.podbean.com/feed/" type="rss" /><outline text="PetaPixel Photography Podcast" xmlUrl="http://petapixel.libsyn.com/rss" type="rss" /><outline text="Functional Geekery" xmlUrl="http://www.functionalgeekery.com/feed/mp3/" type="rss" /><outline text="Jeff Curto's Camera Position" xmlUrl="http://feeds.feedburner.com/cameraposition" type="rss" /><outline text="Acquired" xmlUrl="http://www.acquired.fm/episodes?format=rss" type="rss" /><outline text="FuntimeException" xmlUrl="http://feeds.soundcloud.com/users/soundcloud:users:255437793/sounds.rss" type="rss" /><outline text="Hit The Streets with Valerie Jardin" xmlUrl="http://valeriejardinphotography.libsyn.com/rss" type="rss" /><outline text="Hourly News Summary" xmlUrl="http://www.npr.org/rss/podcast.php?id=500005" type="rss" /><outline text="Up First" xmlUrl="https://www.npr.org/rss/podcast.php?id=510318" type="rss" /></outline><outline text="Listen 2"><outline text="This Week in Tech (MP3)" xmlUrl="http://feeds.twit.tv/twit" type="rss" /><outline text="Android Central Podcast" xmlUrl="http://feeds.feedburner.com/AndroidCentralPodcast" type="rss" /><outline text="NPR: TED Radio Hour Podcast" xmlUrl="http://www.npr.org/rss/podcast.php?id=510298" type="rss" /><outline text="NPR: Car Talk Podcast" xmlUrl="http://www.npr.org/rss/podcast.php?id=510208" type="rss" /><outline text="The Moth Podcast" xmlUrl="http://feeds.feedburner.com/themothpodcast" type="rss" /><outline text="APM Marketplace All In One" xmlUrl="http://feeds.americanpublicmedia.org/marketplaceallinone" type="rss" /><outline text="FLOSS Weekly (MP3)" xmlUrl="http://feeds.twit.tv/floss" type="rss" /><outline text="The Giz Wiz (MP3)" xmlUrl="http://feeds.twit.tv/dgw" type="rss" /><outline text="This Week in Law (MP3)" xmlUrl="http://feeds.twit.tv/twil" type="rss" /><outline text="Android Buffet Podcast" xmlUrl="http://www.androidbuffet.com/feed/podcast" type="rss" /><outline text="Rationally Speaking" xmlUrl="http://nycskeptics.org/storage/feeds/rs.xml" type="rss" /><outline text="Tank Riot" xmlUrl="http://www.tankriot.com/rss.xml" type="rss" /><outline text="The Digital Story" xmlUrl="http://www.thedigitalstory.com/feed/podcast.xml" type="rss" /><outline text="The Linux Action Show! MP3" xmlUrl="http://feeds.feedburner.com/TheLinuxActionShow" type="rss" /><outline text="Linux For The Rest Of Us" xmlUrl="http://feeds.feedburner.com/linuxfortherestofus" type="rss" /><outline text="All Chariot Podcasts" xmlUrl="http://chariotsolutions.com/podcasts/show/all-shows/feed/" type="rss" /><outline text="The Cognicast - Cognitect Blog" xmlUrl="http://feeds.cognitect.com/cognicast/feed.rss" type="rss" /><outline text="Photofocus" xmlUrl="http://feeds.feedburner.com/photofocuspodcast" type="rss" /><outline text="Cory Doctorow's craphound.com » Podcast" xmlUrl="http://feeds.feedburner.com/doctorow_podcast" type="rss" /><outline text="Hanselminutes" xmlUrl="http://feeds.podtrac.com/9dPm65vdpLL1" type="rss" /><outline text="Android Developers Backstage" xmlUrl="http://feeds.feedburner.com/blogspot/AndroidDevelopersBackstage" type="rss" /><outline text="Song Exploder" xmlUrl="http://songexploder.libsyn.com/rss" type="rss" /><outline text="Note to Self" xmlUrl="http://feeds.wnyc.org/notetoself-podcast" type="rss" /><outline text="Ask Me Another" xmlUrl="http://www.npr.org/rss/podcast.php?id=510299" type="rss" /><outline text="The Changelog" xmlUrl="http://feeds.5by5.tv/changelog" type="rss" /><outline text="Welcome to Night Vale" xmlUrl="http://nightvale.libsyn.com/rss" type="rss" /><outline text="Freakonomics Radio" xmlUrl="http://feeds.feedburner.com/freakonomicsradio" type="rss" /><outline text="Alice Isn't Dead" xmlUrl="http://aliceisntdead.libsyn.com/rss" type="rss" /><outline text="WITF Smart Talk" xmlUrl="http://feeds.witf.org/witf-smarttalk-podcast" type="rss" /><outline text="StreetPX - A Photography Podcast" xmlUrl="http://streetpx.com/feed/podcast/" type="rss" /><outline text="Engineering Culture by InfoQ" xmlUrl="http://feeds.soundcloud.com/users/soundcloud:users:258266127/sounds.rss" type="rss" /><outline text="How I Built This" xmlUrl="https://www.npr.org/rss/podcast.php?id=510313" type="rss" /><outline text="The Stack Overflow Podcast" xmlUrl="http://blog.stackoverflow.com/feed/podcast/" type="rss" /><outline text="Undone" xmlUrl="http://feeds.gimletmedia.com/undoneshow" type="rss" /><outline text="Benjamen Walker's Theory of Everything" xmlUrl="http://feeds.prx.org/toe" type="rss" /><outline text="defn" xmlUrl="http://feeds.soundcloud.com/users/soundcloud:users:220484243/sounds.rss" type="rss" /><outline text="B&amp;H Photography Podcast" xmlUrl="http://bhphotopodcast.libsyn.com/rss" type="rss" /><outline text="Live from the Poundstone Institute" xmlUrl="https://www.npr.org/rss/podcast.php?id=510322" type="rss" /><outline text="No Name Photo Show" xmlUrl="http://nonamephotoshow.libsyn.com/rss" type="rss" /><outline text="On the Media" xmlUrl="http://feeds.wnyc.org/onthemedia" type="rss" /></outline><outline text="Listen 3"><outline text="This American Life" xmlUrl="http://feeds.thisamericanlife.org/talpodcast" type="rss" /><outline text="Security Now (MP3)" xmlUrl="http://feeds.twit.tv/sn" type="rss" /><outline text="Hacker Public Radio" xmlUrl="http://hackerpublicradio.org/hpr_rss.php" type="rss" /><outline text="the memory palace" xmlUrl="http://memorypalace.wm.wizzard.tv/rss" type="rss" /><outline text="Quit" xmlUrl="http://feeds.5by5.tv/quit" type="rss" /><outline text="Software Engineering Radio - The Podcast for Professional Software Developers" xmlUrl="http://feeds.feedburner.com/se-radio" type="rss" /><outline text="All Songs Considered" xmlUrl="http://www.npr.org/rss/podcast.php?id=510019&amp;uid=n1qe4e85742c986fdb81d2d38ffa0d5d53" type="rss" /><outline text="The Allusionist" xmlUrl="http://feeds.theallusionist.org/Allusionist" type="rss" /><outline text="Oh No Ross and Carrie" xmlUrl="http://feeds.feedburner.com/OhNoPodcast" type="rss" /><outline text="The Mortified Podcast" xmlUrl="http://feeds.getmortified.com/MortifiedPod" type="rss" /></outline><outline text="Music"><outline text="Goldie presents the Metalheadz podcast" xmlUrl="http://feeds.feedburner.com/Metalheadz" type="rss" /></outline><outline text="Chrono"><outline text="LambdaCast" xmlUrl="http://feeds.soundcloud.com/users/soundcloud:users:239787249/sounds.rss" type="rss" /><outline text="Conversations with People Who Hate Me" xmlUrl="http://conversationswithpeoplewhohateme.libsyn.com/rss" type="rss" /></outline></body></opml>
ProTip! Use n and p to navigate between commits in a pull request.