「役に立たない」とか言って、ごめんなさい Twitterユーザーのみなさん、どんなボットをフォローしていますか? ニュース、天気予報からラーメン二郎の混雑状況まで、色々な情報をほぼリアルタイムで確認できるサービスとして、ボットの存在はTwitterというプラットフォームに新たな付加価値を提供していると言えるでしょう。 では早速、役に立つボットまとめ記事を……と思ったら、編集部から「そういうのはよそ様(ココとかココとか)にお任せし、ここはあえて役に立たないボットまとめでいきましょう」との指令が。ということで、ここでは役に立たないボットばかりを集めてみました。 あえてまた、愛されボット、と言ってみます 通常、こういう記事では対象についてレビューをしていくわけですが、今回はどれも「あまり役に立ちません」という内容になってしまうので、多くは語らず淡々とリストアップしていきます。ご了承のほどを。また
目次 コードを置いておくフォルダを作る 書いて、試す 定期的に実行する 遊び方無限大 コードを置いておくフォルダを作る 面倒なのでC直下にコード置き場を作る。(あんまりいいことじゃない) コマンドプロンプトで以下のコマンドを実行する。 mkdir c:\python作ったフォルダに移動しておく。 cd c:\pythonこのコマンドプロンプトは後で使うのでとっておく。 書いて、試す まずは基本的なコードを書いてみる。 先ほど作ったc:\pythonの下にtest.pyというファイルを作成して以下のコードを書く。 usernameとpasswordの部分はtwitterアカウントのユーザidとパスワードを入れます。 import twitter api = twitter.Api("username","password") api.PostUpdate("I am giiku") 保存した
清水宗治botは、pythonで書かれていてGoogle App Engine上で動いています。ちょっと前に、Google App Engineがcronをサポートしたというのを聞いたので、それを試してみたくてこの環境で作ってみました。すごく簡単だったので、作り方を紹介します。 Twitterへの投稿には、Python Twitterてのを使ってみました。いや〜、便利な世の中ですね、先人に感謝です。ちゃっちゃと手軽にやりたかったので、データはファイルから読むようにしました。ここでは1日1Twitするbotを作るので、データファイルは、シンプルに日付とテキストをカンマで区切った行がただダラダラと並ぶ構造にしました。データファイルはdata.txtという名前で、UTF-8で保存してください。 9/9,実に秋晴れktkr 9/10,景治と将棋を指す。まだまだガキには負けないわw : : : メイ
動機 名言集.com (wisesaw) on Twitter これまで名言Botを自鯖で運用してきたのですが、こいつが電気代をだいぶ食うのでなんとかならないかなあと思っていました。 Scheduled Tasks With Cron for Python - Google App Engine — Google Developers そんな折、Google App Engineがcronのサポートを始めたので、電気代がかかりかつうるさい自鯖を停めるいいきっかけになりました。 方法 名言Botは実行スクリプトとして書いたPythonスクリプトをcronで叩いていただけなので、これをGoogle App Engineで叩けるように変更すればよい。 アプリケーションの登録 まずアプリケーションの登録をします。(要Google App Engineアカウント) Welcome to Google
BOTつくろう会参加 いつのまにか師走に突入、突進、激突、破壊、炎上の季節になってきましたがみなさんいかがお過ごしで。 かれこれ2週間ほど前に、BOTつくろう会の勉強会が開催されました。この勉強会は「Google App Engine×pythonでBOTつくろうぜ!」というコンセプトなのですが、「え?python?パイソンっておいしいんですか?」状態の僕は持ち前の空気読まない力を存分に発揮し、何も事前勉強せずに参加してみたら、みんなすっごい優しいのな……!右も左もわからない僕に対して懇切丁寧に教えてくださって涙が出ました。*1ああいう優しさに触れて、生きてることのありがたみを今さらながら実感したんですけど、その話は置いておいて、例のBOTの話をします。はい。 俺の家にあるBOTをなんとかしたいんや・・・ ぼくが2年ほど前に思いつきで作った高田純次BOTと森田一義BOTが奇跡的なフォロワー
2009/09/17 「BOTつくろう会」が産経新聞に紹介されました。 2009/09/15 BOT用仮アイコン配布いたします。 2009/09/14 第二回のBOTつくろう会のP1の資料まとめができました。 2009/09/14 GAEでTwitterのbotを作る#3【渋谷】のイベントの一般公募がはじまりました。 2009/09/11 えxぺ主催の「スバツイ」というイベントでBOTつくろう会を紹介しました。 2009/09/10 GAEでTwitterのbotを作る#3【渋谷】のイベントのお知らせを追加しました。 2009/09/10 ワークショップにイベント報告を掲載しました。 2009/09/10 いろんなBOTを更新しました。 過去のお知らせ
Twitter | 22:46関連エントリキャラクタ系Twitterbotをつくってみた初心者向けまとめ そのいち - ものおき@はてなキャラクタ系Twitterbotをつくってみた初心者向けまとめ そのに - ものおき@はてな2本ほど初心者向けのPHPによるbot作成エントリなんぞ書いていて、おかげさまで参考にして頂いてるようなのですが。あれから時間もたって、ソースを丸ごと公開してる方が既にいらっしゃるので、ご紹介したりするついでに、便利げなリソースをまとめてみたり、これやった方が良かったなーってな事を書いてみたりなどしました。基本編3種類のbotソースコードを公開してらっしゃいますプログラミングができなくても作れるTwitter botの作り方手前味噌。時間帯を判別して定期postするbotができますキャラクタ系Twitterbotをつくってみた初心者向けまとめ そのいち - ものおき
ブラジル関連のイベント ブラジル関連のイベント情報をブツブツつぶやきます。ブラジル好きなら必ずフォローでしょう!
pha 様の以下のページが超人気っぽいです。bot を作りたいと思ってる人って結構いるのかしら? プログラミングができなくても作れるTwitter botの作り方 こちらで紹介されてる内容は、レンタルサーバで PHP 動かしてって感じで「bot とかよく分からんけどとりあえず試しに動かしてみたいような気がちょっとした感じ」ぐらいに思ってる人にはちょっと敷居が高そうだったので、グリモンで動く bot もどきを作ってみました。 bot もどきのもどきとは、グリモン(ブラウザ)を立ち上げてるときだけ動く bot という意味です。 ブラウザを立ち上げとかないと bot が動かないので作ってから完全に放置できる訳ではありませんが、サーバにインストールするタイプの bot よりもかなり簡単に動作させることができます。それ以外の部分では普通の bot と大きく変わりませんので、とりあえず bot してみ
Twitterのおかげで、それまではごく一部の人しか知らなかったbotというものが、だいぶん身近で親しみやすいものになったと思うんだけど、 こうなったらもっと気軽に誰でもbotを作れるようになったら楽しいんじゃないか。プログラミングができない人でも一人一botくらい持つ勢いで。 ということでこの記事を書いてみました。
「プログラミングができない人もみんなTwitter Botを作ったらいいよ」と思ったので、プログラミングができなくてもある程度の知識があれば作れるTwitter Botのやり方をまとめてみました。 プログラミングができなくても作れるTwitter botの作り方 そもそもTwitterが登場する以前にもbotとか人工無脳とかそういうものはあったのだけど、大体IRCとかそのへんで動いていてそこまでメジャーな存在ではなかった。それがTwitterの普及によって一気にbotが身近な存在になった気がします。 Twitterとbotの相性の良さというのは、Twitter上ではbotが人間と同じラインに並べるというところだと思う。 例えばbotに面白いブログを書かせようと思ったら、それはまだちょっと苦しいと思うのよね。ブログのような長文を自動生成して、それが人間の読むに耐えられるようになるほど、まだb
思い立ったが吉日ということで。botと言っても自分のアカウントで投下しておりますが、問題は自分の生の発言とbot発言の区別がつかないことだったりする!ちょっと待て!!! さて、全くやったことないPHPでやってみた。 まずPHPとApacheのインストールから。 All about PHPインストール 自宅サーバーのためのPHPセットアップ Apacheのインストール VistaでApacheのインストールに失敗&解決記 この辺を参考にしてやりました。特にVistaだったせいでなかなかうまくいかなかったので最後のはありがたかったです。Apacheが動くまでに2時間か3時間かかかったかなぁ。 twitterに投稿するための骨組は、 Twitter API PHPでTwitterに投稿 の二つを参考に。これは結構すんなりいった。というかほとんどコピペ。 最初の一言はこれ
Twitterの認証方式について Twitterの認証方式にはOAuthとBasic認証の二通りの仕組みがあります。 Twitter API Wiki / Authentication Basic認証はお手軽なので、世に存在するTwitter APIを利用する一般的なクライアントは、大抵がこちらの方法を使っているのではないかと思います。 ですが、実はこのBasic認証はセキュリティ上の理由から、将来的に非推奨になることが予告されています。 Twitter API Wiki / OAuth FAQ 既にTwitter API Wikiでは「今後作成するクライアントはOAuthを利用することを強く推奨する」と表明されており、それに応じてOAuthを使うクライアントも増えてきています。 …が、現状Basic認証を利用しているクライアントが既に大量に存在していることを考えると、今日明日でBasic
サキとは彼女の自宅近く、湘南台駅前のスーパーマーケットで待ち合わせをした。彼女は自転車で後から追いつくと言い、僕は大きなコインパーキングへ車を停めた。煙草を一本吸ってからスーパーマーケットへ向かうと、ひっきりなしに主婦的な女性かおばあちゃんが入り口を出たり入ったりしていた。時刻は午後5時になる。時計から目を上げると、待たせちゃったわねと大して悪びれてない様子でサキが手ぶらでやってきた。 お礼に料理を作るとはいえ、サキの家には食材が十分足りていないらしく、こうしてスーパーマーケットに寄ることになった。サキは野菜コーナーから精肉コーナーまで、まるで優秀なカーナビに導かれるように無駄なく点検していった。欲しい食材があると、2秒間程度それらを凝視し、一度手に取ったじゃがいもやら豚肉やらを迷うことなく僕が持っているカゴに放り込んだ。最後にアルコール飲料が冷やされている棚の前へ行くと、私が飲むからとチ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く