{"id":38218,"date":"2022-10-24T17:18:01","date_gmt":"2022-10-24T08:18:01","guid":{"rendered":"https:\/\/kinsta.com\/jp\/?p=38218&#038;preview=true&#038;preview_id=38218"},"modified":"2023-08-28T19:02:32","modified_gmt":"2023-08-28T10:02:32","slug":"python-wordpress","status":"publish","type":"post","link":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/","title":{"rendered":"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f"},"content":{"rendered":"<p>WordPress\u304c\u4eba\u6c17\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\uff08CMS\uff09\u3068\u306a\u308a\u5f97\u305f\u7d4c\u7def\u306b\u306f\u3001\u305d\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\uff08API\uff09\u304c\u5c11\u306a\u304b\u3089\u305a\u5f71\u97ff\u3057\u3066\u3044\u307e\u3059\u3002<a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-rest-api\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress REST API<\/a>\u306b\u3088\u308a\u3001WordPress\u3068\u3055\u307e\u3056\u307e\u306a\u8a00\u8a9e\u3067\u66f8\u304b\u308c\u305f\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u306e\u3084\u308a\u53d6\u308a\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/kinsta.com\/blog\/python-tutorials\/#what-is-python\" target=\"_blank\" rel=\"noopener noreferrer\">Python<\/a>\u306f\u62e1\u5f35\u6027\u306e\u9ad8\u3044\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3067\u3059\u3002\u305d\u306e\u7528\u9014\u306f\u591a\u5c90\u306b\u308f\u305f\u308a\u3001\u69cb\u6587\u306f\u4eba\u9593\u306b\u3068\u3063\u3066\u8aad\u307f\u3084\u3059\u3044\u3082\u306e\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u7279\u5fb4\u304b\u3089\u3001WordPress\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u9060\u9694\u7ba1\u7406\u3059\u308b\u306e\u306b\u4fbf\u5229\u306a\u9078\u629e\u80a2\u3067\u3059\u3002<\/p>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u306eWordPress REST API\u306e\u4f7f\u7528\u4f8b\u3068\u3001\u305d\u308c\u306e\u30b5\u30dd\u30fc\u30c8\u306b\u3069\u306e\u3088\u3046\u306bPython\u304c\u4f7f\u3048\u308b\u306e\u304b\u30a4\u30e1\u30fc\u30b8\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u7c21\u5358\u306a\u4f8b\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059\u3002<\/p>\n<ul>\n<li>\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u751f\u30c7\u30fc\u30bf\u3092\uff08\u66f8\u5f0f\u3092\u6574\u3048\u305f\u304b\u305f\u3061\u3067\uff09\u6295\u7a3f\u306b\u7d20\u65e9\u304f\u5909\u63db<\/li>\n<li>Django\u3068Python\u3067\u30d0\u30c3\u30af\u30aa\u30d5\u30a3\u30b9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3057\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u56fa\u6709\u306e\u5272\u5f15\u3084\u8ca9\u58f2\u30a4\u30d9\u30f3\u30c8\u304c\u767a\u751f\u3059\u308b\u305f\u3073\u306b\u3001\u671f\u9593\u9650\u5b9a\u306e\u30aa\u30d5\u30a1\u30fc\u3092\u8868\u793a<\/li>\n<li>Python\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7d71\u5408\u3057WordPress\u30b5\u30a4\u30c8\u5185\u3067\u5b9f\u884c<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u3092\u8e0f\u307e\u3048\u3066\u3001\u4eca\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001WordPress REST API\u3068\u901a\u4fe1\u3057\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u3001\u30b7\u30f3\u30d7\u30eb\u306aPython\u30b3\u30f3\u30bd\u30fc\u30eb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002\u30b3\u30fc\u30c9\u3092\u5f79\u5272\u3054\u3068\u306b\u5206\u3051\u3066\u6271\u3063\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<div><\/div><kinsta-auto-toc heading=\"Table of Contents\" exclude=\"last\" list-style=\"arrow\" selector=\"h2\" count-number=\"-1\"><\/kinsta-auto-toc>\n<h2>WordPress\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<\/h2>\n<p>\u307e\u305a\u3001\u958b\u767a\u30de\u30b7\u30f3\u306e\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067WordPress\u30b5\u30a4\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002\u30b5\u30fc\u30d0\u30fc\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3057\u305f\u308a\u3001\u30c9\u30e1\u30a4\u30f3\u3092\u8cfc\u5165\u3057\u305f\u308a\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u305f\u3081\u3001WordPress\u3092\u30b7\u30f3\u30d7\u30eb\u306b\u6271\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>WordPress\u3092\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u7528\u610f\u3059\u308b\u524d\u306b\u3001Apache\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3001\u30ed\u30fc\u30ab\u30eb\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3001\uff08WordPress\u306e\u8a18\u8ff0\u306b\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\uff09PHP\u306a\u3069\u3001\u7279\u5b9a\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u3067\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u5168\u3066\u306e\u7ba1\u7406\u306b\u4fbf\u5229\u306a\u306e\u304c<a href=\"https:\/\/kinsta.com\/jp\/devkinsta\/\" target=\"_blank\" rel=\"noopener noreferrer\">DevKinsta<\/a>\u3067\u3059\u3002\u3059\u3079\u3066\u306e\u4e3b\u8981OS\u3067\u5229\u7528\u53ef\u80fd\u306a\u7121\u6599\u306e\u30ed\u30fc\u30ab\u30ebWordPress\u958b\u767a\u30b9\u30a4\u30fc\u30c8\u3068\u3057\u3066\u3001Kinsta\u304c\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306e\u3054\u5229\u7528\u306bKinsta\u306e\u30d7\u30e9\u30f3\u5951\u7d04\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>DevKinsta\u306f\u3001Windows\u3001Mac\u3001\u304a\u3088\u3073Linux\u3067\u5229\u7528\u53ef\u80fd\u3067\u3001WordPress\u3068\u305d\u306e\u4f9d\u5b58\u95a2\u4fc2\u306e\u3059\u3079\u3066\u3092\u30ed\u30fc\u30ab\u30eb\u30de\u30b7\u30f3\u306b\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>DevKinsta\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u524d\u306b\u3001\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067Docker\u3092\u5b9f\u884c\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u307e\u3060\u306e\u5834\u5408\u306f<a href=\"https:\/\/docs.docker.com\/engine\/install\/\">Docker Engine\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>Docker Desktop\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001\u304a\u4f7f\u3044\u306eOS\u306b\u5408\u3063\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u3092<a href=\"https:\/\/kinsta.com\/jp\/devkinsta\/download\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/a>\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 826px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/DevKinsta-downloading-screen.png\" alt=\"DevKinsta\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u753b\u9762\" width=\"826\" height=\"570\"><figcaption class=\"wp-caption-text\">DevKinsta\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u753b\u9762<\/figcaption><\/figure><\/figure>\n<p>DevKinsta\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u3059\u3050\u306bDocker\u306e\u521d\u671f\u5316\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 546px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/DevKinsta-starting-Docker-screen.png\" alt=\"DevKinsta\u306b\u3088\u308a\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067Docker\u304c\u8d77\u52d5\" width=\"546\" height=\"368\"><figcaption class=\"wp-caption-text\">DevKinsta\u306b\u3088\u308a\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067Docker\u304c\u8d77\u52d5<\/figcaption><\/figure><\/figure>\n<p>\u300c<strong>\u65b0\u898f\u30b5\u30a4\u30c8\u4f5c\u6210<\/strong>\u300d\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u300c<strong>\u65b0\u898fWordPress\u30b5\u30a4\u30c8<\/strong>\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 905px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/DevKinsta-create-new-WordPress-site-screen.png\" alt=\"DevKinsta\u306e\u65b0\u898f\u30b5\u30a4\u30c8\u4f5c\u6210\u30e1\u30cb\u30e5\u30fc\" width=\"905\" height=\"521\"><figcaption class=\"wp-caption-text\">DevKinsta\u306e\u65b0\u898f\u30b5\u30a4\u30c8\u4f5c\u6210\u30e1\u30cb\u30e5\u30fc<\/figcaption><\/figure><\/figure>\n<p>\u6b21\u306b\u3001WordPress\u7ba1\u7406\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 501px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/DevKinsta-new-WordPress-site-creation-screen.png\" alt=\"DevKinsta\u300c\u65b0\u898fWordPress\u30b5\u30a4\u30c8\u300d\u9078\u629e\u5f8c\u306b\u8868\u793a\u3055\u308c\u308b\u30d5\u30a9\u30fc\u30e0\" width=\"501\" height=\"463\"><figcaption class=\"wp-caption-text\">DevKinsta\u300c\u65b0\u898fWordPress\u30b5\u30a4\u30c8\u300d\u9078\u629e\u5f8c\u306b\u8868\u793a\u3055\u308c\u308b\u30d5\u30a9\u30fc\u30e0<\/figcaption><\/figure><\/figure>\n<p>DevKinsta\u306f\u30b9\u30bf\u30f3\u30c9\u30a2\u30ed\u30f3\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u3057\u3066\u6a5f\u80fd\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u3001WordPress\u30b5\u30a4\u30c8\uff08\u300c<strong>\u30b5\u30a4\u30c8\u3092\u958b\u304f<\/strong>\u300d\u30dc\u30bf\u30f3\uff09\u3068WordPress\u7ba1\u7406\u753b\u9762\uff08\u300c<strong>WP\u7ba1\u7406\u753b\u9762<\/strong>\u300d\u30dc\u30bf\u30f3\uff09\u306e\u4e21\u65b9\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 969px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/DevKinsta-WordPress-site-info-screen.png\" alt=\"DevKinsta\u306e\u30b5\u30a4\u30c8\u60c5\u5831\u30d1\u30cd\u30eb\" width=\"969\" height=\"550\"><figcaption class=\"wp-caption-text\">DevKinsta\u306e\u30b5\u30a4\u30c8\u60c5\u5831\u30d1\u30cd\u30eb<\/figcaption><\/figure><\/figure>\n<p>\u6b21\u306b\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e<a href=\"https:\/\/kinsta.com\/blog\/how-ssl-works\/\" target=\"_blank\" rel=\"noopener noreferrer\">SSL\/HTTPS<\/a>\u306e\u6709\u52b9\u5316\u3092\u884c\u3044\u307e\u3059\u3002SSL\u8a3c\u660e\u66f8\u3092\u4f7f\u3046\u3053\u3068\u3067\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 969px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/DevKinsta-SSL-and-HTTPS-option-screen.png\" alt=\"DevKinsta\u306e\u300cSSL\u3068HTTPS\u300d\" width=\"969\" height=\"550\"><figcaption class=\"wp-caption-text\">DevKinsta\u306e\u300cSSL\u3068HTTPS\u300d<\/figcaption><\/figure><\/figure>\n<p>\u6b21\u306b\u3001DevKinsta\u306e\u300c<strong>\u30b5\u30a4\u30c8\u3092\u958b\u304f<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u30d6\u30e9\u30a6\u30b6\u306e\u65b0\u898f\u30bf\u30d6\u3067WordPress\u30b5\u30a4\u30c8\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 827px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/DevKinsta-new-local-site-Hello-World.png\" alt=\"WordPress\u30b5\u30a4\u30c8\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8\" width=\"827\" height=\"612\"><figcaption class=\"wp-caption-text\">WordPress\u30b5\u30a4\u30c8\u306e\u30c8\u30c3\u30d7\u30da\u30fc\u30b8<\/figcaption><\/figure><\/figure>\n<p>\u3053\u306eWordPress\u30b5\u30a4\u30c8\u3092\u81ea\u7531\u306b\u7de8\u96c6\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3068\u306f\u8a00\u3048\u4eca\u56de\u306f\u3001Python\u306b\u3088\u308bWordPress REST API\u3092\u4ecb\u3057\u305f\u30a2\u30af\u30bb\u30b9\u306b\u3064\u3044\u3066\u3001\u8a2d\u5b9a\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>DevKinsta\u306e\u300c<strong>WP\u7ba1\u7406\u753b\u9762<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u3066<strong>WordPress\u7ba1\u7406\u753b\u9762<\/strong>\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 357px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/WordPress-admin-dashboard-login-screen.png\" alt=\"WordPress\u306e\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0\" width=\"357\" height=\"385\"><figcaption class=\"wp-caption-text\">WordPress\u306e\u30ed\u30b0\u30a4\u30f3\u30d5\u30a9\u30fc\u30e0<\/figcaption><\/figure><\/figure>\n<p>\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001<strong>WordPress\u7ba1\u7406\u753b\u9762<\/strong>\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 989px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/welcome-to-WordPress-admin-screen.png\" alt=\"WordPress\u306e\u7ba1\u7406\u753b\u9762\" width=\"989\" height=\"612\"><figcaption class=\"wp-caption-text\">WordPress\u306e\u7ba1\u7406\u753b\u9762<\/figcaption><\/figure><\/figure>\n<p>WordPress\u306f\u3001\u6a19\u6e96\u3067\u306fCookie\u8a8d\u8a3c\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u3001REST API\u3092\u4f7f\u3063\u3066\u64cd\u4f5c\u3092\u884c\u3046\u306b\u306f\u3001WordPress REST API\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u304b\u305f\u3061\u3067\u8a8d\u8a3c\u3092\u884c\u3046\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u306b\u306f\u3001<a href=\"https:\/\/make.wordpress.org\/core\/2020\/11\/05\/application-passwords-integration-guide\/\" target=\"_blank\" rel=\"noopener noreferrer\">Application Passwords<\/a>\u3092\u5229\u7528\u3057\u307e\u3059\u3002WordPress\u30b5\u30a4\u30c8\u3067\u7c21\u5358\u306b24\u6841\u306e\u6587\u5b57\u5217\u3092\u751f\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306e\u7ba1\u7406\u6a29\u9650\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u3068\u7d10\u4ed8\u3051\u3066\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>Application Passwords\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u7ba1\u7406\u753b\u9762\u306e\u300c<strong>\u30d7\u30e9\u30b0\u30a4\u30f3<\/strong>\u300d\u30e1\u30cb\u30e5\u30fc\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u300cApplication Passwords\u300d\u3092\u691c\u7d22\u3057\u307e\u3059\u3002\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3001\u6709\u52b9\u5316\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 752px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/WordPress-add-plugins-Application-Passwords.png\" alt=\"WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u300cApplication Passwords\u300d\" width=\"752\" height=\"445\"><figcaption class=\"wp-caption-text\">WordPress\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u300cApplication Passwords\u300d<\/figcaption><\/figure><\/figure>\n<p>\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u4f5c\u6210\u3092\u59cb\u3081\u308b\u306b\u306f\u3001\u307e\u305a\u3001\u300c<strong>\u30e6\u30fc\u30b6\u30fc<\/strong>\u300d\u30e1\u30cb\u30e5\u30fc\u3092\u5c55\u958b\u3057\u3001\u300c<strong>\u30e6\u30fc\u30b6\u30fc\u4e00\u89a7<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 272px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/expanded-Users-WordPress-menu.png\" alt=\"\u30e6\u30fc\u30b6\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u62e1\u5f35\" width=\"272\" height=\"205\"><figcaption class=\"wp-caption-text\">\u30e6\u30fc\u30b6\u30fc\u30e1\u30cb\u30e5\u30fc\u3092\u62e1\u5f35<\/figcaption><\/figure><\/figure>\n<p>\u6b21\u306b\u3001\u7ba1\u7406\u8005\u30e6\u30fc\u30b6\u30fc\u540d\u306e\u4e0b\u306b\u3042\u308b\u300c<strong>\u7de8\u96c6<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 1015px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/edit-screen-WordPress-user.png\" alt=\"WordPress\u306e\u7ba1\u7406\u8005\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\" width=\"1015\" height=\"471\"><figcaption class=\"wp-caption-text\">WordPress\u306e\u7ba1\u7406\u8005\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9<\/figcaption><\/figure><\/figure>\n<p><strong>\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb<\/strong>\u30da\u30fc\u30b8\u3092\u30b9\u30af\u30ed\u30fc\u30eb\u30c0\u30a6\u30f3\u3057\u3001\u300c<strong>Application Passwords<\/strong>\u300d\u30bb\u30af\u30b7\u30e7\u30f3\u3092\u898b\u3064\u3051\u307e\u3059\u3002\u3053\u3053\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u540d\u524d\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u3053\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u3001\u5f8c\u3067Python\u30a2\u30d7\u30ea\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u8a8d\u8a3c\u3057\u3001REST API\u3092\u5229\u7528\u3059\u308b\u306e\u306b\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 761px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Application-Passwords-plugin-dashboard.png\" alt=\"\u300cApplication Passwords\u300d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\" width=\"761\" height=\"362\"><figcaption class=\"wp-caption-text\">\u300cApplication Passwords\u300d\u306e\u30bb\u30af\u30b7\u30e7\u30f3<\/figcaption><\/figure><\/figure>\n<p>\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u300c<strong>Add New Application Password<\/strong>\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u300124\u6587\u5b57\u306e\u30e9\u30f3\u30c0\u30e0\u306a\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 771px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Application-Passwords-new-password-page.png\" alt=\"\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u751f\u6210\u5b8c\u4e86\" width=\"771\" height=\"110\"><figcaption class=\"wp-caption-text\">\u65b0\u3057\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u751f\u6210\u5b8c\u4e86<\/figcaption><\/figure><\/figure>\n<p>\u6b21\u306b\u3001\u3053\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u30b3\u30d4\u30fc\u3057\u3066\u3001\u5f8c\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u5b89\u5168\u306a\u5834\u6240\u306b\u4fdd\u5b58\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u4e00\u5ea6\u30da\u30fc\u30b8\uff08\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\uff09\u3092\u9589\u3058\u308b\u3068\u3001\u5f8c\u304b\u3089\u78ba\u8a8d\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u306e\u3067\u3001\u3054\u6ce8\u610f\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u6700\u5f8c\u306b\u3001\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002WordPress\u3067\u306f\u3001\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3068\u30a2\u30fc\u30ab\u30a4\u30d6\u306eURL\u69cb\u9020\u3092\u81ea\u5206\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4f8b\u3048\u3070\u300cYour First WordPress Website\u300d\u3068\u3044\u3046\u30bf\u30a4\u30c8\u30eb\u306eWordPress\u306e\u8a18\u4e8b\u306b\u3001\u76f4\u611f\u7684\u306aURL\u3067\u3042\u308b\u300chttps:\/\/your-website.local:port\/your-first-wordpress-website\/\u300d\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u3053\u3046\u3059\u308b\u3053\u3068\u306b\u306f\u3001\u30e6\u30fc\u30b6\u30d3\u30ea\u30c6\u30a3\u3084\u898b\u305f\u76ee\u306e\u7f8e\u3057\u3055\u306e\u5411\u4e0a\u306a\u3069\u3001\u3044\u304f\u3064\u304b\u306e\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u5909\u66f4\u3059\u308b\u306b\u306f\u3001\u300c<strong>\u8a2d\u5b9a<\/strong>\u300d\u306b\u3042\u308b\u300c<strong>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a<\/strong>\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002\u3053\u3053\u3067\u3001\u300c<strong>\u5171\u901a\u8a2d\u5b9a<\/strong>\u300d\u3092\u300c<strong>\u6295\u7a3f\u540d<\/strong>\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/WordPress-change-Permalink-settings-post_name.png\" alt=\"\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\" width=\"996\" height=\"592\"><\/figure>\n<p>\u300c<b>\u6295\u7a3f\u540d<\/b>\u300d\u306e\u69cb\u9020\u3067\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001\u5f8c\u304b\u3089Python\u306e\u30b3\u30fc\u30c9\u3067JSON\u5f62\u5f0f\u3092\u4f7f\u3063\u3066\u8a18\u4e8b\u3092\u53d6\u5f97\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3053\u308c\u3092\u884c\u306a\u3063\u3066\u304a\u304b\u306a\u3044\u3068\u3001JSON\u306e\u30c7\u30b3\u30fc\u30c9\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3059\u3002<\/p>\n<h2>Python\u3092\u4f7f\u3063\u3066WordPress\u30b5\u30a4\u30c8\u3092\u64cd\u4f5c\u3059\u308b\u65b9\u6cd5<\/h2>\n<p>WordPress\u306fPHP\u3067\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u3084\u30b5\u30a4\u30c8\u3001\u30a2\u30d7\u30ea\u304b\u3089\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306bREST API\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002WordPress\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092REST\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3067\u516c\u958b\u3059\u308b\u3068\u3001JSON\u5f62\u5f0f\u3067\u306e\u5229\u7528\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002\u305d\u306e\u7d50\u679c\u3001\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9\u304b\u3089WordPress\u3068\u7d71\u5408\u3057\uff08WordPress\u3092\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u305b\u305a\u3068\u3082\uff09\u4f5c\u6210\u3001\u8aad\u307f\u53d6\u308a\u3001\u66f4\u65b0\u3001\u524a\u9664\uff08CRUD\uff09\u64cd\u4f5c\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u3001\u7c21\u5358\u306aPython\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3057\u3001WordPress REST API\u3092\u4f7f\u7528\u3057\u3066\u6295\u7a3f\u306e\u4f5c\u6210\u3001\u53d6\u5f97\u3001\u66f4\u65b0\u3001\u524a\u9664\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>Python\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3068\u3057\u3066\u65b0\u3057\u304f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001<code>PythonWordPress<\/code>\u306e\u3088\u3046\u306a\u540d\u524d\u3092\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">..\/PythonWordPress<\/code><\/pre>\n<p>\u7d9a\u3044\u3066\u3001Python\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u72ec\u7acb\u3057\u305f\u3082\u306e\u3068\u3057\u3066\u7dad\u6301\u3067\u304d\u308b\u3088\u3046\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u306e\u5206\u96e2\u306b\u3088\u308a\u3001\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u885d\u7a81\u3092\u56de\u907f\u3067\u304d\u307e\u3059\u3002<code>venv<\/code>\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u4eee\u60f3\u74b0\u5883\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">python3 -m venv .venv<\/code><\/pre>\n<p>\u6b21\u306b\u3001<strong>.venv<\/strong>\u4eee\u60f3\u74b0\u5883\u3092\u6709\u52b9\u306b\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u5b9f\u969b\u306eOS\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u00a0<\/p>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>Windows\u2192 <code>.venvScriptsactivate<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<ul>\n<li style=\"list-style-type: none\">\n<ul>\n<li>Mac\/Linux\u2192 <code>.venv\/bin\/activate<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<p>\u6b21\u306b\u3001WordPress\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u306b\u95a2\u9023\u3059\u308b\u8a2d\u5b9a\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002\u30a2\u30d7\u30ea\u306e\u8a2d\u5b9a\u3068Python\u306e\u30b3\u30fc\u30c9\u3092\u5206\u96e2\u3059\u308b\u305f\u3081\u306b\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b<strong>.env<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u74b0\u5883\u5909\u6570\u3092\u30d5\u30a1\u30a4\u30eb\u306b\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-markup\">WEBSITE_URL=\"&lt;&gt;\"\nAPI_USERNAME=\"&lt;&gt;\"\nAPI_PASSWORD=\"&lt;&gt;\"<\/code><\/pre>\n<p>Python\u30a2\u30d7\u30ea\u304b\u3089\u4e0a\u8a18\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u306e\u306f\u7c21\u5358\u3067\u3059\u3002<strong>Python-dotenv<\/strong>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3067\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c<strong>.env<\/strong>\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u8a2d\u5b9a\u3092\u8aad\u307f\u8fbc\u3081\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">pip install python-dotenv<\/code><\/pre>\n<p>\u6b21\u306b\u3001Python\u306e\u975e\u540c\u671f\u578bHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\/\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308b<strong>aiohttp<\/strong>\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">pip install aiohttp<\/code><\/pre>\n<p>\u7d9a\u3044\u3066\u3001<strong>app.py<\/strong>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306b\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">import asyncio\n\nmenu_options = {\n\n1: 'List Posts',\n\n2: 'Retrieve a Post'\n\n}\n\ndef print_menu():\n\nfor key in menu_options.keys():\n\nprint (key, '--', menu_options[key] )\n\nasync def main():\n\nwhile(True):\n\nprint_menu()\n\noption = input_number('Enter your choice: ')\n\n#Check what choice was entered and act accordingly\n\nif option == 1:\n\nprint('Listing posts...')\n\nelif option == 2:\n\nprint('Retrieving a post...')\n\nelse:\n\nprint('Invalid option. Please enter a number between 1 and 5.')\n\ndef input_number(prompt):\n\nwhile True:\n\ntry:\n\nvalue = int(input(prompt))\n\nexcept ValueError:\n\nprint('Wrong input. Please enter a number ...')\n\ncontinue\n\nif value &lt; 0:\n\nprint(\"Sorry, your response must not be negative.\")\n\nelse:\n\nbreak\n\nreturn value\n\ndef input_text(prompt):\n\nwhile True:\n\ntext = input(prompt)\n\nif len(text) == 0:\n\nprint(\"Text is required.\")\n\ncontinue\n\nelse:\n\nbreak\n\nreturn text\n\nif __name__=='__main__':\n\nasyncio.run(main())<\/code><\/pre>\n<p>\u4e0a\u306e\u30b3\u30fc\u30c9\u306f\u3001\u30b3\u30f3\u30bd\u30fc\u30eb\u30e1\u30cb\u30e5\u30fc\u3092\u8868\u793a\u3057\u3001\u30aa\u30d7\u30b7\u30e7\u30f3\u9078\u629e\u306e\u305f\u3081\u306e\u6570\u5b57\u306e\u5165\u529b\u3092\u6c42\u3081\u308b\u3082\u306e\u3067\u3059\u3002\u6b21\u306b\u3001\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u62e1\u5f35\u3057\u3001\u3059\u3079\u3066\u306e\u6295\u7a3f\u3092\u4e00\u89a7\u8868\u793a\u3057\u305f\u308a\u3001\u6295\u7a3fID\u3092\u4f7f\u7528\u3057\u3066\u7279\u5b9a\u306e\u6295\u7a3f\u3092\u53d6\u5f97\u3057\u305f\u308a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b3\u30fc\u30c9\u3067\u6295\u7a3f\u3092\u53d6\u5f97\u3059\u308b<\/h2>\n<p>WordPress REST API\u3068\u306e\u3084\u308a\u53d6\u308a\u306e\u305f\u3081\u306b\u3001\u65b0\u3057\u3044Python\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<strong>wordpress_api_helper.py<\/strong>\u3068\u3044\u3046\u540d\u524d\u3067\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-python\">import aiohttp\n\nimport base64\n\nimport os\n\nimport json\n\nfrom dotenv import load_dotenv\n\nload_dotenv()\n\nuser=os.getenv(\"API_USERNAME\")\n\npassword=os.getenv(\"API_PASSWORD\")\n\nasync def get_all_posts():\n\nasync with aiohttp.ClientSession(os.getenv(\"WEBSITE_URL\")) as session:\n\nasync with session.get(\"\/wp-json\/wp\/v2\/posts\") as response:\n\nprint(\"Status:\", response.status)\n\ntext = await response.text()\n\nwp_posts = json.loads(text)\n\nsorted_wp_posts = sorted(wp_posts, key=lambda p: p['id'])\n\nprint(\"=====================================\")\n\nfor wp_post in sorted_wp_posts:\n\nprint(\"id:\", wp_post['id'])\n\nprint(\"title:\", wp_post['title']['rendered'])\n\nprint(\"=====================================\")\n\nasync def get_post(id):\n\nasync with aiohttp.ClientSession(os.getenv(\"WEBSITE_URL\")) as session:\n\nasync with session.get(f\"\/wp-json\/wp\/v2\/posts\/{id}\") as response:\n\nprint(\"Status:\", response.status)\n\ntext = await response.text()\n\nwp_post = json.loads(text)\n\nprint(\"=====================================\")\n\nprint(\"Post\")\n\nprint(\"     id:\", wp_post['id'])\n\nprint(\"     title:\", wp_post['title']['rendered'])\n\nprint(\"     content:\", wp_post['content']['rendered'])\n\nprint(\"=====================================\")<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e<strong>aiohttp<\/strong>\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u4f7f\u7528\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30e2\u30c0\u30f3\u306a\u8a00\u8a9e\u306b\u306f\u901a\u5e38\u3001\u975e\u540c\u671f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3092\u53ef\u80fd\u306b\u3059\u308b\u69cb\u6587\u3068\u30c4\u30fc\u30eb\u304c\u3042\u308b\u3082\u306e\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001<a href=\"https:\/\/kinsta.com\/jp\/blog\/what-is-an-http-request\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u30a6\u30a7\u30d6\u30ea\u30af\u30a8\u30b9\u30c8<\/a>\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u64cd\u4f5c\u3001\u30c7\u30a3\u30b9\u30afI\/O\u306a\u3069\u306e\u64cd\u4f5c\u3068\u4e26\u884c\u3057\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u30bf\u30b9\u30af\u3092\u5b9f\u884c\u3067\u304d\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5fdc\u7b54\u6027\u304c\u5411\u4e0a\u3057\u307e\u3059\u3002Python\u306b\u306f\u975e\u540c\u671f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306e\u57fa\u76e4\u3068\u3057\u3066<a href=\"https:\/\/docs.python.org\/3\/library\/asyncio.html\" target=\"_blank\" rel=\"noopener noreferrer\">asyncio<\/a>\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3057\u3066<strong> asyncio\u3068\u306e\u9023\u643a<\/strong>\u306e\u305f\u3081\u306b\u69cb\u7bc9\u3055\u308c\u305f\u30e9\u30a4\u30d6\u30e9\u30ea\u304c<a href=\"https:\/\/docs.aiohttp.org\/en\/stable\/\" target=\"_blank\" rel=\"noopener noreferrer\">aiohttp<\/a>\u3067\u3001Python\u3067\u884c\u308f\u308c\u308bHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\/\u30b5\u30fc\u30d0\u30fc\u64cd\u4f5c\u306b\u304a\u3051\u308b\u975e\u540c\u671f\u30a2\u30af\u30bb\u30b9\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u306e<code>ClientSession<\/code>\u95a2\u6570\u304c\u975e\u540c\u671f\u3067\u5b9f\u884c\u3055\u308c\u3001<code>session<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u8fd4\u3057\u307e\u3059\u3002\u3053\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4eca\u56de\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u304c<code>\/wp-json\/wp\/v2\/posts<\/code>\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u5bfe\u3057\u3066HTTP GET\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u6295\u7a3f\u3092\u53d6\u5f97\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u3068\u7279\u5b9a\u306e\u6295\u7a3f\u3092\u53d6\u5f97\u3059\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u306e\u552f\u4e00\u306e\u9055\u3044\u3068\u3057\u3066\u3001URL\u30eb\u30fc\u30c8\u3067<code>post id<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u6e21\u3055\u308c\u307e\u3059\uff08<code>\/wp-json\/wp\/v2\/posts\/{id}<\/code>\uff09\u3002<\/p>\n<p>\u7d9a\u3044\u3066\u306f\u3001<strong>app.py<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u3001<code>import<\/code>\u306e\u8a18\u8ff0\u3092\u884c\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre><code class=\"language-python\">from wordpress_api_helper import get_all_posts, get_post<\/code><\/pre>\n<p>\u6b21\u306b\u3001<code>main<\/code>\u95a2\u6570\u3092\u7de8\u96c6\u3057\u3001<code>get_all_posts<\/code>\u3068<code>get_post<\/code>\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">if option == 1:\n\nprint('Listing posts...')\n\nawait get_all_posts()\n\nelif option == 2:\n\nprint('Retrieving a post...')\n\nid = input_number('Enter the post id: ')\n\nawait get_post(id)<\/code><\/pre>\n<p>\u305d\u3057\u3066\u3001\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">python app.py<\/code><\/pre>\n<p>\u3059\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e1\u30cb\u30e5\u30fc\u304c\u6b21\u306e\u3088\u3046\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 804px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Python-app-WordPress-start.png\" alt=\"Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e1\u30cb\u30e5\u30fc\" width=\"804\" height=\"114\"><figcaption class=\"wp-caption-text\">Python\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30e1\u30cb\u30e5\u30fc<\/figcaption><\/figure><\/figure>\n<p>\u3053\u3053\u3067\u3001Python\u30a2\u30d7\u30ea\u304c\u53d6\u5f97\u3057\u305f\u6295\u7a3f\u306e\u4e00\u89a7\u3092\u8868\u793a\u3059\u308b\u306b\u306f1\u3092\u3001\u6295\u7a3f\u3092\u9078\u629e\u3059\u308b\u306b\u306f2\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 670px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/list-and-select-posts-Python-app.png\" alt=\"TPython\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066\u3001\u6295\u7a3f\u4e00\u89a7\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u9078\u629e\u3057\u305f1\u3064\u306e\u6295\u7a3f\u3092\u8868\u793a\u3059\u308b\" width=\"670\" height=\"624\"><figcaption class=\"wp-caption-text\">Python\u30a2\u30d7\u30ea\u3092\u4f7f\u3063\u3066\u3001\u6295\u7a3f\u4e00\u89a7\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u9078\u629e\u3057\u305f1\u3064\u306e\u6295\u7a3f\u3092\u8868\u793a\u3059\u308b<\/figcaption><\/figure><\/figure>\n<p>\u00a0<\/p>\n<h2>\u30b3\u30fc\u30c9\u3067\u6295\u7a3f\u3092\u4f5c\u6210\u3059\u308b<\/h2>\n<p>Python\u3067WordPress\u306e\u6295\u7a3f\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u307e\u305a<strong>wordpress_api_helper.py<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001<code>create_post<\/code>\u95a2\u6570\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">async def create_post(title, content):\n\nasync with aiohttp.ClientSession(os.getenv(\"WEBSITE_URL\")) as session:\n\nasync with session.post(\n\nf\"\/wp-json\/wp\/v2\/posts?content={content}&title={title}&status=publish\"\n\n, auth=aiohttp.BasicAuth(user, password)) as response:\n\nprint(\"Status:\", response.status)\n\ntext = await response.text()\n\nwp_post = json.loads(text)\n\npost_id = wp_post['id']\n\nprint(f'New post created with id: {post_id}')<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u306f<code>session<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e<code>post<\/code>\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3001REST API\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8URL\u306e\u6a2a\u306b\u3042\u308b<code>auth<\/code>\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u6e21\u3057\u307e\u3059\u3002<code>auth<\/code>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u306f\u3001WordPress\u306e\u30e6\u30fc\u30b6\u30fc\u3068Application Passwords\u3092\u4f7f\u3063\u3066\u4f5c\u6210\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002\u6b21\u306b\u3001<strong>app.py<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001<code>create_post<\/code>\u3068\u30e1\u30cb\u30e5\u30fc\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">from wordpress_api_helper import get_all_posts, get_post, create_post\n\nmenu_options = {\n\n1: 'List Posts',\n\n2: 'Retrieve a Post',\n\n3: 'Create a Post'\n\n}<\/code><\/pre>\n<p>\u6b21\u306b\u30013\u3064\u76ee\u306e\u30e1\u30cb\u30e5\u30fc\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">elif option == 3:\n\nprint('Creating a post...')\n\ntitle = input_text('Enter the post title: ')\n\ncontent = input_text('Enter the post content: ')\n\nawait create_post(title, f\"{content}\")\n<\/code><\/pre>\n<p>\u305d\u3057\u3066\u3001\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3057\u3001\u30aa\u30d7\u30b7\u30e7\u30f33\u3092\u9078\u629e\u3057\u3066\u307f\u307e\u3059\u3002\u30bf\u30a4\u30c8\u30eb\u3068\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6307\u5b9a\u3057\u3066\u3001WordPress\u306e\u6295\u7a3f\u3092\u65b0\u898f\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 671px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/create-a-WordPress-post-Python-app.png\" alt=\"Python\u30a2\u30d7\u30ea\u3067\u306eWordPress\u65b0\u898f\u6295\u7a3f\u4f5c\u6210\" width=\"671\" height=\"335\"><figcaption class=\"wp-caption-text\">Python\u30a2\u30d7\u30ea\u3067\u306eWordPress\u65b0\u898f\u6295\u7a3f\u4f5c\u6210<\/figcaption><\/figure><\/figure>\n<p>\u518d\u5ea61\u3092\u9078\u629e\u3059\u308b\u3068\u3001\u4eca\u4f5c\u6210\u3057\u305f\u3070\u304b\u308a\u306e\u6295\u7a3f\u306eID\u3068\u30bf\u30a4\u30c8\u30eb\u304c\u8fd4\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 672px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/return-id-newly-added-post.png\" alt=\"Python\u30a2\u30d7\u30ea\u3067\u65b0\u3057\u3044\u6295\u7a3f\u306e\u30bf\u30a4\u30c8\u30eb\u3068ID\u3092\u78ba\u8a8d\" width=\"672\" height=\"333\"><figcaption class=\"wp-caption-text\">Python\u30a2\u30d7\u30ea\u3067\u65b0\u3057\u3044\u6295\u7a3f\u306e\u30bf\u30a4\u30c8\u30eb\u3068ID\u3092\u78ba\u8a8d<\/figcaption><\/figure><\/figure>\n<p>\u307e\u305f\u3001WordPress\u30b5\u30a4\u30c8\u3092\u958b\u3044\u3066\u3001\u3053\u306e\u6295\u7a3f\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 754px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Kinsta-Compute-Optimized-C2-post.png\" alt=\"\u65b0\u3057\u3044WordPress\u306e\u6295\u7a3f\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a\" width=\"754\" height=\"600\"><figcaption class=\"wp-caption-text\">\u65b0\u3057\u3044WordPress\u306e\u6295\u7a3f\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u8868\u793a<\/figcaption><\/figure><\/figure>\n<h2>\u30b3\u30fc\u30c9\u3067\u6295\u7a3f\u3092\u66f4\u65b0\u3059\u308b<\/h2>\n<p><strong>wordpress_api_helper.py<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001<code>update_post<\/code>\u95a2\u6570\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">async def update_post(id, title, content):\n\nasync with aiohttp.ClientSession(os.getenv(\"WEBSITE_URL\")) as session:\n\nasync with session.post(\n\nf\"\/wp-json\/wp\/v2\/posts\/{id}?content={content}&title={title}&status=publish\"\n\n, auth=aiohttp.BasicAuth(user, password)) as response:\n\nprint(\"Status:\", response.status)\n\ntext = await response.text()\n\nwp_post = json.loads(text)\n\npost_id = wp_post['id']\n\nprint(f'New post created with id: {post_id}')<\/code><\/pre>\n<p>\u6b21\u306b<strong>app.py<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001<code>update_post<\/code>\u3068\u30e1\u30cb\u30e5\u30fc\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">from wordpress_api_helper import get_all_posts, get_post, create_post, update_post\n\nmenu_options = {\n\n1: 'List Posts',\n\n2: 'Retrieve a Post',\n\n3: 'Create a Post',\n\n4: 'Update a Post'\n\n}<\/code><\/pre>\n<p>\u305d\u3057\u3066\u30014\u3064\u76ee\u306e\u30e1\u30cb\u30e5\u30fc\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">elif option == 4:\n\nprint('Updating a post...')\n\nid = input_number('Enter the post id: ')\n\ntitle = input_text('Enter the post title: ')\n\ncontent = input_text('Enter the post content: ')\n\nawait update_post(id, title, f\"{content}\")\n<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3057\u3001\u30aa\u30d7\u30b7\u30e7\u30f34\u3092\u8a66\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u6295\u7a3fID\u3001\u30bf\u30a4\u30c8\u30eb\u3001\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u6307\u5b9a\u3057\u3066\u3001\u65e2\u5b58\u306e\u6295\u7a3f\u3092\u66f4\u65b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 670px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/updating-WordPress-post-Python-app.png\" alt=\"Python\u30a2\u30d7\u30ea\u3067\u6295\u7a3f\u3092\u66f4\u65b0\" width=\"670\" height=\"338\"><figcaption class=\"wp-caption-text\">Python\u30a2\u30d7\u30ea\u3067\u6295\u7a3f\u3092\u66f4\u65b0<\/figcaption><\/figure><\/figure>\n<p>\u30aa\u30d7\u30b7\u30e7\u30f32\u3092\u9078\u629e\u3057\u3001\u66f4\u65b0\u3057\u305f\u6295\u7a3f\u306eID\u3092\u5165\u529b\u3059\u308b\u3068\u3001\u5148\u307b\u3069\u7de8\u96c6\u3057\u305f\u6295\u7a3f\u306e\u8a73\u7d30\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<figure style=\"width: 673px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/return-updated-post-details.png\" alt=\"Python\u30a2\u30d7\u30ea\u3067\u66f4\u65b0\u3057\u305f\u6295\u7a3f\u306e\u60c5\u5831\u3092\u8868\u793a\" width=\"673\" height=\"318\"><figcaption class=\"wp-caption-text\">Python\u30a2\u30d7\u30ea\u3067\u66f4\u65b0\u3057\u305f\u6295\u7a3f\u306e\u60c5\u5831\u3092\u8868\u793a<\/figcaption><\/figure>\n<h2>\u30b3\u30fc\u30c9\u3067\u6295\u7a3f\u3092\u524a\u9664\u3059\u308b<\/h2>\n<p>REST API\u306b\u6295\u7a3fID\u3092\u6e21\u3059\u3053\u3068\u3067\u3001\u6295\u7a3f\u3092\u524a\u9664\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><strong>wordpress_api_helper.py<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001<code>delete_post<\/code>\u95a2\u6570\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">async def delete_post(id):\n\nasync with aiohttp.ClientSession(os.getenv(\"WEBSITE_URL\")) as session:\n\nasync with session.delete(\n\nf\"\/wp-json\/wp\/v2\/posts\/{id}\"\n\n, auth=aiohttp.BasicAuth(user, password)) as response:\n\nprint(\"Status:\", response.status)\n\ntext = await response.text()\n\nwp_post = json.loads(text)\n\npost_id = wp_post['id']\n\nprint(f'Post with id {post_id} deleted successfully.')<\/code><\/pre>\n<p>\u6b21\u306b<strong>app.py<\/strong>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001<code>delete_post<\/code>\u3068\u30e1\u30cb\u30e5\u30fc\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30b3\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">from wordpress_api_helper import get_all_posts, get_post, create_post, update_post, delete_post\n\nmenu_options = {\n\n1: 'List Posts',\n\n2: 'Retrieve a Post',\n\n3: 'Create a Post',\n\n4: 'Update a Post',\n\n5: 'Delete a Post',\n\n}<\/code><\/pre>\n<p>\u305d\u3057\u3066\u30015\u756a\u76ee\u306e\u30e1\u30cb\u30e5\u30fc\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-python\">elif option == 5:\n\nprint('Deleting a post...')\n\nid = input_number('Enter the post id: ')\n\nawait delete_post(id)<\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3057\u3066\u3001\u30aa\u30d7\u30b7\u30e7\u30f35\u3092\u8a66\u3057\u3066\u307f\u307e\u3059\u3002ID\u3092\u6307\u5b9a\u3057\u3001WordPress\u306e\u65e2\u5b58\u306e\u6295\u7a3f\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 651px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/deleting-WordPress-Post-Python-app.png\" alt=\"Python\u30a2\u30d7\u30ea\u3067\u9078\u629e\u3057\u305f\u6295\u7a3f\u3092\u524a\u9664\u3059\u308b\" width=\"651\" height=\"120\"><figcaption class=\"wp-caption-text\">Python\u30a2\u30d7\u30ea\u3067\u9078\u629e\u3057\u305f\u6295\u7a3f\u3092\u524a\u9664\u3059\u308b<\/figcaption><\/figure><\/figure>\n<p>\u6ce8\u610f\uff09\u300c<strong>List Posts<\/strong>\u300d\u3092\u5b9f\u884c\u3057\u3066\u3082\u3001\u524a\u9664\u3057\u305f\u6295\u7a3f\u304c\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<figure style=\"text-align: center\">\n<p><figure style=\"width: 671px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kinsta.com\/wp-content\/uploads\/2022\/10\/Python-app-listing-posts.png\" alt=\"Python\u30a2\u30d7\u30ea\u3067\u6295\u7a3f\u4e00\u89a7\u3092\u8868\u793a\" width=\"671\" height=\"288\"><figcaption class=\"wp-caption-text\">Python\u30a2\u30d7\u30ea\u3067\u6295\u7a3f\u4e00\u89a7\u3092\u8868\u793a<\/figcaption><\/figure><\/figure>\n<p>\u6295\u7a3f\u304c\u6b63\u3057\u304f\u524a\u9664\u3055\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u6570\u79d2\u5f85\u3063\u3066\u304b\u3089\u300c<strong>List Posts<\/strong>\u300d\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3067\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>WordPress REST API\u3068Python\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001Python\u30a2\u30d7\u30ea\u3068WordPress\u306e\u9023\u643a\u304c\u5b9f\u73fe\u3057\u307e\u3057\u305f\u3002REST API\u306e\u7279\u5fb4\u3092\u6d3b\u304b\u3057\u3001Python\u30a2\u30d7\u30ea\u304b\u3089WordPress\u30b5\u30a4\u30c8\u3092\u9060\u9694\u64cd\u4f5c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u3001Python\u3092\u3046\u307e\u304f\u4f7f\u3044\u3053\u306a\u305b\u3070\u3001\u597d\u307f\u306e\u69cb\u9020\u3067\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u81ea\u52d5\u4f5c\u6210\u3059\u3089\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>DevKinsta\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u3067\u306eWordPress\u30b5\u30a4\u30c8\u306e\u4f5c\u6210\u3068\u958b\u767a\u3092\u52a0\u901f\u3055\u305b\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002WordPress\u306e\u30c6\u30fc\u30de\u3084\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u958b\u767a\u306b\u3082\u4fbf\u5229\u3067\u3059\u3002Docker\u30d9\u30fc\u30b9\u306e\u81ea\u5df1\u5b8c\u7d50\u578b\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30e2\u30c7\u30eb\u306b\u3088\u308a\u3001\u697d\u3005\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3092\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306fPython\u3068WordPress\u3092\u7d44\u307f\u5408\u308f\u305b\u305f\u7d4c\u9a13\u306f\u304a\u6301\u3061\u3067\u3059\u304b\uff1f\u30b3\u30e1\u30f3\u30c8\u6b04\u3067\u304a\u805e\u304b\u305b\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/kinsta.com\/jp\/blog\/wordpress-rest-api\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress REST API\u306e\u57fa\u672c\u306f\u3053\u3061\u3089<\/a>\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002\u3042\u308f\u305b\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u304c\u4eba\u6c17\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0\uff08C &#8230;<\/p>\n","protected":false},"author":117,"featured_media":38219,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kinsta_gated_content":false,"_kinsta_gated_content_redirect":"","footnotes":""},"tags":[628,45],"topic":[763,801,817],"class_list":["post-38218","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-python","tag-webdev","topic-devkinsta","topic-python","topic-web-development-languages"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.6 (Yoast SEO v24.6) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WordPress REST API\u3068Python\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u3001Python\u30a2\u30d7\u30ea\u3068WordPress\u306e\u9023\u643a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WordPress REST API\u3068Python\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u3001Python\u30a2\u30d7\u30ea\u3068WordPress\u306e\u9023\u643a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"Kinsta\u00ae\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-24T08:18:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-28T10:02:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1460\" \/>\n\t<meta property=\"og:image:height\" content=\"730\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Salman Ravoof\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WordPress REST API\u3068Python\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u3001Python\u30a2\u30d7\u30ea\u3068WordPress\u306e\u9023\u643a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png\" \/>\n<meta name=\"twitter:creator\" content=\"@salmanravoof\" \/>\n<meta name=\"twitter:site\" content=\"@Kinsta_JP\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Salman Ravoof\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"9\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/\"},\"author\":{\"name\":\"Salman Ravoof\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987\"},\"headline\":\"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f\",\"datePublished\":\"2022-10-24T08:18:01+00:00\",\"dateModified\":\"2023-08-28T10:02:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/\"},\"wordCount\":401,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png\",\"keywords\":[\"Python\",\"webdev\"],\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/\",\"url\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/\",\"name\":\"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f\",\"isPartOf\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png\",\"datePublished\":\"2022-10-24T08:18:01+00:00\",\"dateModified\":\"2023-08-28T10:02:32+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WordPress REST API\u3068Python\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u3001Python\u30a2\u30d7\u30ea\u3068WordPress\u306e\u9023\u643a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#primaryimage\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png\",\"width\":1460,\"height\":730},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/kinsta.com\/jp\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"DevKinsta\",\"item\":\"https:\/\/kinsta.com\/jp\/topics\/devkinsta\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kinsta.com\/jp\/#website\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"name\":\"Kinsta\u00ae\",\"description\":\"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9\",\"publisher\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kinsta.com\/jp\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kinsta.com\/jp\/#organization\",\"name\":\"Kinsta\",\"url\":\"https:\/\/kinsta.com\/jp\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"contentUrl\":\"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg\",\"width\":500,\"height\":500,\"caption\":\"Kinsta\"},\"image\":{\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/\",\"https:\/\/x.com\/Kinsta_JP\",\"https:\/\/www.instagram.com\/kinstahosting\/\",\"https:\/\/www.linkedin.com\/company\/kinsta\/\",\"https:\/\/www.pinterest.com\/kinstahosting\/\",\"https:\/\/www.youtube.com\/c\/Kinsta\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987\",\"name\":\"Salman Ravoof\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g\",\"caption\":\"Salman Ravoof\"},\"description\":\"Salman Ravoof is a self-taught web developer, writer, creator, and a huge admirer of Free and Open Source Software (FOSS). Besides tech, he's excited by science, philosophy, photography, arts, cats, and food. Learn more about him on his website, and connect with Salman on Twitter.\",\"sameAs\":[\"https:\/\/salmanravoof.com\",\"https:\/\/www.linkedin.com\/in\/salman-ravoof-5a749133\/\",\"https:\/\/x.com\/salmanravoof\"],\"url\":\"https:\/\/kinsta.com\/jp\/blog\/author\/salmanravoof\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WordPress REST API\u3068Python\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u3001Python\u30a2\u30d7\u30ea\u3068WordPress\u306e\u9023\u643a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/","og_locale":"ja_JP","og_type":"article","og_title":"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WordPress REST API\u3068Python\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u3001Python\u30a2\u30d7\u30ea\u3068WordPress\u306e\u9023\u643a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","og_url":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/","og_site_name":"Kinsta\u00ae","article_publisher":"https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","article_published_time":"2022-10-24T08:18:01+00:00","article_modified_time":"2023-08-28T10:02:32+00:00","og_image":[{"width":1460,"height":730,"url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png","type":"image\/png"}],"author":"Salman Ravoof","twitter_card":"summary_large_image","twitter_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WordPress REST API\u3068Python\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u3001Python\u30a2\u30d7\u30ea\u3068WordPress\u306e\u9023\u643a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","twitter_image":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png","twitter_creator":"@salmanravoof","twitter_site":"@Kinsta_JP","twitter_misc":{"\u57f7\u7b46\u8005":"Salman Ravoof","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"9\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#article","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/"},"author":{"name":"Salman Ravoof","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987"},"headline":"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f","datePublished":"2022-10-24T08:18:01+00:00","dateModified":"2023-08-28T10:02:32+00:00","mainEntityOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/"},"wordCount":401,"commentCount":0,"publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png","keywords":["Python","webdev"],"inLanguage":"ja","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/","url":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/","name":"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f","isPartOf":{"@id":"https:\/\/kinsta.com\/jp\/#website"},"primaryImageOfPage":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png","datePublished":"2022-10-24T08:18:01+00:00","dateModified":"2023-08-28T10:02:32+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001WordPress REST API\u3068Python\u306eHTTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u6d3b\u7528\u3057\u3001Python\u30a2\u30d7\u30ea\u3068WordPress\u306e\u9023\u643a\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#primaryimage","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2022\/10\/python-wordpress.png","width":1460,"height":730},{"@type":"BreadcrumbList","@id":"https:\/\/kinsta.com\/jp\/blog\/python-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/kinsta.com\/jp\/"},{"@type":"ListItem","position":2,"name":"DevKinsta","item":"https:\/\/kinsta.com\/jp\/topics\/devkinsta\/"},{"@type":"ListItem","position":3,"name":"WordPress\u3068\u30a2\u30d7\u30ea\u306e\u9023\u643a\u3067Python\u30b9\u30ad\u30eb\u3092\u78e8\u304f"}]},{"@type":"WebSite","@id":"https:\/\/kinsta.com\/jp\/#website","url":"https:\/\/kinsta.com\/jp\/","name":"Kinsta\u00ae","description":"\u9ad8\u901f\u304b\u3064\u5805\u7262\u306a\u30d7\u30ec\u30df\u30a2\u30e0\u30b5\u30fc\u30d0\u30fc\u30b5\u30fc\u30d3\u30b9","publisher":{"@id":"https:\/\/kinsta.com\/jp\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kinsta.com\/jp\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/kinsta.com\/jp\/#organization","name":"Kinsta","url":"https:\/\/kinsta.com\/jp\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/","url":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","contentUrl":"https:\/\/kinsta.com\/jp\/wp-content\/uploads\/sites\/6\/2023\/12\/kinsta-logo.jpeg","width":500,"height":500,"caption":"Kinsta"},"image":{"@id":"https:\/\/kinsta.com\/jp\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Kinsta-Japan-334616080691171\/","https:\/\/x.com\/Kinsta_JP","https:\/\/www.instagram.com\/kinstahosting\/","https:\/\/www.linkedin.com\/company\/kinsta\/","https:\/\/www.pinterest.com\/kinstahosting\/","https:\/\/www.youtube.com\/c\/Kinsta"]},{"@type":"Person","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/9cafd2eedd617e640eeea4cf3a5fd987","name":"Salman Ravoof","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/kinsta.com\/jp\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0c5885f75cb78473fb7408e5e49ad190?s=96&d=mm&r=g","caption":"Salman Ravoof"},"description":"Salman Ravoof is a self-taught web developer, writer, creator, and a huge admirer of Free and Open Source Software (FOSS). Besides tech, he's excited by science, philosophy, photography, arts, cats, and food. Learn more about him on his website, and connect with Salman on Twitter.","sameAs":["https:\/\/salmanravoof.com","https:\/\/www.linkedin.com\/in\/salman-ravoof-5a749133\/","https:\/\/x.com\/salmanravoof"],"url":"https:\/\/kinsta.com\/jp\/blog\/author\/salmanravoof\/"}]}},"acf":[],"_links":{"self":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/38218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/users\/117"}],"replies":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/comments?post=38218"}],"version-history":[{"count":12,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/38218\/revisions"}],"predecessor-version":[{"id":38878,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/posts\/38218\/revisions\/38878"}],"alternate":[{"embeddable":true,"hreflang":"en","title":"English","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/en"},{"embeddable":true,"hreflang":"it","title":"Italian","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/it"},{"embeddable":true,"hreflang":"pt","title":"Portuguese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/pt"},{"embeddable":true,"hreflang":"fr","title":"French","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/fr"},{"embeddable":true,"hreflang":"de","title":"German","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/de"},{"embeddable":true,"hreflang":"ja","title":"Japanese","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/jp"},{"embeddable":true,"hreflang":"nl","title":"Dutch","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/nl"},{"embeddable":true,"hreflang":"es","title":"Spanish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/es"},{"embeddable":true,"hreflang":"sv","title":"Swedish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/se"},{"embeddable":true,"hreflang":"da","title":"Danish","href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/translations\/dk"},{"href":"https:\/\/kinsta.com\/jp\/wp-json\/kinsta\/v1\/posts\/38218\/tree"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media\/38219"}],"wp:attachment":[{"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/media?parent=38218"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/tags?post=38218"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/kinsta.com\/jp\/wp-json\/wp\/v2\/topic?post=38218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}