scsibug / feedparser-clj Goto Github PK
View Code? Open in Web Editor NEWAtom/RSS Feed Parsing for Clojure
License: Other
Atom/RSS Feed Parsing for Clojure
License: Other
Probably caused by http://github.com/technomancy/leiningen/issues#issue/71
Works fine as a standalone JAR, as well as with the Clojure REPL.
Trying to run the example command (parse-feed "http://gregheartsfield.com/atom.xml")
throws following error:
SAXParseException The element type "hr" must be terminated by the matching end-tag "". com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (ErrorHandlerWrapper.java:203)
I've verified that other feeds work as expected.
Having a -main
function in core.clj
means that I am not able to have my own -main
function where ever I :use
the feedparser.
Is this ok? I'm new to Clojure so I might be wrong about this
In order to support entry titles with HTML markup, feedparser-clj should somehow expose ROME's getTitleEx. I can't say whether it would be better to replace or to supplement the existing :title attribute, though.
For example running (parse-feed "http://engineering.tumblr.com/rss")
throws:
SAXParseException Premature end of file. com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException (ErrorHandlerWrapper.java:203)
$ curl -I http://engineering.tumblr.com/rss
HTTP/1.1 302 Found
Server: openresty
Date: Wed, 26 Jul 2017 14:01:55 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Strict-Transport-Security: max-age=15552001
Location: https://engineering.tumblr.com/rss#_=_
Would you consider publishing this library on clojars?
Installing from local source makes usage more cumbersome in deployment scenarios.
Thank you in advance.
Hi, I'm using your amazing lib in my feeds2imap.clj project. Recently one person reported issue with this feed http://ibash.org.ru/rss.xml. Looks like feed is using windows-1251 encoding (which is horrible), but still. Is there any way to make parser respect encoding specified in xml and convert everything to unicode?
Thanks!
I'm having trouble getting author information from many RSS feeds. These feeds have dc:creator tags for each feed item, but the :authors key for each parsed entry is empty. Could this be a ROME configuration issue?
Example feed: http://feeds.arstechnica.com/arstechnica/index/
Could you add support for the id/guid tag? Not all feeds include them, but when they do it's quite handy.
It would be nice to have a built-in way to access entries by id too, but all I really need is an :id key in the entry struct.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.