Hi everyone. I wrote a CSV parsing and output library for my own uses
when I didn't see another one available. Someone on #clojure suggested
it might be of general interest for clojure.contrib. If you guys
agree, I'm happy to do whatever is necessary to assist with that.
The code is at
Check out the library clj-tagsoup: https://github.com/nathell/clj-tagsoup
David
On Tue, Jul 12, 2011 at 11:10 AM, Asim Jalis asimja...@gmail.com wrote:
Is there a way to convert a large HTML document to a vector notation.
So something that converts n1 a1='v1'n2Hello/n2n1 to [:n1
{:a1 = v1}
No problem. It's a key piece of one of my own libraries, so thank
goodness it was already there when I found myself needing it.
David
On Tue, Jul 12, 2011 at 3:09 PM, Daniel Janus nath...@gmail.com wrote:
Hey, thanks for recommending my library! :-)
Best,
Daniel
--
You received this
They are not related, although clojure-csv was first. I first found out
about data.csv existing, and being added to contrib when someone asked a
question about it a few weeks ago. Given the number of users, I have no
choice but to continue maintaining and improving clojure-csv.
David
On Tue,
Thanks! Let me know if you need anything along those lines and we'll see
what we can do.
David
On Tue, Oct 4, 2011 at 2:24 PM, Laurent PETIT laurent.pe...@gmail.comwrote:
2011/10/4 David Santiago david.santi...@gmail.com:
They are not related, although clojure-csv was first. I first found
I think the basic problem is Clojure is not able to find the
clojure-csv jar file. I'm afraid I'm not quite clear enough on your
specific setup to know exactly what has gone wrong. I'm not sure where
you have this jar, or what exactly the shell scripting stuff is in
that command you're using to
I'm afraid I don't understand the question. What do you mean
positionally? When it parses the CSV file, it gives you back a
stream of rows, each row being a vector of the contents of each cell
of the CSV. If you are interested in cells at a given row/column, you
should be able to count into those
.
On Jun 15, 5:04 pm, David Santiago david.santi...@gmail.com wrote:
I'm afraid I don't understand the question. What do you mean
positionally? When it parses the CSV file, it gives you back a
stream of rows, each row being a vector of the contents of each cell
of the CSV. If you are interested
as a sequence.
(2 5 8)
to read in a .csv file, and then perform the functions on the parsed
csv file, but I am getting clojure.lang.LazySeq cannot be cast to
clojure.lang.IFn.
How do I do this properly?
Thanks.
On Jun 16, 12:20 am, David Santiago david.santi...@gmail.com wrote:
Here's a repl session
Also, you don't want to simply split the CSV into lines by looking for
newlines. CSVs can contain newlines quoted in fields, so you need to
actually parse the CSV with quoting to figure out the line breaks for
the file format and ignore the line breaks in the fields.
- David
On Fri, Jun 17,
Just wanted to stop by and update this thread with the latest
information. I just released Stencil 0.3, at
http://github.com/davidsantiago/stencil and it contains many
performance improvements. I have pushed the benchmarks I use to test
it, including an adaptation of yours, to
One library you could use is one I wrote called Clojure-CSV, which you
can find at http://github.com/davidsantiago/clojure-csv. If you have
any questions, feel free to email me or message me on github.
David
On Sun, Feb 26, 2012 at 3:33 PM, meteorfox
ctorresk8guitar@gmail.com wrote:
Hi,
Yeah, CSV files can have embedded newlines, so you can't just split it
up on linebreaks and expect it to work, you need to send them through
a parser.
parse-csv *is* lazy, so my question is, are you doing this at the
repl, exactly as you wrote? If so, it will lazily parse the file, and
then print
So, just to be clear, you thought you'd just go ahead and fork, rename, and
reannounce my project, instead of sending me an email? I'm quite open to
collaboration and try to work quickly with people on patches, such as with
Julian Eduard's recent work to make Hickory work on Clojurescript. I'm
14 matches
Mail list logo