top | item 4957522

Ask HN: Sample Lisp code

2 points| lispertoascheme | 13 years ago | reply

Lisp student here.

When learning, I like deconstructing small standalone code samples that are actually useful.

Here's the sample I'm looking for in Lisp or Scheme: a youtube downloader

It's been done in Python, Lua, Perl, Gawk, etc. I've done one myself using sed and netcat.

Has it been done in Lisp or Scheme dialect? I like to use the LUSH interpreter but am open to any Lisp or Scheme.

2 comments

order
[+] ankurdhama|13 years ago|reply
Do you have Lisp code that can download data from a URL?
[+] lispertoascheme|13 years ago|reply
One option is Common Lisp. It has a raw sockets library. The lib ("module") comes with a document that has some examples, including how to make HTTP requests.