Skip to content

Removing the main function as part of the library #12

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
:description "Parse RSS/Atom feeds with a simple, clojure-friendly API."
:dependencies [[org.clojure/clojure "1.6.0"]
[org.jdom/jdom "2.0.2"]
[net.java.dev.rome/rome "1.0.0"]]
:main feedparser-clj.core)
[net.java.dev.rome/rome "1.0.0"]])
7 changes: 0 additions & 7 deletions src/feedparser_clj/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,3 @@
feedsource))))
([feedsource content-type]
(parse-internal (new XmlReader feedsource content-type))))

(defn -main "Show basic information for a feed, given a URL"
[feedsource]
(println "Using feed:" feedsource)
(let [myfeed (parse-feed feedsource)]
(println "Found" (count (:entries myfeed)) "entries")
(println myfeed)))