{"id":508,"date":"2012-03-11T13:29:00","date_gmt":"2012-03-11T04:29:00","guid":{"rendered":""},"modified":"2021-06-04T17:22:10","modified_gmt":"2021-06-04T08:22:10","slug":"pythonpost","status":"publish","type":"post","link":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/2012\/03\/pythonpost.html","title":{"rendered":"Python\u3067\u81ea\u52d5\u7684\u306bPOST\u9001\u4fe1\u3059\u308b\u65b9\u6cd5"},"content":{"rendered":"<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone size-full wp-image-598\" src=\"http:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-content\/uploads\/sites\/2\/2012\/03\/Python.png\" alt=\"Python\" width=\"768\" height=\"768\" srcset=\"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-content\/uploads\/sites\/2\/2012\/03\/Python.png 768w, https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-content\/uploads\/sites\/2\/2012\/03\/Python-300x300.png 300w, https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-content\/uploads\/sites\/2\/2012\/03\/Python-150x150.png 150w, https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-content\/uploads\/sites\/2\/2012\/03\/Python-100x100.png 100w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/p>\n<p>SEO\u306b\u53d6\u308a\u7d44\u3080\u5834\u5408\u3001\u69d8\u3005\u306a\u624b\u6cd5\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u79c1\u304c\u975e\u5e38\u306b\u6709\u52b9\u3060\u3068\u8003\u3048\u3066\u3044\u308b\u624b\u6cd5\u306e\uff11\u3064\u304c\u76f8\u4e92\u30ea\u30f3\u30af\u3067\u3059\u3002<\/p>\n<p>\u305d\u306e\u76f8\u4e92\u30ea\u30f3\u30af\u4f5c\u696d\u3092\u30d7\u30ed\u30b0\u30e9\u30e0\u3067\u3001\u3067\u304d\u308b\u3060\u3051\u81ea\u52d5\u5316\u3057\u305f\u3044\u3068\u601d\u3063\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u305f\u3081\u306b\u5fc5\u8981\u306a\u51e6\u7406\u306e\u4e00\u3064\u306b\u3001\u554f\u5408\u305b\u30d5\u30a9\u30fc\u30e0\u306a\u3069\u3067POST\u9001\u4fe1\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>GET\u3092\u4f7f\u3063\u3066\u3044\u308c\u3070\u7c21\u5358\u306a\u306e\u3067\u3059\u304c\u3001POST\u9001\u4fe1\u306e\u5834\u5408\u3001\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u306e\u304b\u5206\u304b\u3089\u306a\u304f\u3066\u8abf\u3079\u3066\u307f\u308b\u3068urllib\u3092\u4f7f\u3048\u3070\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u304c\u5206\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u3001<a href=\"https:\/\/www.shikaku-king.com\/mailmagazine\/meigen\/\" target=\"_blank\" rel=\"noopener\">\u3053\u306e\u30da\u30fc\u30b8<\/a>\u306e\u767b\u9332\u30d5\u30a9\u30fc\u30e0\u306b\u81ea\u52d5\u3067POST\u9001\u4fe1\u3067\u304d\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n<p>\u3061\u306a\u307f\u306b\u3053\u308c\u306f\u5f0a\u793e\u306e\u30b5\u30a4\u30c8\u3067\u3059\u3002<\/p>\n<pre><code>#!\/usr\/bin\/env python\r\n#-*- coding: utf-8 -*-\r\nimport urllib\r\n\r\ndef main():\r\n    # POST URL\r\n    url = 'http:\/\/www.shikaku-king.com\/mailmagazine\/meigen_confirm.py'\r\n    # POST\u30c7\u30fc\u30bf\u306e\u683c\u7d0d\r\n    postData = {\r\n        'name':'\u8cc7\u683c\u592a\u90ce',\r\n        'year':'2012',\r\n        'month':'10',\r\n        'date':'15',\r\n        'mail1':'shikaku@king.com',\r\n        'mail2':'shikaku@king.com'\r\n    }\r\n    # URL\u30a8\u30f3\u30b3\u30fc\u30c9\r\n    params = urllib.urlencode(postData)\r\n    # \u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u51fa\u529b\r\n    print urllib.urlopen(url, params).read()\r\n\r\nif __name__ == '__main__':\r\n    main()<\/code><\/pre>\n<p>\u30de\u30b8\u3067Python\u8d85\u4fbf\u5229\u3002\u3053\u308c\u3092\u3046\u307e\u304f\u5fdc\u7528\u3059\u308c\u3070\u81ea\u52d5\u76f8\u4e92\u30ea\u30f3\u30af\u7372\u5f97\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u3067\u304d\u305d\u3046\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SEO\u306b\u53d6\u308a\u7d44\u3080\u5834\u5408\u3001\u69d8\u3005\u306a\u624b\u6cd5\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u79c1\u304c\u975e\u5e38\u306b\u6709\u52b9\u3060\u3068\u8003\u3048\u3066\u3044\u308b\u624b\u6cd5\u306e\uff11\u3064\u304c\u76f8\u4e92\u30ea\u30f3\u30af\u3067\u3059\u3002 \u305d\u306e\u76f8\u4e92\u30ea\u30f3\u30af\u4f5c &#8230; <\/p>\n","protected":false},"author":1,"featured_media":598,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75],"tags":[33,26],"class_list":["post-508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology","tag-python","tag-seo"],"_links":{"self":[{"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/posts\/508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/comments?post=508"}],"version-history":[{"count":0,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/posts\/508\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/media\/598"}],"wp:attachment":[{"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/media?parent=508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/categories?post=508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigmadesign.co.jp\/minomonchan\/wp-json\/wp\/v2\/tags?post=508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}