R.A. Epigonos et al.

[TwitterIRCGateway] searchでの検索先はpcod.no-ip.org

大事なのは公式の検索サイトsearch.twitter.comを使っていないという点。使っているのはサードパーティのpcod.no-ip.org。topicにキーワードを入れておくと検索してくれるはずだけど、これが上手く動かなかった。原因を色々追究しているうちにsearchで検索した場合の挙動を発見。関連あるかもしれないのでmemoしておく。

ngrepを仕込んだ状態で適当なキーワードで検索。118.243.229.208からのレスポンスが得られる。

# ngrep -d ppp0 -W byline ***************
interface: ppp0 (**************/255.255.255.255)
match: ***************
#################
T 118.243.229.208:80 -> **************:***** [AP]
HTTP/1.1 200 OK.
Date: *****************************.
Server: Apache/2.2.12 (Ubuntu).
Vary: Accept-Encoding.
Keep-Alive: timeout=15, max=50.
Connection: Keep-Alive.
Transfer-Encoding: chunked.
Content-Type: text/html; charset=utf-8.
.
1c0.
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>twitter....../ja/***************</title><link href="http://pcod.no-ip.org/yats/search?query=***************&lang=ja" rel="alternate"></link><link href="http://pcod.no-ip.org/yats/search?query=%s&lang=ja&rss" rel="self"></link><id>http://pcod.no-ip.org/yats/search?query=***************&lang=ja</id><updated>********************</updated></feed>.

再度searchして、118.243.229.208とのやり取りをngrepで表示させる。英字しか使ってないのになぜかURLエンコードされて送られる。デコードしたら正しく戻ったけどね。HTTP/1.1なので、Hostを見れば検索ホストがわかる。ここではpcod.no-ip.org。

# ngrep -d ppp0 -W byline host 118.243.229.208
interface: ppp0 (**************/255.255.255.255)
filter: (ip or ip6) and ( host 118.243.229.208 )
#####
T **************:***** -> 118.243.229.208:80 [AP]
GET /yats/search?rss&query=********************************************* HTTP/1.1.
Accept: application/xml, text/xml.
User-Agent: TwitterIrcGateway/2.0.
Host: pcod.no-ip.org.
.

##
T 118.243.229.208:80 -> **************:***** [AP]
HTTP/1.1 200 OK.
Date: *****************************.
Server: Apache/2.2.12 (Ubuntu).
Vary: Accept-Encoding.
Transfer-Encoding: chunked.
Content-Type: text/html; charset=utf-8.
.
1c0.
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>twitter....../ja/***************</title><link href="http://pcod.no-ip.org/yats/search?query=***************&lang=ja" rel="alternate"></link><link href="http://pcod.no-ip.org/yats/search?query=%s&lang=ja&rss" rel="self"></link><id>http://pcod.no-ip.org/yats/search?query=***************&lang=ja</id><updated>********************</updated></feed>.

ダメ押しで検索してみると、本家のソースページが引っかかる。しかし、結局topic検索が上手く出来ないのは変わらず。。。

リファレンス

  1. /TwitterIrcGateway/branches/hosting/TwitterIrcGatewayCore/AddIns/Console/Contexts/RootContext.cs – Misuzilla.Repository.Etcetera – Trac
  2. site:trac.misuzilla.org pcod.no-ip.org - Google 検索
  3. Ngrep - Network Grep - コンピュータ系blog
  4. ngrep - Google 検索

ソーシャルブックマーク

  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us

ChangeLog

  1. Posted: 2009-05-11T23:02:22+09:00
  2. Modified: 2009-05-11T23:02:22+09:00
  3. Generated: 2023-08-27T23:09:13+09:00