Podcast Receiver in newLISP ?

Started by didi, May 22, 2007, 09:39:00 AM

Previous topic - Next topic

didi

Actually i use 'Juice'  which is very slow and  has some flaws.

A small and complete 'opensource' podcast-receiver would be better .  

The task is to look in a  RSS-Feed after new mp3-files and then download it ( i am no expert ) .



Has someone already made a  Podcast-Receiver in newLISP ?



PS:

As a news-reader i am using Ampheta-Desk , not bad , but if possible why not a newLISP-version  ?

didi

#1
OK - obviously  there is no podcast-receiver in newLISP, yet .



In the meantime i found, that an rss-feed is a simple xml file .

The core in newLISP is therefore very simple :



   ( get-url  feed )

   ..

   ( xml-parse urldata )

   ..

   ( flat parsed-urldata)

   ..

   ( mfind "mp3" parsed-urldata )  

   ..

   ( slice  found-mp3s -5 5 )

 

until now this works well with all  rss- and xml-feeds  and it delivers  up to 5 of the latest  mp3-podcasts . Now i have to program the download of mp3's

..ok, and the other 95%  of the rest like comfortable settings etc ... hopefully soon with the new GUI in newLISP  ;-)

newdep

#2
There is..but you need to glue it together..

there is a rss feeder and mp3 grabber on newlisp.nodep.nl..

glue it together and you have an Ipod collector.. ;-)
-- (define? (Cornflakes))

didi

#3
OK - thanks ,  i'll try to glue it  :-)

cormullion

#4
hey didi - just for info, i wrote a bit about rss and stuff in "introduction to newlisp" (http://newlisp.org/introduction-to-newlisp.pdf">//http://newlisp.org/introduction-to-newlisp.pdf).



Always looking for feedback and mistakes to fix! ;-)

didi

#5
Hey cormullion, thanks for the hint ,  i've just printed out the 149 pages - so far i read only what i needed , now i think it's time to read it from the beginning  - and i think it's the best introduction to newLISP and worth to be printed - the artwork on the frontpage is super, too !





@ newdep

I think you mean the first application the "stream.lsp" on  http://www.nodep.nl">www.nodep.nl  and the "rss-slurp" .

Until now i wasn't able to download the mp3 , because i couldn't find out how to use the  net-connect command with an other url than the example given , and what to send after the "GET / HTTP/1.0...." command .

You see this is my first net-application ... maybe time for me to read some basics about filetransfer .

cormullion

#6
good luck! let me know if you find anything to fix..



By the way, if you copy and paste the code examples, change the single quotes to plain single quotes. (I spent many hours trying to get the single quotes coded correctly, with no success... :-( )



The cover art work is based on the cool parenthetical dragonfly designed by Brian Grayless (http://fudnik.com">http://fudnik.com).

didi

#7
Thanks cormullion :-)


Quote( set 'mtarget "http://www.itconversations.com/audio/download/itconversations-188.mp3">http://www.itconversations.com/audio/do ... ns-188.mp3">http://www.itconversations.com/audio/download/itconversations-188.mp3" )



( time ( append-file "test.mp3" ( get-url mtarget )))


Ok - the simplest way to download mp3's i found is the 'get-url' command like this example.



For me it's quite good  ... the more elegant way would be the 'net-receive' command , but i have no idea how to come from the target "http://..." address  to the ip-adress and the port  which is used for the  'net-connect' .