LoginSignup
1

More than 5 years have passed since last update.

【備忘録】サイトのhtmlをpythonで書き出す。

Posted at

備忘録コード

stack
import urllib2

if __name__ == "__main__":
    url = "http://fantmsite.com"

    htmldata = urllib2.urlopen(url)
    print unicode(htmldata.read(),"utf-8")

    htmldata.close(s)

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1