「メタメモ」の編集履歴(バックアップ)一覧はこちら
「メタメモ」(2008/02/20 (水) 00:55:25) の最新版変更点
追加された行は緑色になります。
削除された行は赤色になります。
//python
関数毎にページ作成、階層を分けてわかるように
あくまでメモをかく場所、ソースは貼らない
wikiにスクリプトから投稿する場合。pythonならmechanizeモジュールでできるかも。
http://peak.telecommunity.com/DevCenter/EasyInstall#downloading-and-installing-a-package
からpyファイルをDLして実行。Scriptフォルダで
ez_install mechanize
でおk。
全自動でらくちんポン。
参照:
http://www.smlab.tutkie.tut.ac.jp/~sakaji/wiki/wiki.cgi?page=Python
http://wiki.monaos.org/pukiwiki.php?Reading%20Gauche
http://d.hatena.ne.jp/g7umz1cuwvsy/searchdiary?word=%A5%C0%A5%A4%A5%A2%A5%EA%A1%BC
http://d.hatena.ne.jp/darwinia/20080105/1199497313
http://plaza.rakuten.co.jp/kugutsushi/diary/200610150000/
http://wwwsearch.sourceforge.net/mechanize/doc.html
http://d.hatena.ne.jp/Wacky/20060806/1154864261
以下きほん自動投稿スクリプト
#-*- coding:utf-8 -*-
import mechanize
def post(title, text):
post_url = 'http://www5.atwiki.jp/readingxclannad/new/'
password = 'hoge'
br = mechanize.Browser()
br.set_handle_robots(False)
br.open(post_url)
br.select_form(nr=0)
br['password'] = password
br.submit()
br.select_form(nr=0)
br['newpage'] = title
br.submit()
br.select_form(nr=1)
br['source'] = text
br.submit()
title = u"日本語タイトル".encode('utf-8')
text = u"日本語ほんぶん".encode('utf-8')
post(title, text)
//python
関数毎にページ作成、階層を分けてわかるように
あくまでメモをかく場所、ソースは貼らない
タイトルの/で階層を分けられる。
wikiにスクリプトから投稿する場合。pythonならmechanizeモジュールでできるかも。
http://peak.telecommunity.com/DevCenter/EasyInstall#downloading-and-installing-a-package
からpyファイルをDLして実行。Scriptフォルダで
ez_install mechanize
でおk。
全自動でらくちんポン。
参照:
http://www.smlab.tutkie.tut.ac.jp/~sakaji/wiki/wiki.cgi?page=Python
http://wiki.monaos.org/pukiwiki.php?Reading%20Gauche
http://d.hatena.ne.jp/g7umz1cuwvsy/searchdiary?word=%A5%C0%A5%A4%A5%A2%A5%EA%A1%BC
http://d.hatena.ne.jp/darwinia/20080105/1199497313
http://plaza.rakuten.co.jp/kugutsushi/diary/200610150000/
http://wwwsearch.sourceforge.net/mechanize/doc.html
http://d.hatena.ne.jp/Wacky/20060806/1154864261
以下きほん自動投稿スクリプト
#-*- coding:utf-8 -*-
import mechanize
def post(title, text):
post_url = 'http://www5.atwiki.jp/readingxclannad/new/'
password = 'hoge'
br = mechanize.Browser()
br.set_handle_robots(False)
br.open(post_url)
br.select_form(nr=0)
br['password'] = password
br.submit()
br.select_form(nr=0)
br['newpage'] = title
br.submit()
br.select_form(nr=1)
br['source'] = text
br.submit()
title = u"日本語タイトル".encode('utf-8')
text = u"日本語ほんぶん".encode('utf-8')
post(title, text)