http://subtech.g.hatena.ne.jp/miyagawa/20060509/1147150987
ããã¯ãããã社å
ã® (Internetã«åºããªã) Feed ã LivedoorReader ã§ããããèªããã
Greasemonkey ãªãã§ä½¿ãããã«ãããªæ段ãè¬ãã¦ã¿ãã
è¦ã¯ http://reader.livedoor.com/api/(all|subs|touch_all|unread)/.* ã¸ã®ãªã¯ã¨ã¹ãã横åãã㦠Catalystãµã¼ãã«åãã¦ããã°ããããã§ããããã Proxy ãä½ãã¬ã·ãã
Apache-1.3 + mod_rewrite + mod_proxy
(Apache-2.x ã§ãåã?)
LoadModule proxy_module libexec/libproxy.so LoadModule rewrite_module libexec/mod_rewrite.so # mod_proxy ãå ã« load ããã㨠ProxyRequests on NoCache * RewriteEngine on RewriteRule ^proxy:http://reader\.livedoor\.com/(api/(all|subs|touch_all|unread).*) http://localhost:3000/$1 [P]
ãã® Apache ããã©ã¦ã¶ã® Proxy ã«æå®ãã¦ããã
Squid
URL æ¸ãæãã«ä»»æã®ããã°ã©ã (æ¨æºå ¥åããURLãåãåã£ã¦æ¸ãæãã¦æ¨æºåºåã«è¿ã) ãæå®ã§ããã®ã§
#!/usr/bin/perl $| = 1; while(<>){ s%http://reader\.livedoor\.com/(api/(all|subs|touch_all|unread).*)%http://localhost:3000/$1%; print; }
ãããªã®ãæ¸ã㦠redirect_program ã§ä½¿ãã°OKã