python

ソースコードにスクリプトを埋め込んで、ソースコードを生成させる

はじめに わりと一発ネタ。大したことやってません。仕事で必要に感じたので作ってみました。せっかくなのでここでも紹介。タイトルをもっと適切なものに書き換えたい。 背景 諸々の事情から、部分的に冗長なコードを書かないといけない時があると思います。…

i made a bot replies CRC32 with GAE datastore and python

introduction i translated CRC32 calculation logic from C into pytohn, as you saw at the last entry.and i made a bot replies CRC32 using it with GAE datastore. i'll introduce it. sample @crc32hogeyou get a CRC32 reply if you tweet to it. ja…

GAEをweb cronとして使う

このエントリの和訳です。http://d.hatena.ne.jp/takahirox/20110430/1304145478 はじめに 以前のエントリでGAEがweb cronとして使えるのではないかと言及しました。 http://d.hatena.ne.jp/takahirox/20110425/1303732480 rubyでbotを作ったときcronの実現…

using the GAE as a web cron

introduction i said that we could use GAE as web cron at http://d.hatena.ne.jp/takahirox/20110424/1303652584 i worried about cron when i made bot with ruby. http://d.hatena.ne.jp/takahirox/20090523/1243086497 perhaps, GAE can resolve this …

GAEとpythonでbotを作る

このエントリの和訳です。http://d.hatena.ne.jp/takahirox/20110424/1303652584 はじめに GAE(Google App engine)とpython(とLinux)を使ってtwitterのbotを作ってみました。そのときのメモを残しておきます。 botを作ってみようと思っている人の参考になれ…

making a bot with GAE and python

introduction i tried to make a bot with GAE(Google App Engine), python and Linux. i'll make notes of it.i hope it helps you who wants to make a bot. bot i developed http://twitter.com/forecasthoge it tweets the weather forecast of tokyo, j…

東京電力の株価をPOSTするbotを作ってみた

bot http://twitter.com/stockhoge 仕様・特徴・参考リンク Yahoo! financeの東京電力(9501)のページをスクレイピングし、20分毎にPOST http://stocks.finance.yahoo.co.jp/stocks/detail/?code=9501 Yahoo! financeの仕様のため、株価情報は20分遅れ GAE(Go…

GAE+pythonで東京電力管轄の消費電力状況をPOSTするbotを作ってみた

bot http://twitter.com/powerhoge GAEもpythonも初心者なので、ちゃんと動いているのか自信がないですが。バグっていたら申し訳。 仕様・特徴・参考リンク 東京電力web siteで提供されている電力使用状況csvファイルを読み込んで、最大供給能力に対する現在…