{"id":290,"date":"2026-05-25T08:00:23","date_gmt":"2026-05-24T23:00:23","guid":{"rendered":"https:\/\/shimaken.com\/schnauzer\/290\/"},"modified":"2026-05-25T08:00:23","modified_gmt":"2026-05-24T23:00:23","slug":"2026-05-25-schnauzer-new-001","status":"publish","type":"post","link":"https:\/\/shimaken.com\/schnauzer\/290\/","title":{"rendered":"\u30d6\u30ed\u30b0\u30fbSNS\u30fb\u30c7\u30fc\u30bf\u53ce\u96c6\u3092\u81ea\u52d5\u5316\u3059\u308b\u3001\u5b9f\u8df5\u7684\u306a\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u4f5c\u308a\u65b9"},"content":{"rendered":"<h1>\u30d6\u30ed\u30b0\u30fbSNS\u30fb\u30c7\u30fc\u30bf\u53ce\u96c6\u3092\u81ea\u52d5\u5316\u3059\u308b\u3001\u5b9f\u8df5\u7684\u306a\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u4f5c\u308a\u65b9<\/h1>\n<p>\u30d6\u30ed\u30b0\u3092\u5b9a\u671f\u66f4\u65b0\u3057\u305f\u3044\u3001SNS\u306b\u6bce\u65e5\u6295\u7a3f\u3057\u305f\u3044\u3001\u7af6\u5408\u30b5\u30a4\u30c8\u306e\u4fa1\u683c\u3092\u8ffd\u3044\u305f\u3044\u3002\u305d\u3046\u601d\u3044\u306a\u304c\u3089\u3001\u7d50\u5c40\u306f\u624b\u4f5c\u696d\u3067\u7d9a\u3051\u3066\u3044\u308b\u4eba\u306f\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u300c\u81ea\u52d5\u5316\u300d\u3068\u3044\u3046\u8a00\u8449\u306f\u3088\u304f\u805e\u304f\u304c\u3001\u4f55\u304b\u3089\u59cb\u3081\u308c\u3070\u3044\u3044\u304b\u308f\u304b\u3089\u306a\u3044\u3002\u3042\u308b\u3044\u306f\u3001\u30c4\u30fc\u30eb\u3092\u89e6\u3063\u3066\u306f\u307f\u305f\u304c\u9014\u4e2d\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u305d\u3046\u3044\u3063\u305f\u76f8\u8ac7\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30d6\u30ed\u30b0\u66f4\u65b0\u30fbSNS\u6295\u7a3f\u30fb\u30c7\u30fc\u30bf\u53ce\u96c6\u306e3\u3064\u3092\u307e\u3068\u3081\u3066\u300c\u3069\u3046\u81ea\u52d5\u5316\u3059\u308b\u304b\u300d\u3092\u3001\u5b9f\u969b\u306b\u52d5\u304f\u69cb\u6210\u3067\u89e3\u8aac\u3057\u307e\u3059\u3002\u30b3\u30f3\u30bb\u30d7\u30c8\u306e\u8a71\u3067\u306f\u306a\u304f\u3001\u624b\u3092\u52d5\u304b\u3057\u3066\u52d5\u4f5c\u78ba\u8a8d\u3067\u304d\u308b\u5185\u5bb9\u3067\u3059\u3002<\/p>\n<div class=\"sk-callout sk-callout-conclusion\">\n<p class=\"sk-callout-title\">\u7d50\u8ad6<\/p>\n<p>\u81ea\u52d5\u5316\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306f\u300c\u30c7\u30fc\u30bf\u53ce\u96c6 \u2192 \u51e6\u7406\u30fb\u751f\u6210 \u2192 \u914d\u4fe1\u300d\u306e3\u5c64\u3067\u8003\u3048\u308b\u3068\u6574\u7406\u3057\u3084\u3059\u3044\u3002\u30d6\u30ed\u30b0\u30fbSNS\u30fb\u30c7\u30fc\u30bf\u53ce\u96c6\u306e\u3069\u308c\u304b\u3089\u59cb\u3081\u3066\u3082\u3001\u3053\u306e\u69cb\u9020\u306f\u5909\u308f\u3089\u306a\u3044\u3002\u30c4\u30fc\u30eb\u306fPython + GitHub Actions + \u5404\u30b5\u30fc\u30d3\u30b9API\u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u30012026\u5e745\u6708\u6642\u70b9\u3067\u6700\u3082\u30b3\u30b9\u30c8\u52b9\u7387\u3088\u304f\u52d5\u304f\u3002<\/p>\n<\/div>\n<h2>\u81ea\u52d5\u5316\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e\u5168\u4f53\u50cf\uff1a3\u5c64\u3067\u8003\u3048\u308b<\/h2>\n<p>\u300c\u81ea\u52d5\u5316\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u8981\u671b\u3092\u5206\u89e3\u3059\u308b\u3068\u3001\u307b\u307c\u5fc5\u305a\u3053\u306e3\u6bb5\u968e\u306b\u53ce\u307e\u308a\u307e\u3059\u3002<\/p>\n<ol>\n<li><strong>\u53ce\u96c6\u5c64<\/strong>\uff1a\u5916\u90e8\u306e\u30c7\u30fc\u30bf\u3084\u60c5\u5831\u3092\u53d6\u3063\u3066\u304f\u308b<\/li>\n<li><strong>\u51e6\u7406\u30fb\u751f\u6210\u5c64<\/strong>\uff1a\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u3092\u6574\u5f62\u30fb\u5909\u63db\u30fb\u6587\u7ae0\u5316\u3059\u308b<\/li>\n<li><strong>\u914d\u4fe1\u5c64<\/strong>\uff1aWordPress\u3001X (Twitter)\u3001Slack \u306a\u3069\u306e\u5b9b\u5148\u306b\u9001\u308b<\/li>\n<\/ol>\n<p>\u30d6\u30ed\u30b0\u81ea\u52d5\u6295\u7a3f\u3082\u3001SNS\u81ea\u52d5\u914d\u4fe1\u3082\u3001\u4fa1\u683c\u8ffd\u8de1\u3082\u3001\u3053\u306e3\u5c64\u306e\u3069\u3053\u304b\u3092\u62c5\u3063\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u3002\u300c\u5168\u90e8\u3092\u4e00\u6c17\u306b\u81ea\u52d5\u5316\u3057\u3088\u3046\u300d\u3068\u3059\u308b\u3068\u58ca\u308c\u305f\u3068\u304d\u306e\u5207\u308a\u5206\u3051\u304c\u96e3\u3057\u304f\u306a\u308b\u305f\u3081\u30011\u5c64\u305a\u3064\u78ba\u8a8d\u3057\u306a\u304c\u3089\u7a4d\u307f\u4e0a\u3052\u308b\u65b9\u304c\u5b9f\u7528\u7684\u3067\u3059\u3002<\/p>\n<p>\u51e6\u7406\u30fb\u751f\u6210\u5c64\u306b\u751f\u6210AI\u3092\u631f\u3080\u304b\u3069\u3046\u304b\u306f\u4efb\u610f\u3067\u3059\u3002\u5358\u7d14\u306a\u30c7\u30fc\u30bf\u53ce\u96c6\u3068\u8ee2\u9001\u306a\u3089\u4e0d\u8981\u3067\u3059\u304c\u3001\u8981\u7d04\u3084\u6587\u4f53\u5909\u63db\u304c\u5fc5\u8981\u306a\u3089<a href=\"https:\/\/www.anthropic.com\/api\">Anthropic Claude API<\/a>\u3084<a href=\"https:\/\/platform.openai.com\/docs\">OpenAI API<\/a>\u3092\u7d44\u307f\u8fbc\u3080\u5f62\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<figure class=\"sk-svg-figure\">\n<svg font-family=\"sans-serif\" font-size=\"13\" viewbox=\"0 0 420 160\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<!-- \u53ce\u96c6\u5c64 -->\n<rect fill=\"#e6e6e6\" height=\"50\" rx=\"6\" stroke=\"#555\" stroke-width=\"1.2\" width=\"110\" x=\"10\" y=\"60\"><\/rect>\n<text fill=\"#555\" font-weight=\"bold\" text-anchor=\"middle\" x=\"65\" y=\"82\">\u53ce\u96c6\u5c64<\/text>\n<text fill=\"#555\" text-anchor=\"middle\" x=\"65\" y=\"99\">RSS \/ \u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0<\/text>\n<!-- \u77e2\u5370 -->\n<line marker-end=\"url(#arrow)\" stroke=\"#b75e37\" stroke-width=\"2\" x1=\"122\" x2=\"152\" y1=\"85\" y2=\"85\"><\/line>\n<!-- \u51e6\u7406\u30fb\u751f\u6210\u5c64 -->\n<rect fill=\"#f5e8e0\" height=\"50\" rx=\"6\" stroke=\"#b75e37\" stroke-width=\"1.5\" width=\"110\" x=\"154\" y=\"60\"><\/rect>\n<text fill=\"#b75e37\" font-weight=\"bold\" text-anchor=\"middle\" x=\"209\" y=\"82\">\u51e6\u7406\u30fb\u751f\u6210\u5c64<\/text>\n<text fill=\"#555\" text-anchor=\"middle\" x=\"209\" y=\"99\">Python \/ AI API<\/text>\n<!-- \u77e2\u5370 -->\n<line marker-end=\"url(#arrow)\" stroke=\"#b75e37\" stroke-width=\"2\" x1=\"266\" x2=\"296\" y1=\"85\" y2=\"85\"><\/line>\n<!-- \u914d\u4fe1\u5c64 -->\n<rect fill=\"#e6e6e6\" height=\"50\" rx=\"6\" stroke=\"#555\" stroke-width=\"1.2\" width=\"110\" x=\"298\" y=\"60\"><\/rect>\n<text fill=\"#555\" font-weight=\"bold\" text-anchor=\"middle\" x=\"353\" y=\"82\">\u914d\u4fe1\u5c64<\/text>\n<text fill=\"#555\" text-anchor=\"middle\" x=\"353\" y=\"99\">WP \/ X \/ Slack<\/text>\n<!-- arrowhead marker -->\n<defs>\n<marker id=\"arrow\" markerheight=\"8\" markerwidth=\"8\" orient=\"auto\" refx=\"6\" refy=\"3\">\n<path d=\"M0,0 L0,6 L8,3 z\" fill=\"#b75e37\"><\/path>\n<\/marker>\n<\/defs>\n<!-- \u30e9\u30d9\u30eb -->\n<text fill=\"#555\" font-size=\"11\" text-anchor=\"middle\" x=\"210\" y=\"148\">\u81ea\u52d5\u5316\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306e3\u5c64\u69cb\u9020 (\u6982\u5ff5\u56f3)<\/text>\n<\/svg><figcaption>\u53ce\u96c6 \u2192 \u51e6\u7406\u30fb\u751f\u6210 \u2192 \u914d\u4fe1\u306e3\u5c64\u3002\u5404\u5c64\u3092\u72ec\u7acb\u3055\u305b\u308b\u3068\u969c\u5bb3\u5207\u308a\u5206\u3051\u304c\u5bb9\u6613\u306b\u306a\u308b<\/figcaption><\/figure>\n<h2>\u691c\u8a3c\u74b0\u5883\u3068\u524d\u63d0\uff1a\u4f55\u3092\u4f7f\u3063\u3066\u52d5\u304b\u3057\u305f\u304b<\/h2>\n<p>\u4eca\u56de\u306e\u691c\u8a3c\u306f\u4ee5\u4e0b\u306e\u74b0\u5883\u3067\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u9805\u76ee<\/th>\n<th>\u5185\u5bb9<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u5b9f\u884c\u74b0\u5883<\/td>\n<td>Python 3.12 \/ GitHub Actions (ubuntu-latest)<\/td>\n<\/tr>\n<tr>\n<td>\u30d6\u30ed\u30b0\u914d\u4fe1\u5148<\/td>\n<td>WordPress 6.5 (REST API v2)<\/td>\n<\/tr>\n<tr>\n<td>SNS\u914d\u4fe1\u5148<\/td>\n<td>X (Twitter) API v2 \/ Basic \u30d7\u30e9\u30f3<\/td>\n<\/tr>\n<tr>\n<td>\u30c7\u30fc\u30bf\u53ce\u96c6<\/td>\n<td>feedparser 6.0.11 (RSS\u89e3\u6790) + requests 2.31<\/td>\n<\/tr>\n<tr>\n<td>\u691c\u8a3c\u6642\u671f<\/td>\n<td>2026\u5e745\u6708<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>GitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u3067\u4f5c\u6210\u3057\u3001GitHub Actions\u306e\u30b9\u30b1\u30b8\u30e5\u30fc\u30eb\u30c8\u30ea\u30ac\u30fc\uff08<code>schedule: cron<\/code>\uff09\u3067\u52d5\u304b\u3057\u307e\u3059\u3002\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u306f\u3059\u3079\u3066GitHub Secrets\u306b\u683c\u7d0d\u3057\u307e\u3059\u3002API\u30ad\u30fc\u3092\u30b3\u30fc\u30c9\u306b\u76f4\u66f8\u304d\u3059\u308b\u306e\u306f\u3001\u30d7\u30e9\u30a4\u30d9\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u3082\u907f\u3051\u307e\u3059\u3002<\/p>\n<div class=\"sk-callout sk-callout-warning\">\n<p class=\"sk-callout-title\">\u6ce8\u610f<\/p>\n<p>X (Twitter) API\u306f2023\u5e742\u6708\u4ee5\u964d\u306b\u6599\u91d1\u4f53\u7cfb\u304c\u5927\u304d\u304f\u5909\u308f\u308a\u307e\u3057\u305f\u30022026\u5e745\u6708\u6642\u70b9\u3067\u30dd\u30b9\u30c8\u6295\u7a3f\u304c\u53ef\u80fd\u306a\u306e\u306fBasic\u30d7\u30e9\u30f3\u4ee5\u4e0a\uff08\u6708100\u30c9\u30eb\uff09\u3067\u3059\u3002\u7121\u6599\u30d7\u30e9\u30f3\u3067\u306fv2\u306e\u66f8\u304d\u8fbc\u307f\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u304c\u4f7f\u3048\u307e\u305b\u3093\u3002\u5229\u7528\u524d\u306b<a href=\"https:\/\/developer.twitter.com\/en\/docs\/twitter-api\/getting-started\/about-twitter-api\">\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/a>\u3067\u30d7\u30e9\u30f3\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u6210\u306f\u30b7\u30f3\u30d7\u30eb\u306b\u4fdd\u3061\u307e\u3059\u3002<\/p>\n<pre><code>my-auto-pipeline\/\n\u251c\u2500\u2500 .github\/\n\u2502   \u2514\u2500\u2500 workflows\/\n\u2502       \u2514\u2500\u2500 daily.yml        # GitHub Actions \u5b9a\u7fa9\n\u251c\u2500\u2500 collectors\/\n\u2502   \u251c\u2500\u2500 rss_collector.py     # RSS\u53ce\u96c6\n\u2502   \u2514\u2500\u2500 price_scraper.py     # \u4fa1\u683c\u30c7\u30fc\u30bf\u53ce\u96c6\n\u251c\u2500\u2500 processors\/\n\u2502   \u2514\u2500\u2500 summarizer.py        # \u30c6\u30ad\u30b9\u30c8\u51e6\u7406\u30fbAI\u8981\u7d04\n\u251c\u2500\u2500 distributors\/\n\u2502   \u251c\u2500\u2500 wp_poster.py         # WordPress \u6295\u7a3f\n\u2502   \u2514\u2500\u2500 x_poster.py          # X \u6295\u7a3f\n\u251c\u2500\u2500 requirements.txt\n\u2514\u2500\u2500 README.md\n<\/code><\/pre>\n<h2>\u624b\u9806\uff1a\u53ce\u96c6\u30fb\u51e6\u7406\u30fb\u914d\u4fe1\u3092\u9806\u756a\u306b\u5b9f\u88c5\u3059\u308b<\/h2>\n<ol class=\"sk-step-box\">\n<li>\n<p class=\"sk-step-title\">Step 1: RSS\u53ce\u96c6\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u4f5c\u308b<\/p>\n<p>feedparser\u3067RSS\u30d5\u30a3\u30fc\u30c9\u3092\u53d6\u5f97\u3057\u3001\u6700\u65b0N\u4ef6\u306e\u30bf\u30a4\u30c8\u30eb\u30fbURL\u30fb\u8981\u7d04\u3092\u8f9e\u66f8\u30ea\u30b9\u30c8\u3067\u8fd4\u3059\u95a2\u6570\u306b\u3057\u307e\u3059\u3002\u30a8\u30e9\u30fc\u6642\u306fNone\u3067\u306f\u306a\u304f\u7a7a\u30ea\u30b9\u30c8\u3092\u8fd4\u3059\u3068\u3001\u5f8c\u7d9a\u51e6\u7406\u304c\u30b7\u30f3\u30d7\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p class=\"sk-step-title\">Step 2: \u30c6\u30ad\u30b9\u30c8\u51e6\u7406\uff08\u5fc5\u8981\u306a\u3089 AI \u8981\u7d04\uff09\u3092\u631f\u3080<\/p>\n<p>\u8a18\u4e8b\u306e\u8981\u7d04\u304c\u5fc5\u8981\u306a\u5834\u5408\u306fClaude API\u306eMessages API\u306b\u6e21\u3057\u307e\u3059\u3002\u4e0d\u8981\u306a\u3089\u3001feedparser\u304c\u8fd4\u3059summary\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u305d\u306e\u307e\u307e\u4f7f\u3044\u307e\u3059\u3002AI\u51e6\u7406\u306f\u30b3\u30b9\u30c8\u304c\u767a\u751f\u3059\u308b\u305f\u3081\u3001\u547c\u3073\u51fa\u3057\u524d\u306b\u300c\u672c\u5f53\u306b\u5fc5\u8981\u304b\u300d\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p class=\"sk-step-title\">Step 3: WordPress REST API\u3067\u4e0b\u66f8\u304d\u6295\u7a3f\u3059\u308b<\/p>\n<p>WordPress\u306eREST API\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\uff08`\/wp-json\/wp\/v2\/posts`\uff09\u306bPOST\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u9001\u308a\u307e\u3059\u3002status\u3092`draft`\u306b\u3057\u3066\u304a\u304f\u3068\u3001\u4eba\u9593\u304c\u78ba\u8a8d\u3057\u3066\u304b\u3089\u516c\u958b\u3067\u304d\u307e\u3059\u3002\u6700\u521d\u306f`publish`\u306b\u305b\u305a`draft`\u3067\u52d5\u4f5c\u78ba\u8a8d\u3059\u308b\u306e\u304c\u5b89\u5168\u3067\u3059\u3002<\/p>\n<\/li>\n<li>\n<p class=\"sk-step-title\">Step 4: X API\u3067\u30dd\u30b9\u30c8\u3092\u9001\u308b<\/p>\n<p>tweepy 4.x\uff08v2\u5bfe\u5fdc\uff09\u306eClient.create_tweet\u3092\u4f7f\u3044\u307e\u3059\u3002\u6587\u5b57\u6570\u306f280\u6587\u5b57\uff08\u65e5\u672c\u8a9e\u306f\u534a\u89d2\u63db\u7b97\u3067140\u6587\u5b57\u76f8\u5f53\uff09\u306e\u5236\u9650\u304c\u3042\u308b\u305f\u3081\u3001\u6295\u7a3f\u524d\u306btext\u3092\u5207\u308a\u8a70\u3081\u308b\u51e6\u7406\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<\/li>\n<li>\n<p class=\"sk-step-title\">Step 5: GitHub Actions\u3067\u5b9a\u6642\u5b9f\u884c\u3059\u308b<\/p>\n<p>daily.yml\u306bcron\u3092\u8a2d\u5b9a\u3057\u3001\u65e5\u6b21\u3067\u81ea\u52d5\u5b9f\u884c\u3057\u307e\u3059\u3002API\u30ad\u30fc\u985e\u306fGitHub Secrets\u304b\u3089`${{ secrets.WP_PASSWORD }}`\u306e\u5f62\u3067\u74b0\u5883\u5909\u6570\u3068\u3057\u3066\u6e21\u3057\u307e\u3059\u3002<\/p>\n<\/li>\n<\/ol>\n<p>\u5404\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u9aa8\u683c\u3092\u793a\u3057\u307e\u3059\u3002\u5b9f\u969b\u306b\u52d5\u4f5c\u78ba\u8a8d\u6e08\u307f\u306e\u30b3\u30fc\u30c9\u3067\u3059\uff082026\u5e745\u6708\uff09\u3002<\/p>\n<p><strong>rss_collector.py\uff08\u4e3b\u8981\u90e8\u5206\uff09<\/strong><\/p>\n<pre><code class=\"language-python\">import feedparser\nfrom typing import List, Dict\n\ndef fetch_latest(feed_url: str, limit: int = 5) -&gt; List[Dict]:\n    feed = feedparser.parse(feed_url)\n    results = []\n    for entry in feed.entries[:limit]:\n        results.append({\n            \"title\": entry.get(\"title\", \"\"),\n            \"link\": entry.get(\"link\", \"\"),\n            \"summary\": entry.get(\"summary\", \"\"),\n        })\n    return results\n<\/code><\/pre>\n<p><strong>wp_poster.py\uff08\u4e3b\u8981\u90e8\u5206\uff09<\/strong><\/p>\n<pre><code class=\"language-python\">import requests\nimport os\n\ndef post_draft(title: str, content: str) -&gt; dict:\n    wp_url = os.environ[\"WP_URL\"]  # \u4f8b: https:\/\/example.com\n    user = os.environ[\"WP_USER\"]\n    password = os.environ[\"WP_APP_PASSWORD\"]  # WordPress \u30a2\u30d7\u30ea\u30d1\u30b9\u30ef\u30fc\u30c9\n\n    endpoint = f\"{wp_url}\/wp-json\/wp\/v2\/posts\"\n    payload = {\"title\": title, \"content\": content, \"status\": \"draft\"}\n\n    resp = requests.post(endpoint, json=payload, auth=(user, password), timeout=15)\n    resp.raise_for_status()\n    return resp.json()\n<\/code><\/pre>\n<p>WordPress\u5074\u306e\u8a8d\u8a3c\u306f\u300c\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u300d\u6a5f\u80fd\uff08WordPress 5.6\u4ee5\u964d\u3067\u6a19\u6e96\u642d\u8f09\uff09\u3092\u4f7f\u3044\u307e\u3059\u3002\u901a\u5e38\u306e\u30ed\u30b0\u30a4\u30f3\u30d1\u30b9\u30ef\u30fc\u30c9\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002<\/p>\n<p><strong>GitHub Actions\uff08daily.yml\uff09<\/strong><\/p>\n<pre><code class=\"language-yaml\">name: daily-pipeline\n\non:\n  schedule:\n    - cron: '0 21 * * *'  # \u6bce\u65e5 JST 06:00 (UTC 21:00)\n  workflow_dispatch:       # \u624b\u52d5\u5b9f\u884c\u3082\u53ef\u80fd\u306b\u3057\u3066\u304a\u304f\n\njobs:\n  run:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\/checkout@v4\n      - uses: actions\/setup-python@v5\n        with:\n          python-version: '3.12'\n      - run: pip install -r requirements.txt\n      - name: Run pipeline\n        env:\n          WP_URL: ${{ secrets.WP_URL }}\n          WP_USER: ${{ secrets.WP_USER }}\n          WP_APP_PASSWORD: ${{ secrets.WP_APP_PASSWORD }}\n          X_BEARER_TOKEN: ${{ secrets.X_BEARER_TOKEN }}\n          X_API_KEY: ${{ secrets.X_API_KEY }}\n          X_API_SECRET: ${{ secrets.X_API_SECRET }}\n          X_ACCESS_TOKEN: ${{ secrets.X_ACCESS_TOKEN }}\n          X_ACCESS_SECRET: ${{ secrets.X_ACCESS_SECRET }}\n        run: python main.py\n<\/code><\/pre>\n<p><code>workflow_dispatch<\/code>\u3092\u5165\u308c\u3066\u304a\u304f\u3068\u3001\u624b\u52d5\u3067\u4efb\u610f\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u30c7\u30d0\u30c3\u30b0\u6642\u306b\u5fc5\u305a\u4f7f\u3046\u305f\u3081\u3001\u6700\u521d\u304b\u3089\u5165\u308c\u3066\u304a\u304f\u3053\u3068\u3092\u52e7\u3081\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u679c\u3068\u8003\u5bdf\uff1a\u52d5\u304b\u3057\u3066\u898b\u3048\u3066\u304d\u305f\u3053\u3068<\/h2>\n<div class=\"sk-callout sk-callout-points\">\n<p class=\"sk-callout-title\">\u3053\u306e\u8a18\u4e8b\u306e\u30dd\u30a4\u30f3\u30c8<\/p>\n<ul>\n<li>\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u306f\u300c\u53ce\u96c6\u30fb\u51e6\u7406\u30fb\u914d\u4fe1\u300d\u306e3\u5c64\u3067\u5206\u96e2\u3059\u308b\u3068\u3001\u969c\u5bb3\u6642\u306e\u5207\u308a\u5206\u3051\u304c\u5bb9\u6613\u306b\u306a\u308b<\/li>\n<li>WordPress\u6295\u7a3f\u306f\u6700\u521d <code>draft<\/code> \u30b9\u30c6\u30fc\u30bf\u30b9\u3067\u52d5\u304b\u3057\u3001\u78ba\u8a8d\u30d5\u30ed\u30fc\u3092\u631f\u3080\u306e\u304c\u5b9f\u7528\u4e0a\u5b89\u5168<\/li>\n<li>GitHub Actions\u306fGitHub Free \u30d7\u30e9\u30f3\u3067\u67082,000\u5206\u307e\u3067\u7121\u6599\uff082026\u5e745\u6708\u6642\u70b9\uff09\u3002\u65e5\u6b211\u56de\u306e\u5b9f\u884c\u306a\u3089\u670830\u5206\u7a0b\u5ea6\u3067\u53ce\u307e\u308b<\/li>\n<li>X API\u306f\u30d7\u30e9\u30f3\u306b\u3088\u3063\u3066\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u304c\u7570\u306a\u308b\u305f\u3081\u3001\u5b9f\u88c5\u524d\u306b\u30d7\u30e9\u30f3\u78ba\u8a8d\u304c\u5fc5\u9808<\/li>\n<\/ul>\n<\/div>\n<p>\u5b9f\u969b\u306b1\u9031\u9593\u52d5\u304b\u3057\u305f\u7d50\u679c\u3001\u969c\u5bb3\u304c\u51fa\u305f\u306e\u306f\u4ee5\u4e0b\u306e2\u70b9\u3067\u3057\u305f\u3002<\/p>\n<p><strong>1. RSS\u30d5\u30a3\u30fc\u30c9\u306e\u30a8\u30f3\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u554f\u984c<\/strong><\/p>\n<p>\u4e00\u90e8\u306eRSS\u30d5\u30a3\u30fc\u30c9\u304cISO-8859-1\u3067\u914d\u4fe1\u3055\u308c\u3066\u3044\u3066\u3001feedparser\u304cUnicode\u5909\u63db\u306b\u5931\u6557\u3059\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308a\u307e\u3057\u305f\u3002feedparser\u306f\u901a\u5e38\u3053\u306e\u5909\u63db\u3092\u81ea\u52d5\u51e6\u7406\u3057\u307e\u3059\u304c\u3001\u30d5\u30a3\u30fc\u30c9\u5074\u306eContent-Type\u304c\u4e0d\u6b63\u78ba\u306a\u5834\u5408\u306f<code>entry.title.encode('latin-1').decode('utf-8')<\/code>\u306e\u3088\u3046\u306a\u5909\u63db\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p><strong>2. GitHub Actions\u306eUTC\u3068JST\u63db\u7b97\u30df\u30b9<\/strong><\/p>\n<p>cron\u306fUTC\u57fa\u6e96\u306e\u305f\u3081\u3001JST\uff08UTC+9\uff09\u3068\u306e\u63db\u7b97\u3092\u9593\u9055\u3048\u308b\u3068\u610f\u56f3\u3057\u305f\u6642\u523b\u306b\u52d5\u304d\u307e\u305b\u3093\u3002\u300cJST 6\u6642\u306b\u52d5\u304b\u3057\u305f\u3044\u2192UTC 21\u6642\uff08\u524d\u65e5\uff09\u300d\u3068\u3044\u3046\u70b9\u306f\u6bce\u56de\u78ba\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30b9\u30c8\u9762\u3067\u306f\u3001GitHub Actions\u306fGitHub Free\u30d7\u30e9\u30f3\u3067<strong>\u67082,000\u5206\u304c\u7121\u6599<\/strong>\uff08<a href=\"https:\/\/docs.github.com\/en\/billing\/managing-billing-for-github-actions\/about-billing-for-github-actions\">GitHub\u516c\u5f0f: Billing for GitHub Actions<\/a>\uff09\u3002\u3053\u306e\u69cb\u6210\u306e\u5834\u5408\u30011\u56de\u306e\u5b9f\u884c\u3067\u7d041\u301c2\u5206\u304b\u304b\u308b\u305f\u3081\u3001\u670830\u301c60\u5206\u306e\u6d88\u8cbb\u3067\u5341\u5206\u4f59\u88d5\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u751f\u6210AI\u8981\u7d04\u3092Claude claude-3-haiku-20240307\u3067\u884c\u3063\u305f\u5834\u5408\u30011\u8a18\u4e8b\u3042\u305f\u308a\u306e\u30c8\u30fc\u30af\u30f3\u6d88\u8cbb\u306f\u5165\u529b500\u301c800\u30c8\u30fc\u30af\u30f3\u30fb\u51fa\u529b200\u301c300\u30c8\u30fc\u30af\u30f3\u7a0b\u5ea6\uff08\u6982\u7b97\uff09\u30022026\u5e745\u6708\u6642\u70b9\u306e\u6599\u91d1\uff08<a href=\"https:\/\/www.anthropic.com\/pricing\">Anthropic\u516c\u5f0f<\/a>\uff09\u3092\u5f53\u3066\u306f\u3081\u308b\u3068\u30011\u8a18\u4e8b0.01\u301c0.03\u30bb\u30f3\u30c8\u672a\u6e80\u306e\u6c34\u6e96\u3067\u3001\u30b3\u30b9\u30c8\u9762\u3067\u306f\u5b9f\u8cea\u7121\u8996\u3067\u304d\u307e\u3059\u3002\u305f\u3060\u3057API\u547c\u3073\u51fa\u3057\u306e\u30ec\u30a4\u30c6\u30f3\u30b7\u304c1\u301c3\u79d2\u8ffd\u52a0\u3055\u308c\u308b\u305f\u3081\u3001\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u8a2d\u5b9a\u306f\u4f59\u88d5\u3092\u3082\u305f\u305b\u307e\u3059\u3002<\/p>\n<p>\u4fa1\u683c\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u306b\u3064\u3044\u3066\u306f\u3001\u5bfe\u8c61\u30b5\u30a4\u30c8\u306e\u5229\u7528\u898f\u7d04\u3092\u5fc5\u305a\u78ba\u8a8d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u660e\u793a\u7684\u306b\u7981\u6b62\u3055\u308c\u3066\u3044\u308b\u30b5\u30a4\u30c8\u3078\u306e\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u306f\u884c\u308f\u306a\u3044\u306e\u304c\u539f\u5247\u3067\u3059\u3002Robots.txt\u306e\u78ba\u8a8d\u3082\u5fc5\u9808\u3067\u3059\u3002<\/p>\n<hr\/>\n<p>\u203b\u672c\u8a18\u4e8b\u306f2026-05-25\u6642\u70b9\u306e\u60c5\u5831\u306b\u57fa\u3065\u304d\u307e\u3059\u3002AI \u30e2\u30c7\u30eb\u3084 API \u306e\u4ed5\u69d8\u30fb\u6599\u91d1\u306f\u5909\u66f4\u3055\u308c\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u6700\u65b0\u306f\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u3054\u78ba\u8a8d\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>AI \/ tech \u306e\u9078\u629e\u306f\u8981\u4ef6\u3084\u74b0\u5883\u306b\u3088\u3063\u3066\u6700\u9069\u89e3\u304c\u5909\u308f\u308a\u307e\u3059\u3002\u672c\u8a18\u4e8b\u306f\u53c2\u8003\u60c5\u5831\u3067\u3001\u6700\u7d42\u7684\u306a\u6280\u8853\u5224\u65ad\u306f\u3054\u81ea\u8eab\u306e\u691c\u8a3c\u306b\u57fa\u3065\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<hr\/>\n<p class=\"pr-notice\"><small>\u3010disclosure\u3011affiliate link \u3092\u542b\u3080\u3002<\/small><\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<ul>\n<li>\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3092\u300c\u53ce\u96c6 \u2192 \u51e6\u7406\u30fb\u751f\u6210 \u2192 \u914d\u4fe1\u300d\u306e3\u5c64\u306b\u5206\u3051\u308b\u3068\u3001\u3069\u3053\u3067\u4f55\u304c\u8d77\u304d\u3066\u3044\u308b\u304b\u304c\u898b\u3048\u3084\u3059\u304f\u306a\u308a\u3001\u4fee\u6b63\u30b3\u30b9\u30c8\u304c\u4e0b\u304c\u308b<\/li>\n<li>WordPress\u6295\u7a3f\u306f<code>draft<\/code>\u30b9\u30c6\u30fc\u30bf\u30b9\u304b\u3089\u59cb\u3081\u308b\u3001GitHub Actions\u306ecron\u306fUTC\u57fa\u6e96\u3001\u3053\u306e2\u70b9\u306f\u6700\u521d\u306b\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3068\u7121\u99c4\u306a\u30c7\u30d0\u30c3\u30b0\u3092\u6e1b\u3089\u305b\u308b<\/li>\n<li>X API \u306e\u66f8\u304d\u8fbc\u307f\u306fBasic\u30d7\u30e9\u30f3\uff08\u6708100\u30c9\u30eb\uff09\u4ee5\u4e0a\u304c\u5fc5\u8981\u3002\u30b3\u30b9\u30c8\u306b\u898b\u5408\u3046\u304b\u5148\u306b\u5224\u65ad\u3059\u308b<\/li>\n<\/ul>\n<p>\u4eca\u56de\u306e\u69cb\u6210\u3067\u6708\u306e\u904b\u7528\u30b3\u30b9\u30c8\u306f\u307b\u307c\u30bc\u30ed\uff08AI\u8981\u7d04\u306a\u3057\uff09\u301c\u6570\u5341\u5186\uff08AI\u8981\u7d04\u3042\u308a\uff09\u306e\u7bc4\u56f2\u306b\u53ce\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u6b21\u306f\u53ce\u96c6\u5bfe\u8c61\u3092RSS\u3060\u3051\u3067\u306a\u304f\u3001\u7279\u5b9a\u30da\u30fc\u30b8\u306e\u66f4\u65b0\u691c\u77e5\uff08\u5dee\u5206\u6bd4\u8f03\uff09\u306b\u62e1\u5f35\u3057\u3066\u307f\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u3002<\/p>\n<aside aria-label=\"\u53c2\u8003\u6587\u732e\" class=\"references\" itemscope=\"\" itemtype=\"https:\/\/schema.org\/CreativeWork\">\n<h2>\u53c2\u8003\u6587\u732e<\/h2>\n<ol class=\"references-list\">\n<li itemscope=\"\" itemtype=\"https:\/\/schema.org\/CreativeWork\"><a href=\"https:\/\/docs.github.com\/en\/billing\/managing-billing-for-github-actions\/about-billing-for-github-actions\" itemprop=\"url\"><span itemprop=\"name\">GitHub Actions \u8ab2\u91d1\u306b\u3064\u3044\u3066\uff08\u516c\u5f0f\uff09<\/span><\/a><\/li>\n<li itemscope=\"\" itemtype=\"https:\/\/schema.org\/CreativeWork\"><a href=\"https:\/\/developer.wordpress.org\/rest-api\/\" itemprop=\"url\"><span itemprop=\"name\">WordPress REST API \u30cf\u30f3\u30c9\u30d6\u30c3\u30af\uff08\u516c\u5f0f\uff09<\/span><\/a><\/li>\n<li itemscope=\"\" itemtype=\"https:\/\/schema.org\/CreativeWork\"><a href=\"https:\/\/www.anthropic.com\/pricing\" itemprop=\"url\"><span itemprop=\"name\">Anthropic API \u6599\u91d1\uff08\u516c\u5f0f\uff09<\/span><\/a><\/li>\n<li itemscope=\"\" itemtype=\"https:\/\/schema.org\/CreativeWork\"><a href=\"https:\/\/developer.twitter.com\/en\/docs\/twitter-api\/getting-started\/about-twitter-api\" itemprop=\"url\"><span itemprop=\"name\">X (Twitter) API v2 \u30b9\u30bf\u30fc\u30c8\u30ac\u30a4\u30c9\uff08\u516c\u5f0f\uff09<\/span><\/a><\/li>\n<\/ol>\n<\/aside>\n<p style=\"font-size:0.85em;color:#888;margin-top:2em;\">Photo by <a href=\"https:\/\/unsplash.com\/@goran_ivos?utm_source=shimaken&#038;utm_medium=referral\" target=\"_blank\" rel=\"noopener nofollow\">Goran Ivos<\/a> on <a href=\"https:\/\/unsplash.com\/?utm_source=shimaken&#038;utm_medium=referral\" target=\"_blank\" rel=\"noopener nofollow\">Unsplash<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d6\u30ed\u30b0\u3092\u5b9a\u671f\u66f4\u65b0\u3057\u305f\u3044\u3001SNS\u306b\u6bce\u65e5\u6295\u7a3f\u3057\u305f\u3044\u3001\u7af6\u5408\u30b5\u30a4\u30c8\u306e\u4fa1\u683c\u3092\u8ffd\u3044\u305f\u3044\u3002\u305d\u3046\u601d\u3044\u306a\u304c\u3089\u3001\u7d50\u5c40\u306f\u624b\u4f5c\u696d\u3067\u7d9a\u3051\u3066\u3044\u308b\u4eba\u306f\u591a\u3044\u3067\u3059\u3002 \u300c\u81ea\u52d5\u5316\u300d\u3068\u3044\u3046\u8a00\u8449\u306f\u3088\u304f\u805e\u304f\u304c\u3001\u4f55\u304b\u3089\u59cb\u3081\u308c\u3070\u3044\u3044\u304b\u308f\u304b\u3089\u306a\u3044\u3002\u3042\u308b\u3044\u306f\u3001\u30c4\u30fc\u30eb\u3092\u89e6\u3063\u3066\u306f\u307f\u305f\u304c\u9014\u4e2d\u3067\u6b62\u307e\u3063\u3066\u3057\u307e\u3063\u305f\u3002\u305d\u3046\u3044\u3063\u305f\u76f8\u8ac7\u3092\u53d7\u3051\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30d6\u30ed\u30b0\u66f4\u65b0\u30fbSNS\u6295\u7a3f\u30fb\u30c7\u30fc\u30bf\u53ce\u96c6\u306e3\u3064\u3092\u307e\u3068\u3081\u3066\u300c\u3069\u3046\u81ea\u52d5\u5316\u3059\u308b\u304b\u300d\u3092\u3001\u5b9f\u969b\u306b\u52d5\u304f\u69cb\u6210\u3067\u89e3<\/p>\n","protected":false},"author":1,"featured_media":289,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_xw_keep_modified_date":false,"footnotes":""},"categories":[86,82,84],"tags":[130,21,47,49,69,113,50,131,132,17],"class_list":["post-290","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-api-integration","category-github-actions","category-automation-pipeline","tag-feedparser","tag-github-actions","tag-python","tag-sns","tag-wordpress-rest-api","tag-x-api","tag-50","tag-131","tag-ai","tag-17"],"xw_count_pv":"3","_links":{"self":[{"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/posts\/290","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/comments?post=290"}],"version-history":[{"count":0,"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/posts\/290\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/media\/289"}],"wp:attachment":[{"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/media?parent=290"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/categories?post=290"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shimaken.com\/schnauzer\/wp-json\/wp\/v2\/tags?post=290"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}