ググって調べたらAPIでできそう。
※MacOSXのターミナルでやっています。Windowsな方は何とかしてください
(1) 検索メモのIDを調べる
下記を実行
- curl -u user:password http://api.twitter.com/1/saved_searches.xml
- :
- :
- <saved_search></saved_search>
- <id>8412512</id>
- <name>#jjug</name>
- <query>#jjug</query>
- <position></position>
- <created_at>Sun May 23 03:19:41 +0000 2010</created_at>
- <saved_search></saved_search>
- <id>8523810</id>
- <name>#sanight</name>
- <query>#sanight</query>
- <position></position>
- <created_at>Tue May 25 12:23:10 +0000 2010</created_at>
- :
- :
(2) 検索メモのIDで検索メモを削除
- curl -u user:password -d "" http://api.twitter.com/1/saved_searches/destroy/検索メモのID.xml
- <saved_search></saved_search>
- <id>8412512</id>
- <name>#jjug</name>
- <query>#jjug</query>
- <position></position>
- <created_at>Sun May 23 03:19:41 +0000 2010</created_at>
(3) ウェブで確認してみる
http://twitter.comから自分のホームに移動して、「検索メモ」を参照します。
消えてます。めでたしめでたし
参考
http://apiwiki.twitter.com/Twitter-REST-API-Method:-saved_searches
http://apiwiki.twitter.com/Twitter-REST-API-Method:-saved_searches-destroy
0 件のコメント:
コメントを投稿