<dominikh>
you can search github, some bots have tests
<catepillar>
you can run tests on it just like you can test any other code
postmodern has quit [Quit: Leaving]
postmodern has joined #cinch
postmodern has quit [Quit: Leaving]
v0n has joined #cinch
v0n has quit [Ping timeout: 246 seconds]
cmartin123 has quit [Quit: cmartin123]
cmartin123 has joined #cinch
cmartin123 has quit [Quit: cmartin123]
yonkeltron has left #cinch ["ERC Version 5.3 (IRC client for Emacs)"]
v0n has joined #cinch
cmartin123 has joined #cinch
v0n has quit [Ping timeout: 240 seconds]
bean__ has joined #cinch
v0n has joined #cinch
jhaals has quit [Ping timeout: 252 seconds]
aytch has quit [Remote host closed the connection]
ColdBlooder has joined #cinch
txdv has quit [Read error: Connection reset by peer]
txdv has joined #cinch
<ColdBlooder>
Hi. i found this YT parse code: http://pastebin.com/4QYkkJCS but it gives me the following error: YT.rb:24:in `youtube': undefined method `at' for nil:NilClass (NoMethodError)
<ColdBlooder>
(the error showed after commenting out the return section)
<ColdBlooder>
*rescue section
<Rennex>
ColdBlooder: result was nil, so probably doc.css() returned an empty array
<ColdBlooder>
But doc is having a buttload of content. Just quickly modified it to display the umodified doc as a result...
cmartin123 has quit [Quit: cmartin123]
<ColdBlooder>
3 minutes past and the bot it still posting the content, lol
<ColdBlooder>
*passed
<waxjar>
Youtube's markup may have changed since that code was written. It'd probably be easier to use something like youtube_it
<waxjar>
also, this question is better suited for #ruby I think
bhaak has quit [Ping timeout: 252 seconds]
bhaak has joined #cinch
bhaak has quit [Ping timeout: 255 seconds]
cmartin123 has joined #cinch
bhaak has joined #cinch
cmartin123 has quit [Quit: cmartin123]
qo is now known as qb
ColdBlooder has quit [Quit: Oink]
v0n has quit [Ping timeout: 245 seconds]
Lemtzas has quit [Ping timeout: 252 seconds]
bean__ has quit [Quit: Computer has gone to sleep.]