{"id":2946,"date":"2021-08-13T11:17:12","date_gmt":"2021-08-13T02:17:12","guid":{"rendered":"https:\/\/doc-sin.life\/?p=2946"},"modified":"2021-08-13T11:17:12","modified_gmt":"2021-08-13T02:17:12","slug":"%e3%83%90%e3%83%b3%e3%83%80%e3%82%a4%e5%87%ba%e8%8d%b7%e8%a1%a8%e3%81%ae%e6%9b%b4%e6%96%b0%e3%82%92%e9%80%9a%e7%9f%a5%e3%81%99%e3%82%8b-twitter-bot-%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf","status":"publish","type":"post","link":"https:\/\/doc-sin.life\/?p=2946","title":{"rendered":"\u30d0\u30f3\u30c0\u30a4\u51fa\u8377\u8868\u306e\u66f4\u65b0\u3092\u901a\u77e5\u3059\u308b Twitter bot \u3092\u4f5c\u3063\u3066\u307f\u305f"},"content":{"rendered":"\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/i0.wp.com\/doc-sin.life\/wp-content\/uploads\/2021\/08\/twitter_bandai-2.png?resize=400%2C164&#038;ssl=1\" alt=\"\" class=\"wp-image-2968\" width=\"400\" height=\"164\" srcset=\"https:\/\/i0.wp.com\/doc-sin.life\/wp-content\/uploads\/2021\/08\/twitter_bandai-2.png?w=800&amp;ssl=1 800w, https:\/\/i0.wp.com\/doc-sin.life\/wp-content\/uploads\/2021\/08\/twitter_bandai-2.png?resize=300%2C123&amp;ssl=1 300w, https:\/\/i0.wp.com\/doc-sin.life\/wp-content\/uploads\/2021\/08\/twitter_bandai-2.png?resize=768%2C315&amp;ssl=1 768w\" sizes=\"(max-width: 400px) 100vw, 400px\" data-recalc-dims=\"1\" \/><\/figure><\/div>\n\n\n\n<h2>\u4f5c\u6210\u3057\u3066\u307f\u305f Twitter bot<\/h2>\n\n\n\n<p>\u3000<a href=\"https:\/\/doc-sin.life\/?p=2860\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3067\u30d0\u30f3\u30c0\u30a4\u51fa\u8377\u8868\u306e PDF \u3092 Google \u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u304c\u3001\u305d\u308c\u3092\u81ea\u52d5\u3067\u5b9a\u671f\u5b9f\u884c\u3055\u305b\u3066\u51fa\u8377\u8868\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u305f\u3089<a rel=\"noreferrer noopener\" href=\"https:\/\/twitter.com\/GunplaNotice\" target=\"_blank\"> Twitter \u3067\u545f\u304f bot <\/a>\u3092\u4f5c\u6210\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-rich is-provider-twitter wp-block-embed-twitter\"><div class=\"wp-block-embed__wrapper\">\n<a class=\"twitter-timeline\" data-width=\"500\" data-height=\"750\" data-dnt=\"true\" href=\"https:\/\/twitter.com\/GunplaNotice?ref_src=twsrc%5Etfw\">Tweets by GunplaNotice<\/a><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n\n\n\n<div class=\"wp-block-luxe-blocks-topic\" style=\"margin-top:10px;margin-bottom:30px\"><div class=\"wp-block-luxe-blocks-topic-title\" style=\"color:#fff;background-color:#006edc;border:1px solid #006edc;border-radius:5px 5px 0 0;padding:3px 15px\"><span class=\"wp-block-luxe-blocks-topic-icon\"><\/span><span>twitter bot \u306e\u8a73\u7d30<\/span><\/div><div class=\"wp-block-luxe-blocks-topic-content\" style=\"border:1px solid #006edc;border-radius:0 5px 5px 5px;padding:0px 15px 0px 15px\">\n<ul><li><span style=\"font-size: 17px\" class=\"font-size\">daily \u3067\u30ac\u30f3\u30d7\u30e9\u51fa\u8377\u8868\u306e\u30a2\u30af\u30bb\u30b9\u3057 PDF \u3092\u89e3\u6790\u3057\u3001\u65e2\u306b Google \u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u767b\u9332\u3055\u308c\u3066\u3044\u308b\u4e88\u5b9a\u3068\u6bd4\u8f03\u3059\u308b\u3002<\/span><\/li><li><span style=\"font-size: 17px\" class=\"font-size\">\u65e2\u5b58\u306e\u4e88\u5b9a\u3068\u88ab\u308b\u3082\u306e\u304c\u7121\u3051\u308c\u3070\u4e88\u5b9a\u3092 Google \u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u767b\u9332\u3059\u308b\u3002<\/span><\/li><li><span style=\"font-size: 17px\" class=\"font-size\">Google \u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u767b\u9332\u3055\u308c\u305f\u3089 Twitter \u306b\u901a\u77e5\u3059\u308b\u3002<\/span><\/li><\/ul>\n<\/div><\/div>\n\n\n\n<div class=\"blogcard\"><a href=\"https:\/\/doc-sin.life\/?p=2860\" data-blogcard=\"1\"><\/a><\/div>\n\n\n\n<h2>\u81ea\u52d5\u5b9a\u671f\u5b9f\u884c\u306e\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u3000AWS Lambda + Cloudwatch Events \u3067\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u81ea\u52d5\u3067\u5b9a\u671f\u5b9f\u884c\u3055\u305b\u3066\u3044\u307e\u3059\u3002AWS Lambda \u306b\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u3068\u5fc5\u8981\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u7b49\u3092\u542b\u3093\u3060\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u30c7\u30d7\u30ed\u30a4\u3057\u3066\u307e\u3059\u3002\u3068\u3044\u3046\u306e\u3082\u4eca\u56de\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u30ad\u30e2\u3067\u3042\u308b\u3001PDF \u304b\u3089\u30c7\u30fc\u30bf\u3092\u62bd\u51fa\u3057\u3066\u3044\u308b tabula-py \u306e\u5b9f\u884c\u306b\u306f Java \u304c\u5fc5\u8981\u3067\u3001AWS \u304c\u63d0\u4f9b\u3057\u3066\u3044\u308b Python \u30e9\u30f3\u30bf\u30a4\u30e0\u3067\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u304c\u5b9f\u884c\u51fa\u6765\u307e\u305b\u3093\u3067\u3057\u305f\u3002\uff08\u5168\u90e8 Java \u3067\u66f8\u3051\u3070\u554f\u984c\u3044\u3044\u6c17\u304c\u3057\u307e\u3059\u304c Python \u3057\u304b\u77e5\u3089\u3093\u306e\u3067\u3059\u3002\uff09<\/p>\n\n\n\n<p>\u3000\u30ea\u30bd\u30fc\u30b9\u306e\u4f5c\u6210\u306f terraform \u3067\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u304c\u305d\u306e tf \u30d5\u30a1\u30a4\u30eb\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\" data-show-lang=\"0\"><code>resource &quot;aws_ecr_repository&quot; &quot;get_gunpla_shipment&quot; {\n  name = &quot;get_gunpla_shipment&quot;\n}\n\nresource &quot;aws_ecr_lifecycle_policy&quot; &quot;get_gunpla_shipment&quot; {\n  repository = aws_ecr_repository.get_gunpla_shipment.name\n\n  policy = &lt;&lt;EOF\n{\n    &quot;rules&quot;: [\n        {\n            &quot;rulePriority&quot;: 1,\n            &quot;description&quot;: &quot;Expire images older than 3 days&quot;,\n            &quot;selection&quot;: {\n                &quot;tagStatus&quot;: &quot;untagged&quot;,\n                &quot;countType&quot;: &quot;sinceImagePushed&quot;,\n                &quot;countUnit&quot;: &quot;days&quot;,\n                &quot;countNumber&quot;: 3\n            },\n            &quot;action&quot;: {\n                &quot;type&quot;: &quot;expire&quot;\n            }\n        }\n    ]\n}\nEOF\n}\n\nresource &quot;aws_iam_role&quot; &quot;iam_for_lambda&quot; {\n  name                = &quot;iam_for_lambda&quot;\n  managed_policy_arns = [&quot;arn:aws:iam::aws:policy\/service-role\/AWSLambdaBasicExecutionRole&quot;]\n\n  assume_role_policy = &lt;&lt;EOF\n{\n  &quot;Version&quot;: &quot;2012-10-17&quot;,\n  &quot;Statement&quot;: [\n    {\n      &quot;Action&quot;: &quot;sts:AssumeRole&quot;,\n      &quot;Principal&quot;: {\n        &quot;Service&quot;: &quot;lambda.amazonaws.com&quot;\n      },\n      &quot;Effect&quot;: &quot;Allow&quot;,\n      &quot;Sid&quot;: &quot;&quot;\n    }\n  ]\n}\nEOF\n}\n\nresource &quot;aws_lambda_function&quot; &quot;get_gunpla_shipment&quot; {\n  function_name = &quot;get_gunpla_shipment&quot;\n  package_type  = &quot;Image&quot;\n  memory_size   = 512\n  timeout       = 60\n  role          = aws_iam_role.iam_for_lambda.arn\n  image_uri     = &quot;653376028258.dkr.ecr.ap-northeast-1.amazonaws.com\/get_gunpla_shipment@sha256:b00fda93202cadae15ecb7026a786bc60492017824a96ce1cc1e0fcfbbab4873&quot;\n}\n\nresource &quot;aws_cloudwatch_log_group&quot; &quot;get_gunpla_shipment&quot; {\n  name              = &quot;\/aws\/lambda\/get_gunpla_shipment&quot;\n  retention_in_days = 7\n}\n\nresource &quot;aws_cloudwatch_event_rule&quot; &quot;get_gunpla_shipment&quot; {\n  name                = &quot;get_gunpla_shipment&quot;\n  description         = &quot;Run Lambda get_gunpla_shipment&quot;\n  schedule_expression = &quot;cron(0 3 * * ? *)&quot; #daily12:00JST\n}\n\nresource &quot;aws_cloudwatch_event_target&quot; &quot;get_gunpla_shipment&quot; {\n  rule = aws_cloudwatch_event_rule.get_gunpla_shipment.name\n  arn  = aws_lambda_function.get_gunpla_shipment.arn\n}\n\nresource &quot;aws_lambda_permission&quot; &quot;allow_cloudwatch_to_run_lambda&quot; {\n  statement_id  = &quot;AllowExecutionFromCloudWatch&quot;\n  action        = &quot;lambda:InvokeFunction&quot;\n  function_name = aws_lambda_function.get_gunpla_shipment.function_name\n  principal     = &quot;events.amazonaws.com&quot;\n  source_arn    = aws_cloudwatch_event_rule.get_gunpla_shipment.arn\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u3000\u6700\u521d\u306f\u5f53\u30b5\u30a4\u30c8\u3092\u5b9f\u884c\u3055\u305b\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3067\u5b9f\u884c\u3055\u305b\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u4e0a\u3067\u3082\u89e6\u308c\u3066\u3044\u308b tabula-py \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u30e1\u30e2\u30ea\u4e0d\u8db3\u3067\u51fa\u6765\u306a\u304b\u3063\u305f\u306e\u3067\u3059\u3002\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3089\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u304c\u7121\u304f\u306a\u308a\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3092\u3059\u308b\u7fbd\u76ee\u306b\u3002\u30b5\u30fc\u30d0\u30fc\u3067\u5b9f\u884c\u3059\u308b\u306e\u304c\u4e00\u756a\u30b7\u30f3\u30d7\u30eb\uff08\u304b\u3064\u5fae\u3005\u305f\u308b\u3082\u306e\u3068\u306f\u8a00\u3048 Lambda \u306e\u30b3\u30b9\u30c8\u5897\u304c\u306a\u3044\uff09\u3068\u306f\u601d\u3063\u305f\u306e\u3067\u3059\u304c&#8230;.<\/p>\n\n\n\n<h2>\u3053\u308c\u304b\u3089\u306e\u5c55\u671b<\/h2>\n\n\n\n<p>\u3000\u6b21\u306e\u3053\u3068\u3092\u8003\u3048\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"wp-block-luxe-blocks-topic\" style=\"margin-top:10px;margin-bottom:30px\"><div class=\"wp-block-luxe-blocks-topic-title\" style=\"color:#fff;background-color:#006edc;border:1px solid #006edc;border-radius:5px 5px 0 0;padding:3px 15px\"><span class=\"wp-block-luxe-blocks-topic-icon\"><\/span><span>\u3053\u308c\u304b\u3089\u306e\u5c55\u671b<\/span><\/div><div class=\"wp-block-luxe-blocks-topic-content\" style=\"border:1px solid #006edc;border-radius:0 5px 5px 5px;padding:0px 15px 0px 15px\">\n<ul><li><span style=\"font-size: 18px\" class=\"font-size\"><a rel=\"noreferrer noopener\" href=\"https:\/\/p-bandai.jp\/chara\/c0010\/?q=%83K%83%93%83v%83%89&amp;page=0&amp;n=60&amp;C5=30\" target=\"_blank\">\u30d7\u30ec\u30df\u30a2\u30e0\u30d0\u30f3\u30c0\u30a4\u3067\u4e88\u7d04\u958b\u59cb\u524d\u306e\u5546\u54c1<\/a>\u304c\u767b\u9332\u3055\u308c\u305f\u3089Twitter \u306b\u901a\u77e5<\/span><\/li><li><span style=\"font-size: 18px\" class=\"font-size\">\u7279\u5b9a\u306e\u30ad\u30c3\u30c8\u304c\u3001\u30e8\u30c9\u30d0\u30b7\u3084\u30d3\u30c3\u30af\u30ab\u30e1\u30e9\u306a\u3069\u306e Web \u30b9\u30c8\u30a2\u3067\u8ca9\u58f2\u3001\u4e88\u7d04\u304c\u518d\u958b\u3055\u308c\u305f\u3089 Twitter \u306b\u901a\u77e5<\/span><\/li><li><span style=\"font-size: 18px\" class=\"font-size\">\u65b0\u3057\u304f\u8ffd\u52a0\u3055\u308c\u305f\u30ad\u30c3\u30c8\u306b\u4eba\u6c17\u30ad\u30c3\u30c8\uff08\u4f8b\u3048\u3070 HGUC \u30ca\u30a4\u30c1\u30f3\u30b2\u30fc\u30eb\uff09\u304c\u542b\u307e\u308c\u3066\u3044\u305f\u3089\u30d4\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066 Twitter \u3067\u901a\u77e5<\/span><\/li><\/ul>\n\n\n\n<p><\/p>\n<\/div><\/div>\n\n\n\n<p>\u3044\u305a\u308c\u3082 Twitter \u3067\u901a\u77e5\u3057\u3066\u3044\u307e\u3059\u3002\u901a\u77e5\u3059\u308b\u3060\u3051\u306a\u3089\u30e1\u30fc\u30eb\u3084 Slack \u3068\u304b\u624b\u6bb5\u306f\u8272\u3005\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u30d1\u30d6\u30ea\u30c3\u30af\u306a Twitter \u3092\u9078\u3093\u3067\u3044\u307e\u3059\u3002\u6700\u8fd1\u30ac\u30f3\u30d7\u30e9\u754c\u3067\u306f\u8272\u3005\u3068\u8ee2\u58f2\u30e4\u30fc\u304c\u8a71\u984c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u304a\u305d\u3089\u304f\u306f\u8ee2\u58f2\u30e4\u30fc\u306f\u3053\u3046\u3044\u3063\u305f\u60c5\u5831\u306f\u5f53\u305f\u308a\u524d\u306e\u3088\u3046\u306b\u53ce\u96c6\u3057\u3066\u3044\u308b\u3068\u601d\u3046\u306e\u3067\u3001<strong><span style=\"color: #ff0000\" class=\"text-color\">\u305b\u3081\u3066\u305d\u306e\u8ee2\u58f2\u30e4\u30fc\u3068\u30b9\u30bf\u30fc\u30c8\u4f4d\u7f6e\u3092\u4e00\u7dd2\u306b\u3057\u3066\uff11\uff05\u3067\u3082\u7d14\u7c8b\u306b\u6b32\u3057\u3044\u4eba\u306b\u30ad\u30c3\u30c8\u304c\u5c4a\u304f\u305f\u3081\u306b Twitter \u306b\u901a\u77e5<\/span><\/strong>\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u3060\u304b\u3089\u30d5\u30a9\u30ed\u30fc\u3057\u3066\u306d\u2606(\u309d\u03c9\u30fb)v\uff77\uff6c\uff8b\uff9f\uff08\u30ac\u30c1\u306a\u8ee2\u58f2\u30e4\u30fc\u306f\u8cfc\u5165\u3082 bot \u3067\u3084\u3063\u3066\u3044\u308b\u3060\u308d\u3046\u306a\u30fc\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u6210\u3057\u3066\u307f\u305f Twitter bot \u3000\u3053\u3061\u3089\u306e\u8a18\u4e8b\u3067\u30d0\u30f3\u30c0\u30a4\u51fa\u8377\u8868\u306e PDF \u3092 Google \u30ab\u30ec\u30f3\u30c0\u30fc\u306b\u51fa\u529b\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u6210\u3057\u307e\u3057\u305f\u304c\u3001\u305d\u308c\u3092\u81ea\u52d5\u3067\u5b9a\u671f\u5b9f\u884c\u3055\u305b\u3066\u51fa\u8377\u8868\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u305f\u3089 Twitter \u3067\u545f\u304f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2967,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/doc-sin.life\/?p=2946"},"categories":[4],"tags":[19,55,74],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/doc-sin.life\/wp-content\/uploads\/2021\/08\/twitter_bandai-1.png?fit=800%2C328&ssl=1","_links":{"self":[{"href":"https:\/\/doc-sin.life\/index.php?rest_route=\/wp\/v2\/posts\/2946"}],"collection":[{"href":"https:\/\/doc-sin.life\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc-sin.life\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc-sin.life\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/doc-sin.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2946"}],"version-history":[{"count":0,"href":"https:\/\/doc-sin.life\/index.php?rest_route=\/wp\/v2\/posts\/2946\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/doc-sin.life\/index.php?rest_route=\/wp\/v2\/media\/2967"}],"wp:attachment":[{"href":"https:\/\/doc-sin.life\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2946"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc-sin.life\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2946"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc-sin.life\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2946"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}