• R/O
  • HTTP
  • SSH
  • HTTPS

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

sfjplib for python


File Info

Rev. f6bf83ccbc242faf3fc6fcd7916144eaee220512
크기 381 bytes
Time 2011-08-25 20:46:40
Author Hiromichi MATSUSHIMA
Log Message

add some files

Content

#!/usr/bin/python
# -*- coding: utf-8 -*-
"""sfjplib.py"""

import form_retriver

if __name__ == "__main__":
    f = open("sample.html", "r")
    html = f.read()
    f.close()

    f = form_retriver.FormRetriver()
    f.parse(html)
    for form in f.forms():
        print "\n", form.action, ":"
        for (key, val) in form:
            print key, val