2014-02-27 15:35
dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
00:39
rikai has quit [Remote host closed the connection]
01:07
rikai has joined #cinch
05:36
Azure has quit [Read error: Connection reset by peer]
05:37
Azure has joined #cinch
06:57
CM-Punk has quit [Ping timeout: 240 seconds]
08:16
Azure has quit [Ping timeout: 245 seconds]
11:32
postmodern has quit [Quit: Leaving]
12:05
Zackio has quit [Ping timeout: 264 seconds]
12:10
Quintasan has left #cinch [#cinch]
12:44
Zackio has joined #cinch
13:31
Zackio has quit [Ping timeout: 264 seconds]
14:46
pingularity has joined #cinch
15:09
pingularity has quit []
16:02
<
catepillar >
Gizmokid2005: where is this bot currently running?
16:02
<
Gizmokid2005 >
catepillar: I feel daft asking, but what do you mean? As in the code running, what IRC is he running on, etc?
16:02
<
catepillar >
what server
16:02
<
catepillar >
i should have been more clear
16:03
<
Gizmokid2005 >
here, #gizmokid2005
16:03
<
Gizmokid2005 >
and no worries
16:03
<
Gizmokid2005 >
by here I clearly mean irc://irc.freenode.org/#gizmokid2005
16:03
<
catepillar >
im willing to bet that google's search results have changed
16:03
<
Gizmokid2005 >
well, that was my thought
16:03
<
catepillar >
that code is from 2010
16:04
<
Gizmokid2005 >
however, other searches work just fine still
16:04
<
Gizmokid2005 >
just cinchbot does that
16:04
<
Gizmokid2005 >
cinch was spotty at first, but that seems to work
16:04
<
catepillar >
other searches?
16:04
<
Gizmokid2005 >
and most other terms seem to function just fine
16:04
<
Gizmokid2005 >
yeah
16:04
<
catepillar >
i remember this issue
16:04
<
catepillar >
stupid google claims their page is utf-8
16:04
<
catepillar >
but it isn't always
16:05
<
catepillar >
the text blurbs they have can (and sometimes) encoded in different ways
16:05
<
catepillar >
nokogiri is very picky about it
16:06
<
catepillar >
i don't remember the work around for it
16:06
<
Gizmokid2005 >
likely when it's suggesting something with a" did you mean" message
16:07
<
Gizmokid2005 >
But that doesn't seem to be correct. It seems to be /mostly/ random, which definitely supports the "meh, utf-8 maybe" idea
16:07
<
catepillar >
no, it's likely the character encodings from the link descriptions
16:08
<
Gizmokid2005 >
Sadly, I don't see a google search api, it seems that parsing the webpage is how it should be done.
16:08
<
catepillar >
that's correct
16:08
<
catepillar >
google killed the search api so you could see their ads :P
16:08
<
Gizmokid2005 >
can't say I'm surprised...not anymore.
16:10
<
catepillar >
yea, the xpath is still all the same
16:13
<
catepillar >
i would look into that
16:13
<
Gizmokid2005 >
thanks catepillar
16:13
<
Gizmokid2005 >
would it be worth putting any of this into the example?
16:14
<
catepillar >
you could submit a PR
16:14
<
catepillar >
im pretty sure dominikh would accept something that minor
16:14
<
Gizmokid2005 >
sure. If I can wrap my head around it I'll definitely do that.
16:14
<
Gizmokid2005 >
thanks again catepillar
16:16
<
catepillar >
i figured out what character is screwing up that particular search result
16:16
<
catepillar >
there is a bit that looks like "Inherits: User. Object; Target · User;"
16:16
<
Gizmokid2005 >
I tried to give it a cursory look but didn't find anything.
16:16
<
catepillar >
in between teh target user is a weird dash
16:16
<
catepillar >
that is probalby some ISO variant
16:17
<
Gizmokid2005 >
I see that...
16:17
<
catepillar >
it comes down to nokogiri forces utf-8 on documents
16:17
<
catepillar >
which is not the proper behavior
16:18
<
Gizmokid2005 >
it looks like changing this line from this: res = Nokogiri::HTML(open(url)).at("h3.r") to this: res = Nokogiri.parse(open(url.to_s).read).at("h3.r") forces the encoding (or at least works around the issue)
16:19
<
catepillar >
hmm, good to know
16:19
<
Gizmokid2005 >
it's definitely corrected the issue in the searches I've found with that issue
16:19
<
Gizmokid2005 >
I'll submit a quick PR for it.
17:47
postmodern has joined #cinch
17:59
CM-Punk has joined #cinch
18:17
djbkd has joined #cinch
18:28
djbkd has quit [Remote host closed the connection]
18:39
Azure has joined #cinch
18:52
postmodern has quit [Quit: Leaving]
19:27
rikai has quit [Ping timeout: 240 seconds]
19:29
rikai has joined #cinch
19:37
djbkd has joined #cinch
19:40
rikai has quit [Ping timeout: 264 seconds]
19:43
dominikh has quit [Ping timeout: 240 seconds]
19:44
dominikh has joined #cinch
19:46
rikai has joined #cinch
19:53
djbkd has quit [Remote host closed the connection]
19:55
rikai has quit [Ping timeout: 240 seconds]
19:59
djbkd has joined #cinch
20:00
rikai has joined #cinch
20:10
djbkd has quit [Remote host closed the connection]
20:47
irsol_ has joined #cinch
20:52
irsol has quit [*.net *.split]
20:52
Rylee has quit [*.net *.split]
20:53
rikai has quit [Read error: Connection reset by peer]
20:55
rikai has joined #cinch
20:58
Rylee has joined #cinch
20:58
rikai has quit [Read error: Connection reset by peer]
20:59
Azure has quit [Read error: Connection reset by peer]
20:59
Azure has joined #cinch
21:00
irsol_ has quit [Changing host]
21:00
irsol_ has joined #cinch
21:00
irsol_ is now known as irsol
21:11
rikai has joined #cinch
21:11
irsol has quit [Remote host closed the connection]
21:11
irsol has joined #cinch
21:19
Azure has quit [Read error: Connection reset by peer]
21:19
Azure has joined #cinch
21:26
irsol_ has joined #cinch
21:26
catepill1r has joined #cinch
21:28
djbkd has joined #cinch
21:31
irsol has quit [*.net *.split]
21:31
Dwarf has quit [*.net *.split]
21:31
catepillar has quit [*.net *.split]
21:31
skybotalpha has quit [*.net *.split]
21:31
Netfeed has quit [*.net *.split]
21:37
catepill1r is now known as catepillar
21:39
Netfeed has joined #cinch
21:41
rikai has quit [Ping timeout: 240 seconds]
21:43
rikai has joined #cinch
21:45
irsol_ has quit [Changing host]
21:45
irsol_ has joined #cinch
21:45
irsol_ is now known as irsol
21:48
rikai has quit [Ping timeout: 245 seconds]
21:48
rikai has joined #cinch
21:54
djbkd has quit [Remote host closed the connection]
21:56
djbkd has joined #cinch
21:58
djbkd has quit [Remote host closed the connection]
22:02
djbkd has joined #cinch
22:11
djbkd has quit [Remote host closed the connection]
22:18
rikai has quit [Ping timeout: 240 seconds]
22:35
rikai has joined #cinch
23:04
Zackio has joined #cinch
23:18
djbkd has joined #cinch
23:31
djbkd has quit [Remote host closed the connection]