27/06/2009
OS3.0でタンブラー系のアプリが死亡してるのとか見て思ったんだけど、スクレイピング系のアプリはスクレイピングパートを自前のサーバーに置いて、そこを経由するほうがいいのかなぁと思った。
スクレイピングのアルゴリズムをアプリの中にハードコードしてしまうと、HTMLの仕様が変わってしまったときに、迅速な対応ができない。修正版をAppleに提出しても1〜2週間かかってしまい、その間アプリは動くなってしまうので。
あとはそういうロジック部分をサーバに出しとくと、iPhone, Android, BlackBerryとかでクロスなアプリを作りやすいし、危機対応もしやすいのかなぁと思う。
„fladdict » スクレイピングはサーバー処理が安全かなぁ
内部実装の話なので特に外に向けてアピールするつもりはなかったのですが、tumblr gear r.1.2.0 でまさにその実装をしていたところなので、ちょっとびっくりしました。
fladdictさんの指摘と違うことをやろうとしているのは、スクレイピングの処理自体をサーバー側に乗せてしまうとスケールしないと思ったので、スクレイピングのエンジンをクライアント側に持ち、クライアントはメタデータをサーバー側から取ってきてスクレイピングする、という実装にしているところ。
すでにスクレイピング処理に使うメタデータのほとんどはサーバー側に配置できているのですが、もっと処理の抽象化やパラメーター化が必要だなあと思っています。
という実験中。
(via honishi) (via yaruo) (via gkojax) (via polog)
iviewも元々スクレイピングのためのメタデータ共有をしたい、というところから始まったもののひとつなのでスクレイプのルールは外から持ってきて実行を中でやろうと思っていましたがiPhone SDK Agreementをよく読んでたら3.3.2に
An Application may not itself install or launch other executable code by any means, including without limitation through the use of a plug-in architecture, calling other frameworks, other APIs or otherwise. No interpreted code may be downloaded or used in an Application except for code that is interpreted and run by Apple’s Documented APIs and built-in interpreter(s).
というのがあって、もともと組み込まれているインタプリタを除いて、ダウンロードしたコードを解釈し実行するこことがNGだって書いてあるのを見つけてApple的にFlashがNGなのと同じ古い理由でweb2.0/radical trustがspoilされて本当にむかつくけどとりあえずレビュー通らなかったら作っただけむだになるのでひよってやめました。
どうせならそのメタデータの仕様とデータを公開/共有しませんか。誰かがメンテしてくれるようになりますよ。
(via ku)
そういう理由でレビューに通らないことがあるんですね。知りませんでした。これでレビュー NG だったら悲しいですね。
それで、メタデータの公開はぜひしたいと思います。(見る人には見ればわかる)こんな(汚い)ものを公開していいのなら、、という前提付きなのですが。。正直、正規表現の固まりです。xml, dom, xpath あたりでもっとスマートにできるのではないかと思いましたが、評価する時間がなく既存の実装を延長する形でこの実装になってしまいました。この方が柔軟に切り貼り(スクレイピング)できるだろうということで自分で自分に言い聞かせています。
今度是非いろいろ相談に乗っていただければ助かります。
# というところで、公式 tumblr アプリがどんどん便利になってきているので、tumblr gear は早晩お役御免になる日が来ると思っており、現在の開発モチベーションは「技術的興味」がメインとなっていることも付け加えさせていただきます。
(via honishi)
たぶんAppStoreの代替として機能する物はだめというのが3.3.2の意図だと思うので黙ってれば普通に通ると思います。正規表現でも何でも公開されていればきっとだれかがなんとかしてくれますよ!
(via ku)
Quote posted at 19:41
-
pngnq
reblogged this from
otsune
-
areha
reblogged this from
kanal
-
tk78
reblogged this from
kanal
-
morygonzalez
reblogged this from
kanal
-
kanal
reblogged this from
ku
-
tsukamoto
reblogged this from
ku
-
yksk
reblogged this from
ku
-
macotoi
reblogged this from
ku
-
savonneries
reblogged this from
slicks
-
oosuka
reblogged this from
ku
-
seashore
reblogged this from
otsune
-
tfujiki
reblogged this from
ku
-
polog
reblogged this from
ku
-
wackey liked this
-
yager
reblogged this from
ku
-
slicks
reblogged this from
ku
-
tdrk
reblogged this from
ku
-
tanukian
reblogged this from
ku
-
manamanmana
reblogged this from
ku
-
comsmet
reblogged this from
ak47
-
ku
reblogged this from
honishi
-
tumbtumb
reblogged this from
omasayan
-
stomita
reblogged this from
ku
-
aya18
reblogged this from
ichimonji
-
so-ta liked this
-
macotoi
reblogged this from
honishi
-
sugizou
reblogged this from
reretlet
-
macotoi
reblogged this from
otsune
-
reretlet
reblogged this from
markie
-
gorouzaemon
reblogged this from
syoichi
-
lattata
reblogged this from
syoichi
-
markie
reblogged this from
syoichi
-
syoichi
reblogged this from
ku
-
gungle
reblogged this from
otsune
-
shckor liked this
-
neo-shocker
reblogged this from
lagash
-
showyou
reblogged this from
otsune
-
currentdir liked this
-
proto-jp liked this
-
kiske liked this
-
cube99
reblogged this from
otsune
-
youkeyx2
reblogged this from
takku
-
mituhime
reblogged this from
otsune
-
lagash
reblogged this from
otsune
-
tekkoc
reblogged this from
otsune
-
takku
reblogged this from
otsune
-
taketin
reblogged this from
otsune
-
kaizawa liked this
-
ichimonji
reblogged this from
otsune
-
key1
reblogged this from
otsune
-
gtokio
reblogged this from
ku
-
masaka
reblogged this from
otsune
-
xkazu liked this
-
k2low
reblogged this from
otsune
-
lotaki
reblogged this from
otsune
-
komatak
reblogged this from
katsuma
-
otsune
reblogged this from
omasayan
-
privatearmy liked this
-
takeoba
reblogged this from
honishi
-
world9-1
reblogged this from
yaruo
-
honishi
reblogged this from
ku
-
takaakik
reblogged this from
ku
-
ak47
reblogged this from
ku
-
ku
reblogged this from
polog
and added:
というのがあって、もともと組み込まれているインタプリタを除いて、ダウンロードしたコードを解釈し実行するこことがNGだって書いてあるのを見つけてApple的にFlashがNGなのと同じ古い理由でweb2.0/radical...
-
katsuma
reblogged this from
polog
-
polog
reblogged this from
gkojax
-
electrikt
reblogged this from
yaruo
-
cymbals21
reblogged this from
nagas
-
lunaryue
reblogged this from
nagas
-
stomita
reblogged this from
honishi
-
nagas
reblogged this from
gkojax
-
mtakeshi liked this
-
wiggling
reblogged this from
vmconverter
-
donpyxxx
reblogged this from
yaruo
-
cube99
reblogged this from
gkojax
-
tam
reblogged this from
gkojax
-
hisaruki
reblogged this from
gkojax
-
babirons
reblogged this from
yaruo
-
vmconverter
reblogged this from
clavier
-
omasayan
reblogged this from
vmconverter
-
vmconverter
reblogged this from
clavier
-
kondot liked this
-
clavier
reblogged this from
yaruo
-
quote-list
reblogged this from
gkojax
-
gkojax
reblogged this from
yaruo
-
yaruo
reblogged this from
honishi
-
honishi
posted this