common lisp - Trying to get a binary file -


i automate torrent downloading, attempts drakma failed. can please me out?

the code goes follows:

(with-open-file (file "/tmp/test.torrent"                   :direction :output                   :if-exists :supersede                   :if-does-not-exist :create)   (write-string     (flexi-stream:octets-to-string       (drakma:http-request "https://sukebei.nyaa.se/?page=download&tid=2265388"))     file)) 

aside typo in package name flexi-streams (plural), “works me.”

however, returns primary value sea of binary junk; personally, i'd return filename or something.

nb. useful files small enough fit memory @ go; you're reading entire remote stream, converting string, writing disc.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -