{"id":3079,"date":"2018-10-19T08:42:51","date_gmt":"2018-10-18T23:42:51","guid":{"rendered":"https:\/\/pandanote.info\/?p=3079"},"modified":"2018-10-19T08:42:51","modified_gmt":"2018-10-18T23:42:51","slug":"twitter-api%e3%81%a7github-pages%e3%81%ae%e6%9b%b4%e6%96%b0%e6%83%85%e5%a0%b1%e3%82%92%e6%8a%95%e7%a8%bf%e3%81%99%e3%82%8b%e3%81%9f%e3%82%81%e3%81%aepython3%e3%81%ae%e3%83%97%e3%83%ad%e3%82%b0","status":"publish","type":"post","link":"https:\/\/pandanote.info\/?p=3079","title":{"rendered":"Twitter API\u3067GitHub Pages\u306e\u66f4\u65b0\u60c5\u5831\u3092\u6295\u7a3f\u3059\u308b\u305f\u3081\u306ePython3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u66f8\u3044\u3066\u307f\u305f\u3002"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p><a href=\"https:\/\/pandanote.info\/?p=3060\">\u524d\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u7d50\u5c40php-fpm\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u304c\u4f55\u3068\u304b\u3046\u307e\u304f\u3044\u3063\u305f\u3068\u3053\u308d\u307e\u3067\u66f8\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u305d\u3053\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f\u52e2\u3044\u306b\u4e57\u3063\u3066\u3001SNAP(NextScripts: Social Networks Auto-Poster)\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066Twitter\u306bWordpress\u306e\u8a18\u4e8b\u306e\u65b0\u7740\u60c5\u5831\u3092\u6d41\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u4f5c\u696d\u306b\u3064\u3044\u3066\u66f8\u304d\u305f\u3044\u2026 \u3068\u6700\u521d\u306f\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001<\/p>\n<ol>\n<li>\u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u6642\u70b9\u3067\u306fTwitter\u306bWordpress\u306e\u8a18\u4e8b\u306e\u65b0\u7740\u60c5\u5831\u3092\u6d41\u3059\u3053\u3068\u81ea\u4f53\u306b\u6210\u529f\u3057\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u3053\u3068\u3002<\/li>\n<li>\u307e\u305f\u3001SNAP\u30d7\u30e9\u30b0\u30a4\u30f3\u81ea\u4f53\u3082\u6a5f\u80fd\u304c\u8c4a\u5bcc\u305d\u3046\u306a\u306e\u3067\u3001\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u5225\u306e\u8a18\u4e8b\u3068\u3057\u3066\u4f7f\u3044\u65b9\u3092\u8a18\u8ff0\u3067\u304d\u308b\u304b\u3082\u3057\u308c\u306a\u3044\u3053\u3068\u3002<\/li>\n<li>\u4e00\u65b9\u3067\u3001GitHub Pages\u4e0a\u306b\u69cb\u7bc9\u3057\u305f\u300c<a href=\"https:\/\/sidestory.pandanote.info\/\">panda\u5927\u5b66\u7fd2\u5e33\u5916\u4f1d<\/a>\u300d\u306f\u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u6642\u70b9\u3067\u306f\u66f4\u65b0\u60c5\u5831\u3092\u6d41\u3059\u3053\u3068\u304c\u3067\u304d\u3066\u3044\u306a\u304b\u3063\u305f\u3053\u3068\u3002<\/li>\n<\/ol>\n<p>\u304b\u3089\u3001\u300cYouTube Data API v3\u3092\u4f7f\u3063\u3066\u53d6\u5f97\u3057\u305fYouTube\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u60c5\u5831\u304b\u3089GitHub Pages\u7528\u306e\u30de\u30fc\u30af\u30c0\u30a6\u30f3\u5f62\u5f0f\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u3063\u3066\u304b\u3089\u3001\u305d\u306e\u65b0\u7740\u60c5\u5831\u3092Twitter API\u3092\u4f7f\u3063\u3066Twitter\u306b\u6295\u7a3f\u3059\u308b\u300d\u6a5f\u80fd\u3092\u6301\u3064Python3\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u3063\u3066\u307f\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u3046\u3061\u3001Twitter\u95a2\u9023\u306e\u90e8\u5206\u3092\u4e2d\u5fc3\u306b\u66f8\u3044\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<h2>\u958b\u767a\u74b0\u5883\u306e\u6e96\u5099\u3002<\/h2>\n<p>Twitter API\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u30a2\u30af\u30bb\u30b9\u7528\u306e\u30ad\u30fc\u306e\u53d6\u5f97\u3068\u3001Python3\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<h3>\u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u304b\u3089\u306eTwitter API\u3078\u306e\u30a2\u30af\u30bb\u30b9\u7528\u306e\u30ad\u30fc\u7b49\u306e\u53d6\u5f97\u3002<\/h3>\n<p>Twitter API\u3078\u306e\u30a2\u30af\u30bb\u30b9\u7528\u306e\u30ad\u30fc\u7b49\u306f <a href=\"https:\/\/apps.twitter.com\/\">https:\/\/apps.twitter.com\/<\/a> \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u6bd4\u8f03\u7684\u7c21\u5358\u306b\u53d6\u5f97\u3067\u304d\u308b\u3068\u601d\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u5b9f\u969b\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3068\u2026<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=3092\" rel=\"attachment wp-att-3092\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene1a-300x163.png\" alt=\"\" width=\"300\" height=\"163\" class=\"alignnone size-medium wp-image-3092\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene1a-300x163.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene1a-768x419.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene1a-1024x558.png 1024w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene1a-660x360.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene1a.png 1167w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u306a\u3093\u304b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u30022018\u5e747\u6708\u304b\u3089Twitter API\u3092\u5229\u7528\u6761\u4ef6\u304c\u53b3\u683c\u5316\u3055\u308c\u305f\u3088\u3046\u3067\u3001\u5229\u7528\u306b\u306fTwitter\u306e\u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u5fc5\u8981\u306b\u306a\u3063\u305f\u3088\u3046\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u300cApply for a developer account\u300d(\u4e0a\u56f3\u306e\u8d64\u77e2\u5370)\u3092\u62bc\u3057\u3066\u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u4e0a\u56f3\u306fAPI\u306e\u30ad\u30fc\u306e\u53d6\u5f97\u5f8c\u306b\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u53d6\u5f97\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u3001&#8221;pandanote publisher&#8221;\u3068\u3044\u3046\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u3059\u3067\u306b\u8868\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u3044\u3063\u305f\u3093\u898b\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u3057\u3066\u3044\u305f\u3060\u304f\u65b9\u5411\u3067\u304a\u9858\u3044\u3044\u305f\u3057\u307e\u3059\u3002&#x1f647;<\/p>\n<p>\u3042\u3068\u306f\u3001\u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f7f\u7528\u76ee\u7684\u3068\u304b\u3044\u308d\u3044\u308d\u805e\u304b\u308c\u307e\u3059\u3002\u82f1\u8a9e\u3067\u9069\u5f53\u306b\u5165\u529b\u3057\u3066\u3044\u304f\u3068\u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u4f5c\u6210\u3055\u308c\u308b\u306e\u3067\u3059\u304c\u3001\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8\u3092\u3068\u308b\u306e\u3092\u5fd8\u308c\u307e\u3057\u305f\u2026(\u00b4\u30fb\u03c9\u30fb`)<\/p>\n<p>\u958b\u767a\u8005\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u53d6\u5f97\u3067\u304d\u308b\u3068\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3054\u3068\u306bAPI\u30ad\u30fc\u7b49\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u4ee5\u4e0b\u306e4\u7a2e\u985e\u306eAPI\u30ad\u30fc\u7b49\u304c\u53d6\u5f97\u3067\u304d\u307e\u3059\u3002<\/p>\n<ol>\n<li>Consumer API key<\/li>\n<li>Consumer API secret key<\/li>\n<li>Access token<\/li>\n<li>Access token secret<\/li>\n<\/ol>\n<p>\u3053\u308c\u3089\u3092\u30e1\u30e2\u5e33\u306a\u3069\u306e\u30a8\u30c7\u30a3\u30bf\u306b\u30b3\u30d4\u30fc\u3057\u3066\u304a\u304d\u307e\u3059\u3002\u306a\u304a\u3001\u4e0a\u8a18\u306e\u30ad\u30fc\u7b49\u306b\u306f\u4ed6\u4eba\u306b\u516c\u958b\u3057\u3066\u306f\u306a\u3089\u306a\u3044\u3082\u306e\u3082\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u306e\u3067\u3001\u7528\u304c\u6e08\u3093\u3060\u3089\u524a\u9664\u3057\u305f\u65b9\u304c\u7121\u96e3\u3067\u3059\u3002<\/p>\n<h3>twitter\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u6b21\u306btwitter\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4ee5\u4e0b\u306e\u624b\u9806\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u306a\u304a\u3001twitter\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u958b\u767a\u306f<a href=\"https:\/\/github.com\/sixohsix\/twitter\">\u3053\u3053<\/a>\u3067\u884c\u308f\u308c\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<ol>\n<li>pip\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u3044\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u3067\u304d\u306a\u3044\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001root\u4ee5\u5916\u306e\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001pip\u3092\u6700\u65b0\u7248\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002\n<div class=\"code\">$ pip3 install pip<\/div>\n<p>&nbsp;\n<\/li>\n<li>root\u6a29\u9650\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001twitter\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\n<div class=\"code\"># pip3 install twitter<\/div>\n<p>&nbsp;\n<\/li>\n<\/ol>\n<p>\u3053\u308c\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<h2>Twitter API\u3092\u4f7f\u3046\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u307f\u308b\u3002<\/h2>\n<h3>\u3055\u304f\u3055\u304f\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3002<\/h3>\n<p>\u53c2\u8003\u6587\u732e\u306e\u30b5\u30a4\u30c8\u306b\u3042\u308b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3092\u3082\u3068\u306b\u3057\u3066\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/e9160fa5336b21c16ac4c713c4933311.js\"><\/script><br \/>\nConsumer API Key\u53ca\u3073Consumer API secret key\u306f\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u8aad\u307f\u51fa\u3059\u3088\u3046\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<h3>\u8a66\u3057\u306b\u5b9f\u884c\u3002<\/h3>\n<p>\u30b3\u30fc\u30c9\u304c\u66f8\u304d\u7d42\u308f\u3063\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u884c\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<div class=\"code\">$ python3 .\/pandanote_publisher.py<\/div>\n<p>&nbsp;<br \/>\n\u3059\u308b\u3068\u2026<\/p>\n<div class=\"code\">[panda@asama sidestory]$ python3 .\/pandanote_publisher.py<br \/>\nHi there! We&#8217;re gonna get you all set up to use Pandanote publisher.<br \/>\nOpening: https:\/\/api.twitter.com\/oauth\/authorize?oauth_token=xHD2HgAAAAAA8rzrAAABZoe1RIc<\/p>\n<p>In the web browser window that opens please choose to Allow<br \/>\naccess. Copy the PIN number that appears on the next page and paste or<br \/>\ntype it here:<\/p>\n<p>Uh, I couldn&#8217;t open a browser on your computer. Please go here to get<br \/>\nyour PIN:<\/p>\n<p>https:\/\/api.twitter.com\/oauth\/authorize?oauth_token=xHD2HgAAAAAA8rzrAAABZoe1RIc<br \/>\nPlease enter the PIN:<\/p><\/div>\n<p>&nbsp;<br \/>\n\u3068\u8868\u793a\u3055\u308c\u3066\u3001PIN\u306e\u5165\u529b\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u306e\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u5b9f\u884c\u53ef\u80fd\u306a\u5225\u306ePC\u3067\u30d6\u30e9\u30a6\u30b6\u3092\u8d77\u52d5\u3057\u3001\u6307\u5b9a\u3055\u308c\u305fURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066PIN\u3092\u53d6\u5f97\u3057\u3066\u5165\u529b\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u2026<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=3113\" rel=\"attachment wp-att-3113\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene2a-300x212.png\" alt=\"\" width=\"300\" height=\"212\" class=\"alignnone size-medium wp-image-3113\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene2a-300x212.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene2a-768x543.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene2a-660x466.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene2a-200x140.png 200w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene2a.png 900w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u4e0a\u56f3\u306e\u3088\u3046\u306a\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u306e\u3067\u3001\u300c\u9023\u643a\u30a2\u30d7\u30ea\u3092\u8a8d\u8a3c\u300d\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068PIN\u304c\u8a18\u8f09\u3055\u308c\u305f\u753b\u9762\u304c\u73fe\u308c\u307e\u3059\u306e\u3067\u3001&#8221;Please enter the PIN:&#8221;\u306e\u30d7\u30ed\u30f3\u30d7\u30c8\u306b\u5bfe\u3057\u3066\u3001\u8a18\u8f09\u3055\u308c\u305fPIN\u3092\u5165\u529b\u3057\u3001Enter\u30ad\u30fc\u3092\u62bc\u3057\u307e\u3059\u3002\u3059\u308b\u3068\u2026<\/p>\n<div class=\"code\">That&#8217;s it! Your authorization keys have been written to pandanote_publisher_credentials.txt.<\/div>\n<p>&nbsp;<br \/>\n\u3068\u8868\u793a\u3055\u308c\u3066\u3001pandanote_publisher_credentials.txt\u306boauth_token\u53ca\u3073oauth_secret\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n<h3>\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3092\u53d6\u5f97\u3059\u308b\u3002<\/h3>\n<p>\u6b21\u306b\u3001\u524d\u7bc0\u306e\u30b3\u30fc\u30c9\u4f8b\u306b1\u884c\u8ffd\u52a0\u3057\u3066\u3001\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3092\u53d6\u5f97\u3057\u3066\u307f\u307e\u3059\u3002\u30b3\u30fc\u30c9\u4f8b\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/2119131833021f6d54c234eb2374cf25.js\"><\/script><br \/>\n\u3053\u308c\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/p>\n<div class=\"code\">$ python3 .\/pandanote_publisher_v1.py<br \/>\n[{&#8216;created_at&#8217;: &#8216;Thu Oct 18 13:22:55 +0000 2018&#8217;, &#8230;<br \/>\n(\u4ee5\u4e0b\u304b\u306a\u308a\u9577\u3044\u306e\u3067\u3001\u7701\u7565\u3002)<br \/>\n}]<\/div>\n<p>&nbsp;<\/p>\n<p>JSON\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u306e\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002\u306a\u304a\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3084\u4f7f\u7528\u65b9\u6cd5\u306b\u306f\u89e6\u308c\u306a\u3044\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<h3>\u6295\u7a3f\u306e\u30c6\u30b9\u30c8\u3002<\/h3>\n<p>\u3055\u3089\u306b\u3001\u524d\u7bc0\u3067\u8ffd\u52a0\u3057\u305f\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3061\u3087\u3044\u3068\u5909\u3048\u3066\u66f4\u65b0\u60c5\u5831\u3092\u6295\u7a3f\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n<script src=\"https:\/\/gist.github.com\/pandanote-info\/9c23a875e69a45931675919ee4905da4.js\"><\/script><br \/>\n\u3053\u308c\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u2026<\/p>\n<div class=\"code\">$ python3 pandanote_publisher.py<\/div>\n<p>&nbsp;<br \/>\n\u4f55\u3082\u51fa\u529b\u3055\u308c\u308b\u3053\u3068\u306a\u304f\u7d42\u4e86\u3057\u307e\u3059\u304c\u3001Twitter\u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3092\u898b\u308b\u3068\u2026<br \/>\n<a href=\"https:\/\/pandanote.info\/?attachment_id=3114\" rel=\"attachment wp-att-3114\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene3a-300x166.png\" alt=\"\" width=\"300\" height=\"166\" class=\"alignnone size-medium wp-image-3114\" srcset=\"https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene3a-300x166.png 300w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene3a-768x425.png 768w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene3a-1024x566.png 1024w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene3a-660x365.png 660w, https:\/\/pandanote.info\/wordpress\/wp-content\/uploads\/2018\/10\/collaboration_with_twitter_scene3a.png 1150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u30e2\u30b6\u30a4\u30af\u3060\u3089\u3051\u3067\u3059\u307f\u307e\u305b\u3093\u304c\u3001\u6295\u7a3f\u306b\u6210\u529f\u3057\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002(\uff40\u30fb\u03c9\u30fb\u00b4)<\/p>\n<h3>\u65e2\u5b58\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3078\u306e\u7d44\u307f\u8fbc\u307f\u3002<\/h3>\n<p>\u6700\u5f8c\u306b<a href=\"https:\/\/pandanote.info\/?p=2872\">\u3053\u306e\u8a18\u4e8b<\/a>\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u672b\u5c3e\u306b\u4e0a\u8a18\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u8ffd\u52a0\u3057\u307e\u3059(import\u6587\u306f\u5148\u982d\u306e\u65b9\u306b\u8ffd\u52a0\u3057\u307e\u3059)\u304c\u2026<\/p>\n<p>\u52d5\u4f5c\u78ba\u8a8d\u306f\u300cpanda\u5927\u5b66\u7fd2\u5e33\u5916\u4f1d\u300d\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u306e\u66f4\u65b0\u6642\u306b\u5225\u9014\u3084\u308a\u307e\u3059\u2026(\u00b4\u30fb\u03c9\u30fb`)<\/p>\n<h2>\u307e\u3068\u3081<\/h2>\n<p>Twitter API\u3092\u4f7f\u3063\u3066GitHub Pages\u306eWeb\u30b5\u30a4\u30c8\u306e\u66f4\u65b0\u60c5\u5831\u3092Twitter\u306b\u6295\u7a3f\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>Twitter API\u306f\u5f90\u3005\u306b\u4f7f\u7528\u6761\u4ef6\u304c\u53b3\u683c\u5316\u3055\u308c\u305f\u308a\u547c\u3073\u51fa\u3057\u56de\u6570\u7b49\u306e\u4f7f\u7528\u5236\u9650\u304c\u53b3\u3057\u304f\u306a\u3063\u305f\u308a\u3067\u3001\u5927\u91cf\u306b\u30c7\u30fc\u30bf\u3092\u53ce\u96c6\u3057\u3066\u30c7\u30fc\u30bf\u89e3\u6790\u3092\u884c\u3046\u3068\u3044\u3063\u305f\u3088\u3046\u306a\u7528\u9014\u306b\u7121\u6599\u3067\u5229\u7528\u3059\u308b\u306e\u306f\u304b\u306a\u308a\u96e3\u3057\u304f\u306a\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u66f8\u3044\u305f\u3088\u3046\u306a\u5358\u7d14\u306a\u81ea\u52d5\u6295\u7a3f(\u305d\u308c\u3082\u983b\u5ea6\u4f4e\u3081\u3002)\u3068\u3044\u3046\u7528\u9014\u3067\u3042\u308c\u3070\u3057\u3070\u3089\u304f\u306e\u9593\u306f\u4f7f\u3048\u305d\u3046\u306a\u306e\u3067\u3001\u6295\u7a3f\u5185\u5bb9\u3092\u5de5\u592b\u3057\u305f\u308a\u3057\u306a\u304c\u3089\u5c11\u3057\u69d8\u5b50\u3092\u898b\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u8a18\u4e8b\u306f\u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n<h2>References \/ \u53c2\u8003\u6587\u732e<\/h2>\n<ul>\n<li><a href=\"https:\/\/hacknote.jp\/archives\/35063\/\">WordPress\u304b\u3089Twitter\u3078\u81ea\u52d5\u6295\u7a3f\u3055\u305b\u308b\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/qiita.com\/nariya\/items\/93899485f9ae16e72aa2\">Python3\u3067\u306etwitter\u6295\u7a3f\u306a\u3069 &#8211; Qiita<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u524d\u306e\u8a18\u4e8b\u3067\u306f\u7d50\u5c40php-fpm\u306e\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0\u304c\u4f55\u3068\u304b\u3046\u307e\u304f\u3044\u3063\u305f\u3068\u3053\u308d\u307e\u3067\u66f8\u304d\u307e\u3057\u305f\u3002 \u305d\u3053\u3067\u3001\u3053\u306e\u8a18\u4e8b\u3067\u306f\u52e2\u3044\u306b\u4e57\u3063\u3066\u3001SNAP(NextScripts: Social Networks Auto-Poster)\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u4f7f\u3063\u3066Twitter\u306bWordpress\u306e\u8a18\u4e8b\u306e\u65b0\u7740\u60c5\u5831\u3092\u6d41\u3059\u305f\u3081\u306b\u5fc5\u8981\u306a\u4f5c\u696d\u306b\u3064\u3044\u3066\u66f8\u304d\u305f\u3044\u2026 \u3068\u6700\u521d\u306f\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001 \u3053\u306e\u8a18\u4e8b\u3092\u6700\u521d\u306b\u66f8\u3044\u305f\u6642\u70b9\u3067\u306fTwitt\u2026 <span class=\"read-more\"><a href=\"https:\/\/pandanote.info\/?p=3079\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":3113,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,20,3,21,14],"tags":[],"class_list":["post-3079","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fedora","category-python3","category-website-2","category-twitter","category-youtube"],"_links":{"self":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/3079","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3079"}],"version-history":[{"count":22,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/3079\/revisions"}],"predecessor-version":[{"id":3118,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/posts\/3079\/revisions\/3118"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=\/wp\/v2\/media\/3113"}],"wp:attachment":[{"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3079"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3079"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pandanote.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3079"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}