Skip to content

Instantly share code, notes, and snippets.

@duanebester
Created October 27, 2021 20:54
Show Gist options
  • Save duanebester/cdab08c06b8e47a0f789027e32437728 to your computer and use it in GitHub Desktop.
Save duanebester/cdab08c06b8e47a0f789027e32437728 to your computer and use it in GitHub Desktop.
Web Scraping Parse sitemap.xml
(require '[clojure.xml :as xml])
(defn parse-xml [url]
(try (xml/parse url)
(catch Exception e
(println
(str "Caught Exception parsing xml: " (.getMessage e))))))
(parse-xml "https://bellroy.com/sitemap.xml")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment