IRC channel logs
2017-11-29.log
back to list of logs
<happy_gnu[m]>(I am trying to do an IRC bot with 8sync, that will look up at a wikipedia page, when you tell the bot to, with something like "irc-bot: wikipedia gnu" and the bot will look at that wikipedia page using wikimedia API, get the xml and give me the first paragraph or something) <happy_gnu[m]>So I am trying to use http-get to get the xml as indicated by wikimedia API, (http-get some-url) works from RELP and gives me all the xml and headers, but if I try to define it, I only get headers <happy_gnu[m]>I was suggested to use (call-with values (http-get ....)) but is not good either <happy_gnu[m]>if I do (define text (http-get some-url)) I get headers and then it says port was closed <happy_gnu[m]>how can I get the xml or json outside the REPL and put it in a definiton or a file or something else ? <sirgazil>happy_gnu[m]: See section 6.13.7 Returning and Accepting Multiple Values in the manual for more info. <OrangeShark>was reading some of the emacs source code, it actually looks pretty similar to libguile <OrangeShark>ArneBab_: I bought mastering emacs on Monday and started reading it :) <sirgazil>happy_gnu[m]: The puppy just pee on my shoes :) <rekado>OrangeShark: mastering emacs is very good. I wished I had it on my first two attempts to get started with Emacs.